Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Dawg
RavenNuke(tm) Development Team


Joined: Nov 07, 2003
Posts: 910

PostPosted: Tue Jun 26, 2007 6:22 am Reply with quote

My server has hummed along now for a LONG time. The other day my latest photo button stopped working. I looked in to it and found this error beig generated....

Code:
PHP Fatal error:  Allowed memory size of 33554432 bytes exhausted (tried to allocate 184320 bytes) in /home/httpd/vhosts/xxxxxxxxxxxxx.com/httpdocs/includes/dynamic_titles.php on line 207, referer: http://www.xxxxxxxxxxxxx.com/



So I go to Dynamic_titles and this is line 207 function...
Code:
// Stories Archive 

if($name=="Stories_Archive"){
global $sa,$year,$month_l;
$name=ereg_replace("_", " ", "$name");
$newpagetitle = "$item_delim $name";
    if($sa=="show_month") {
        $newpagetitle = "My Site - $month_l, $year";
    }
}


This does not make any sence....what does story archive have to do with my gallery lastest photo....here is the gallery code from the same script....
Code:
// gallery 

if($name=="gallery"){
$newname = "XXXXXXXXXXXXX";  //or whatever if you want to change the name
global $gallery;
   if ($gallery->session->albumName != "") {
   $albumname = $gallery->album->fields["title"];
   $newpagetitle = "$newname $item_delim $albumname";
   }
   else {
   $newpagetitle = "$newname - Offshore Fishing Photos";
   }
}


Anyone see anything I am doing wrong here?

I went into the php.ini file and increased the memory size for the moment but that is not the way to do i. I would rather fix the problem.

Thank you for your help!!

Dawg
 
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17077

PostPosted: Wed Jun 27, 2007 10:38 pm Reply with quote

That is the problem afaict. You simply don't have enough memory allocated. Unless something else turns up I would just disregard the line 207 message for now. If a script is running out of memory then it could easily throw the parser off.
 
View user's profile Send private message
Dawg
PostPosted: Thu Jun 28, 2007 4:17 am Reply with quote

I bumped it to 64 megs and that solved it and got the Recent Photos button back to functioning again. I am concerned that this is a symptom of some other problem though. A memory leak somewhere or dynamic titles have to do too much work on each pass.

BTW....I hit a little landmark yesterday....400 users at one time. WOOT WOOT!
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9449
Location: Arizona

PostPosted: Thu Jun 28, 2007 7:08 am Reply with quote

Dawg, dynamic titles isn't doing anything wild and crazy (i.e., out of the PHP-Nuke realm). Just a few added queries and a bit of string manipulation. I really seriously doubt that it really has anything to do with this issue.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©