Error on my blog

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Error on my blog

Post by MadameX »

I'm not exactly sure if this is the right place for this or not, so if it isn't, please move it. :)

I've installed serendipity (latest version) on my server (actually have two on different domains). Everything seems to be fine...got the theme I like, plugins, gallery, etc.

Only problem is most times when I first click on the main page, I get this error:

Code: Select all

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46 bytes) in /home/virtual/site4/fst/var/www/html/essences/include/functions_config.inc.php on line 81
Refreshing the page fixes it, but it also happens on some of the inner pages of the blog. Refreshing always fixes it, but I'd much rather it didn't do it at all.

Can anyone tell me what is going on here and how I can fix it?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error on my blog

Post by garvinhicking »

Hi!

Which serendipity version are you using? I need that to be able to see what code is contained in the lines you mentioned.

The error message says that your using up all your memory. You might have too many event plugins installed for the memory limit your provider has set on you...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

Thank you for replying.

It is version 1.4.4.

After I've been on the site and clicked around some, it doesn't happen as often. Since I'm essentially the host, I could probably reset the memory, tho I might need to get my partner to help with that. I don't know as much about servers as he does. It started to happen not long after I installed a coppermine gallery. The gallery itself doesn't give any errors like this though...at least it hasn't so far. This domain however, doesn't have that much on it.....the blog and gallery are all that are there. My other domain has a full website, IPB forum and serendipity blog and it doesn't give errors like this. It doesn't have the gallery though. However, as I stated, that domain has quite a bit more on it.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Uh, serendipity's most recent version is 1.1-alpha4. Where did you get "1.4.4" from?

Increasing the memory limit can be done by editing your php.ini file and set "memory_limit = 32M" or something like that.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

Opps! :oops:

Sorry....I looked back in my files and looked at the wrong file; that's the coppermine version.

The file I downloaded from the s9y site was the 1.0 beta2 tar zip, uploaded on March 13th, 2006.

Thanks for the instructions on changing the memory. I'll let you know how it goes.

Once again, sorry for the misinformation. :)
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

Just wanted to let you know that I changed the memory, rebooted the server, and after a bit, all seems to be working now.

Thanks for the help. It's deeply appreciated! :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're welcome! My best bet is that somehow the coppermine gallery include was sometimes taking up memory, too. But by inreasing, all should be well.

Have fun!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

Sorry....me again. :)

It's happening again....though it doesn't seem to be as bad. However, when first clicking the link to the home page of the blog, the error shows on this line:

Code: Select all

/include/functions_config.inc.php on line 86
Refreshing, of course, clears it up. Then clicking on an inner page gave the error in the vicinity of this line:

Code: Select all

/include/plugin_api.inc.php on line 672
Another returned this one:

Code: Select all

include/plugin_api.inc.php on line 725
Sometimes the page shows up with no error....just a blank white page (shades of MSN! :shock: )

As before, being onsite for a bit things seem to smooth out....tho there is a random error sometimes.

I'm not that proficient with php, though I do know that seeing a specified line doesn't necessarily mean that the error occured exactly there....could be before or after. I can modify files, but usually only with instructions.

When I checked the php ini file, the limit was only set to 8M :shock: I reset it to 32M, figuring that should do it. I'm wondering if maybe there might be a bit more I would need to do?

Sorry to take up your time, but I do appreciate your help.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Could you tell me your url so that I could have a small look around?

Those memory limits actually point to some memory leak or some process taking up more memory than required. Which s9y event plugin did you install? And did you install coppermine into the same directory than s9y, or is coppermine in a subdirectory of s9y or vice-versa? This could make problems depending on the .htaccess contents...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

Oh...didn't expect a reply so quick!

Here is the url: http://64.246.36.191/essences/

It's an IP based domain, mainly for testing of my main domain. I decided I wanted my little blog to be there.

Coppermine is in a seperate directory from s9y. No...wait a sec....they are both in the root. But in seperate folders.

I'm not exactly sure what you mean by plugin? Unless it's the one where it allows links to be placed in the sidebar for other pages....the static page one. I have the link to the gallery in there. Other than that, the gallery is seperate from the blog.

Or do you need a list of ALL plugins I have?

Edit: Rats! I forgot that I do have the latest images displayed in the sidebar too.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, it's really strange that it runs out of memory so easily. Do you have very many and large articles already?

It would help if you just go to your s9y admin interface to the plugin section and there tell me which plugins are listed there. :)

BTW: It seems you did not yet change your memory_limit? Because it still says it has a limit of 8MB...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

No, I DID change the php ini file from 8MB to 32MB. Then rebooted the server. The changes are still in the file. Was there something else I should have done? And where do you see that at?

Here is the list:

Sidebar Plugins:

Calendar, Archives, Categories, Coppermine Thumbnails, Inside Essenes (static page links)

Links List, Quicksearch, Blog Admin, Choose Language, Syndicate This Blog, Powered by, Show tagged entries,


Event Plugins:

Markup: Serendipity, Markup: Emoticate, Markup: NL2BR, Browser Compatibility, Spam Protector, Karma, Spartacus,
Markup: Track exits, Coppermine selector, Multilingual entries, Static Pages, Delete Link, email Entry, Discussion forum, Html nugget for forum (at top of page), Show emoticon toolbar, FAQ, Contact form, Download manager, Export blog as PDF,
Tagging of entries, Html validator, Rules for publishing, Typeset/Extended Buttons for non-WYSIWYG editors, Category assignment, Sample! (html nugget into head area of blog), Layout-Plugin: Quote Markup, Sidebar hider, Properties/Templates of categories, Statistics, Extended properties for entries

NOTE: I noticed some duplication in the Configure Plugin page. One sidebar plugin was also in the event plugin area. I've removed those, plus a few others that I felt I didn't need: Multilinqual entries, tagging of entries, Show tagged entries. The sidebar hider was showing an error in it's location, so I just removed it too.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I see it in the error message. It says "Allowed memory size of 8388608 bytes exhausted". If the raised memory limit would apply, it should read "Allowed memory size of 32000000 bytes exhausted".

Create a info.php script somewhere, insert "<?php phpinfo(); ?>" there and then look up what memory_limit stands there. Maybe you edited a wrong PHP file, or some php_value assignments in your virtualhost config reset the limit to 8MB?

The amount of plugins you list actually account for the problems you have. Especially the forum and download manager plugins take up a lot of memory. PDF export also. So you really need to raise your memory limit, there's no bug involved. You just have pimped your plugins a tad too much ;-)

BTW: There ARE some plugins that supply BOTH a sidebar plugin AND an event plugin with the same name. So this is all well, if some plugins show up in both sections. :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
MadameX
Regular
Posts: 9
Joined: Tue Apr 18, 2006 3:31 am
Location: NC

Post by MadameX »

Ok, thanks for the info.....kinda figured that was how you knew....lol. Yes, I'm a bit slow, but eventually, I get there! :wink:

And yes, I suppose you could call me a 'plugin junkie'! LOL!

Did removing that duplicate of the Link list from the event plugin area maybe mess it up? If so, I guess I'd have to redo it. The others I removed, I don't think I need them. Still haven't figured out what tagged entries are or how to use the plugin. :shock:

And the php info file....I can just put it anywhere?

Edit: OK, I got the info (and answered that last question...lol) I did change the right ini file. And it DOES show the limit as still being 8MB! And the changes are still in the file where I made them.

What now? Is there somewhere else I should have made some changes? Execution time is set to 60 seconds, but I don't believe that's a factor, as it's never taken that long before an error came up. Or am I assuming wrong?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi, Junkie! ;)

Tagged entries are just "Tags" that are used on top (or insteead of) categories. See flickr.com for an example of "tagging". :)

If you changed the right ini file and the limit still shows up as 8MB - did you restart apache completely after changing the file? The phpinfo() also tells you the exact INI file it is using. Check your apache httpd.conf file and search for any "php_value" and "php_admin_value" assignments! Also check if you have a htaccess file with any of those keywords. Also check the "conf.d" subdir of your apache install or any files that are included in the main httpd.conf.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply