| Author |
Message |
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 11:45 am Post subject: Random image error |
|
|
Quote: ›
Warning: Cannot modify header information - headers already sent by (output started at /home/**mysite**/public_html/phpBB2/includes/template.php(127) : eval()'d code:1) in /home/**mysite**/public_html/gallery2/modules/core/classes/GalleryPhpVm.class on line 124
This is the most annoying problem with the integration that I encounter. As Dari is aware of my site, I have phpBB 2.0.17 and Gallery 2, with Gallery being in it's own directory outside phpBB2. I am also using the DAJ Glass skin, not the default SubSilver.
Other than this error, my only problem is the text size issue that everyone encounters where the two headers are at conflict. That seems to be at work in my random image problem, as well. |
|
| Back to top |
|
|
AdBot
|
| Post subject: Random image error |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 03, 2005 11:49 am Post subject: Re: Random image error |
|
|
One of our other users is working on converting the matrix theme (the default G2 theme) to a phpBB2-specific rendition, that takes care of the font size problems.
do you have any other MODs on your board? _________________
 |
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 11:55 am Post subject: Re: Random image error |
|
|
| No, the only mod is Gallery 2. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 12:31 pm Post subject: Re: Random image error |
|
|
That screws up the whole place.
Above my forum, I get this:
Quote: › array(2) {
[0]=>
array(6) {
["file"]=>
string(58) "/home/**mysite**/public_html/phpBB2/includes/page_header.php"
["line"]=>
int(482)
["function"]=>
string(6) "pparse"
["class"]=>
string(8) "template"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(14) "overall_header"
}
}
[1]=>
array(4) {
["file"]=>
string(43) "/home/**mysite**/public_html/phpBB2/index.php"
["line"]=>
int(262)
["args"]=>
array(1) {
[0]=>
string(58) "/home/**mysite**/public_html/phpBB2/includes/page_header.php"
}
["function"]=>
string(7) "include"
}
}
Below the header to my forum, I get this:
Quote: › array(1) {
[0]=>
array(6) {
["file"]=>
string(43) "/home/**mysite**/public_html/phpBB2/index.php"
["line"]=>
int(456)
["function"]=>
string(6) "pparse"
["class"]=>
string(8) "template"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(4) "body"
}
}
}
In the footer, I get this:
Quote: › array(2) {
[0]=>
array(6) {
["file"]=>
string(56) "/home/**mysite**/public_html/phpBB2/includes/page_tail.php"
["line"]=>
int(42)
["function"]=>
string(6) "pparse"
["class"]=>
string(8) "template"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(14) "overall_footer"
}
}
[1]=>
array(4) {
["file"]=>
string(43) "/home/**mysite**/public_html/phpBB2/index.php"
["line"]=>
int(458)
["args"]=>
array(1) {
[0]=>
string(56) "/home/**mysite**/public_html/phpBB2/includes/page_tail.php"
}
["function"]=>
string(7) "include"
}
}
As far as the Gallery is concerned, the same code shows in the same places, and the error remains the same. Is this what you were looking for? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 03, 2005 12:36 pm Post subject: Re: Random image error |
|
|
the first and last are OK...the middle is what bugs me...where does your error occur in relation to these (ie, before all of them, between the first and second, etc)? _________________
 |
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 12:43 pm Post subject: Re: Random image error |
|
|
I don't see the "error" until I click on the Random Image. When I do, this is what appears above the header:
Quote: › array(2) {
[0]=>
array(6) {
["file"]=>
string(58) "/home/**mysite**/public_html/phpBB2/includes/page_header.php"
["line"]=>
int(482)
["function"]=>
string(6) "pparse"
["class"]=>
string(8) "template"
["type"]=>
string(2) "->"
["args"]=>
array(1) {
[0]=>
&string(14) "overall_header"
}
}
[1]=>
array(4) {
["file"]=>
string(46) "/home/**mysite**/public_html/phpBB2/gallery2.php"
["line"]=>
int(48)
["args"]=>
array(1) {
[0]=>
string(58) "/home/**mysite**/public_html/phpBB2/includes/page_header.php"
}
["function"]=>
string(7) "include"
}
}
This is all at the top of the screen. Below that is my header, with the error beneath:
Quote: ›
Warning: Cannot modify header information - headers already sent by (output started at /home/**mysite**/public_html/phpBB2/includes/template.php:127) in /home/**mysite**/public_html/gallery2/modules/core/classes/GalleryPhpVm.class on line 124 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 03, 2005 12:52 pm Post subject: Re: Random image error |
|
|
aaah...it only appears when you click the random photo image, but not if you go through to gallery directly? _________________
 |
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 12:59 pm Post subject: Re: Random image error |
|
|
| Regarding the error, yes. It only appears when I am trying to view the Random Image. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 03, 2005 1:37 pm Post subject: Re: Random image error |
|
|
hmm...ok, i think it's the way that you've got it installed, with gallery 2 being outside of your phpBB2 directory. i'm getting all sorts of errors on a setup like that, but when gallery 2 is inside the phpBB2 directory, they all go away.
you should be safe to just move the gallery 2 folder into your phpBB2 folder and then re-run the config from your phpBB2 ACP. _________________
 |
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 1:42 pm Post subject: Re: Random image error |
|
|
Ok, I'll try that.
Well, not that easy, maybe. I get this error after moving the directory and trying to run the Gallery setup from my ACP:
Template->make_filename(): Error - file admin/gallery2_show_body.tpl does not exist |
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 1:52 pm Post subject: Re: Random image error |
|
|
| Well, that's odd. I get the same error even after moving it back. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Mon Oct 03, 2005 1:53 pm Post subject: Re: Random image error |
|
|
try doing a fresh G2 install inside your phpBB2 folder and then do the integration. if you followed the directions re: the g2data folder, you shouldn't have to worry about losing it, but back it up just in case. _________________
 |
|
| Back to top |
|
|
stevemills
Novice


Joined: Sep 21, 2005 Posts: 25
|
Posted: Mon Oct 03, 2005 3:30 pm Post subject: Re: Random image error |
|
|
Ok, I completely reinstalled the Gallery under phpBB2. Now that error with the Random Image happens sometimes, and sometimes not. Very confusing.
Any ideas on why this could happen? My first guess is that it is associated with older images. The ones that work seem to be newer.
I have also lost my ability to upload new images. Here is what I see when I try to edit my album:
Quote: › Error (ERROR_BAD_PATH) : Invalid path: modules/thumbpage/ItemEditThumbPage.inc
* in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 205 (gallerystatus::error)
* in modules/core/classes/helpers/GalleryFactoryHelper_medium.class at line 59 (galleryfactoryhelper_simple::newinstance)
* in modules/core/classes/GalleryCoreApi.class at line 121 (galleryfactoryhelper_medium::newinstancebyid)
* in modules/core/ItemEdit.inc at line 233 (gallerycoreapi::newfactoryinstancebyid)
* in modules/core/ItemAdmin.inc at line 147 (itemeditview::loadtemplate)
* in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 285 (hybridtheme::loadtemplate)
* in main.php at line 287 (itemadminview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /home/**mysite**/public_html/phpBB2/gallery2.php at line 91 (galleryembed::handlerequest)
And when I try to simply Add an Item, I see this:
Quote: › Error (ERROR_BAD_PATH) : Invalid path: modules/uploadapplet/ItemAddUploadApplet.inc
* in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 205 (gallerystatus::error)
* in modules/core/classes/helpers/GalleryFactoryHelper_medium.class at line 59 (galleryfactoryhelper_simple::newinstance)
* in modules/core/classes/GalleryCoreApi.class at line 121 (galleryfactoryhelper_medium::newinstancebyid)
* in modules/core/ItemAdd.inc at line 355 (gallerycoreapi::newfactoryinstancebyid)
* in modules/core/ItemAdmin.inc at line 147 (itemaddview::loadtemplate)
* in modules/core/classes/GalleryTheme.class at line 688 (itemadminview::loadtemplate)
* in modules/core/classes/GalleryView.class at line 285 (matrixtheme::loadtemplate)
* in main.php at line 287 (itemadminview::doloadtemplate)
* in main.php at line 87
* in modules/core/classes/GalleryEmbed.class at line 153
* in /home/**mysite**/public_html/phpBB2/gallery2.php at line 91 (galleryembed::handlerequest)
The fix for this latter problem should be simple enough, but it eludes me. I've been sitting here working on this for about three hours, so maybe I'm just jaded. 
Last edited by stevemills on Mon Oct 03, 2005 4:24 pm; edited 1 time in total |
|
| Back to top |
|
|
speedracer
Beginner


Joined: Sep 25, 2005 Posts: 14
|
Posted: Mon Oct 03, 2005 3:56 pm Post subject: Re: Random image error |
|
|
| Out of curiosity are you using mod_rewite? If So disable the support under the gallery 2 admin. |
|
| Back to top |
|
|
|
|
|
|
|