Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Random image error
Goto page 1, 2  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB2 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Author Message
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 11:45 am    Post subject: Random image error Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: Random image error  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 03, 2005 11:49 am    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message Visit poster's website
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 11:55 am    Post subject: Re: Random image error Reply with quote

No, the only mod is Gallery 2.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 03, 2005 11:56 am    Post subject: Re: Random image error Reply with quote

ok...before line 127 in template.php add this:
PHP: › <?php echo "<pre>";
var_dump(debug_backtrace());
echo 
"</pre>"?>

and post the output here when you visit G2.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 12:31 pm    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 03, 2005 12:36 pm    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message Visit poster's website
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 12:43 pm    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 03, 2005 12:52 pm    Post subject: Re: Random image error Reply with quote

aaah...it only appears when you click the random photo image, but not if you go through to gallery directly?
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 12:59 pm    Post subject: Re: Random image error Reply with quote

Regarding the error, yes. It only appears when I am trying to view the Random Image.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 03, 2005 1:37 pm    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message Visit poster's website
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 1:42 pm    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 1:52 pm    Post subject: Re: Random image error Reply with quote

Well, that's odd. I get the same error even after moving it back.
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6284
Location: Washington Township, NJ, USA

PostPosted: Mon Oct 03, 2005 1:53 pm    Post subject: Re: Random image error Reply with quote

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
Offline View user's profile Send private message Visit poster's website
stevemills

Novice
Novice


Joined: Sep 21, 2005
Posts: 25

PostPosted: Mon Oct 03, 2005 3:30 pm    Post subject: Re: Random image error Reply with quote

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. Smile


Last edited by stevemills on Mon Oct 03, 2005 4:24 pm; edited 1 time in total
Back to top
Offline View user's profile Send private message
speedracer

Beginner
Beginner


Joined: Sep 25, 2005
Posts: 14

PostPosted: Mon Oct 03, 2005 3:56 pm    Post subject: Re: Random image error Reply with quote

Out of curiosity are you using mod_rewite? If So disable the support under the gallery 2 admin.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » phpBB Integration » phpBB2 / Gallery 2 Integration View previous topicPrinter friendly versionView next topic
Goto page 1, 2  Next

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia