Geotag / Poll Fatal error: Allowed memory size

Found a bug? Tell us!!
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Geotag / Poll Fatal error: Allowed memory size

Post by stego »

I use the Poll plugin (currently V2.08 ) for more than a year now - and it runs fine as long as the Geotag event-plugin (currently 1.13) is not installed.
As soon as I install the Geotag plugin the "Archive" link of the Poll sidebar-module is not working anymore.
I don't really understand the connection, because a click on the Poll sidebar "Archive" link results in a Geotag fatal error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 12 bytes) in /srv/www/htdocs/web5/html/blog/plugins/serendipity_event_geotagalt/serendipity_event_geotag.php on line 254
You can try it: http://aggrozollhaus.de/blog
Powered by Serendipity 1.1 and PHP 4.3.8
Any ideas? And thank you a lot for serendipity!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Geotag / Poll Fatal error: Allowed memory size

Post by garvinhicking »

Hi!

Yes, your blog has too little RAM available to support more plugins, so you'll either need to ask your provider to raise your limit, or remove some other plugins that you don't absolutely require.

Or...wait...I just see you have a limit of 32MB. It's strange that this limit is reach. Which event and sidebar plugins doy ou have installed?

Also check the errormessage, it says:

"serendipity_event_geotagalt" -- could it be you're leaving backup files there somehow? Never put backups into the plugin directory directly, it will create problems for s9y parsing plugins.

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/
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Post by stego »

Thanks for the quick reply.
Yes I run several other plugins, but:
everything seems to work fine except the combination of Geotag and Poll.
If I install other Plugins like GMap additionally to Polls I don't have memory errors. Furthermore Geotag and Poll work fine together except for the Poll "Archive" link. I don't think my plugins should use 32MB...?
What I don't understand is why Geotag is now using the "alt" directory. I tried to re-install Geotag completely and before I did that I renamed the Geotag directory to "serendipity_event_geotagalt". How can the plugin use the renamed directory?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Please remove serendipity_event_goetagalt completely from your s9y directory, then go to the plugin configuration and make sure all plugins listed there don't have an "error!" in them. Remove those with "error!".

HTH,
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/
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Post by stego »

I can't delete the directories, no idea why, I will contact the support and post here as soon as I have the plugin directory issue fixed.
Thanks.
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Post by stego »

I deleted the Plugin completely incl. the directory,
re-installed it, and I got the same error again :-(
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes) in /srv/www/htdocs/web5/html/blog/plugins/serendipity_event_geotag/serendipity_event_geotag.php on line 257
No Plugin shows an error, all plugins are up to date.
The Geotag Plugin is Version 1.17 now.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Which event and sidebar plugins do you have installed? There must be some kind of memory outage, I'm afraid, and it could be caused by certain plugins.

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/
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Post by stego »

I am still wondering why the Poll plugin shows a Geotag memory error...
Except this combination all plugins worked without any problems so far.
I have quite some plugins running. Just let me know what I can do to get closer to the real problem (delete plugins etc.).

My current plugins:

Sidebar
hidden
Categories
Comments
Authors
HTML Nugget
Top Exits

right
Polls
Calendar
My Calendar
HTML Nugget
Shoutbox (in a modified version from zockertown.de)
Amazon Recommendations
Remote RSS/OPML-Blogroll Feed
Remote RSS/OPML-Blogroll Feed
Remote RSS/OPML-Blogroll Feed
Quicksearch
Archives
Syndicate this Blog
HTML Nugget
Powered by
Blog Administration
HTML Nugget

Event
Markup: Serendipity
Markup: Emoticate
Markup: NL2BR
Browser Compatibility
Spam Protector
Spartacus
Statistics
Markup: Track exits
My Calendar
Coppermine Selector
Polls
Backup Interface ()
Random Blog Description
Rules for publishing
Links to next/previous entry
HTML-Code inside head (HTML-Head Nugget)
Geotag
Extended properties for entries

Thank you a lot for your support,
Martin
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Maybe you could try outputtung the memory usage. The best way to do this is to open the file include/plugin_api.inc.php and search for function &load_plugin(...).

After the "global $serendipity;" add this:

Code: Select all

echo "Memory usage before $instance_id: " . ceil(memory_get_usage()/1024) . "<br />\n";
and before the "return $p;" at the function's end, add this:

Code: Select all

echo "Memory usage after $instance_id: " . ceil(memory_get_usage()/1024) . "<br />\n";
Then open your blog admin and you should see some extra output. It will show you the memory used in KB, and will give you a clue how much memory really is used. If after the last loaded plugin that limit is around 30MB, you sadly really have too many plugins. You can see which ones are larger ones by calculating the difference of memory before and after a plugin has been loaded.

The backup plugin might considerably use up RAM...

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/
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Post by stego »

OK, thank you. I added the Code you posted. I have extra output not only at the Admin-Interface but also on the Blog itself. Within the Admin Interface the lugins use up to 5700kb then I get an PHP error.
When I click the Poll "Archives" Link it counts up to 5876kb, then I get the Fatal Error.
I still have no idea what to do.. does not look like the plugins are really using too much memory. I will delete the Backup plugin and post whats happening then.


Echo @ Admin Interface
Memory usage before serendipity_event_s9ymarkup:8ff68c1686ece911f6529c5d3e77ca17: 3427
Memory usage after serendipity_event_s9ymarkup:8ff68c1686ece911f6529c5d3e77ca17: 3454
Memory usage before serendipity_event_emoticate:e895890463b19e249847e545a3b10f6b: 3456
Memory usage after serendipity_event_emoticate:e895890463b19e249847e545a3b10f6b: 3499
Memory usage before serendipity_event_nl2br:c196fe8911c7321426defc6ba0433c9f: 3501
Memory usage after serendipity_event_nl2br:c196fe8911c7321426defc6ba0433c9f: 3534
Memory usage before serendipity_event_browsercompatibility:69d3991232375365bcaa4d3e336e83de: 3536
Memory usage after serendipity_event_browsercompatibility:69d3991232375365bcaa4d3e336e83de: 3551
Memory usage before serendipity_event_spamblock:8e35e9f932f8da24becf7ff3fd77e469: 3552
Memory usage after serendipity_event_spamblock:8e35e9f932f8da24becf7ff3fd77e469: 3884
Memory usage before serendipity_event_spartacus:55d32bf23d53485d7e43b56538f9d87e: 3886
Memory usage after serendipity_event_spartacus:55d32bf23d53485d7e43b56538f9d87e: 4062
Memory usage before serendipity_event_statistics:df3ecd76eb0e022ea018100a2ee9ba58: 4063
Memory usage after serendipity_event_statistics:df3ecd76eb0e022ea018100a2ee9ba58: 4352
Memory usage before serendipity_event_trackexits:a60c92a98958f8ba7ad672d13b17d479: 4352
Memory usage after serendipity_event_trackexits:a60c92a98958f8ba7ad672d13b17d479: 4400
Memory usage before serendipity_event_mycalendar:396dcc1512c9fb6dc22a792e7f3c21eb: 4402
Memory usage after serendipity_event_mycalendar:396dcc1512c9fb6dc22a792e7f3c21eb: 4517
Memory usage before serendipity_event_cpgselector:dd06f64d600d379624945fca2003e7bd: 4518
Memory usage after serendipity_event_cpgselector:dd06f64d600d379624945fca2003e7bd: 4675
Memory usage before serendipity_event_pollbox:bc74afae87d8680dcd2a0068e3403c3a: 4677
Memory usage after serendipity_event_pollbox:bc74afae87d8680dcd2a0068e3403c3a: 4815
Memory usage before serendipity_event_backup:8c983a42a3e152d9c3a91f0d79a3d8ba: 4816
Memory usage after serendipity_event_backup:8c983a42a3e152d9c3a91f0d79a3d8ba: 5260
Memory usage before serendipity_event_randomblogdescription:4b04b58b86d917c6686aebcffa70d132: 5261
Memory usage after serendipity_event_randomblogdescription:4b04b58b86d917c6686aebcffa70d132: 5285
Memory usage before serendipity_event_entrycheck:e3e92a6b53b717a1d48aebe9b0555def: 5286
Memory usage after serendipity_event_entrycheck:e3e92a6b53b717a1d48aebe9b0555def: 5342
Memory usage before serendipity_event_entrypaging:32156f5cb74021adce05ed1c509193fe: 5343
Memory usage after serendipity_event_entrypaging:32156f5cb74021adce05ed1c509193fe: 5411
Memory usage before serendipity_event_head_nugget:2971c6774f083c787c8b39d444f13c04: 5413
Memory usage after serendipity_event_head_nugget:2971c6774f083c787c8b39d444f13c04: 5425
Memory usage before serendipity_event_geotag:42aa07223f31e38b49e192f460b6b4ee: 5426
Memory usage after serendipity_event_geotag:42aa07223f31e38b49e192f460b6b4ee: 5493
Memory usage before serendipity_event_entryproperties:96073289af0583d97f75a9f8bb435980: 5495
Memory usage after serendipity_event_entryproperties:96073289af0583d97f75a9f8bb435980: 5704

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web5/html/blog/include/plugin_api.inc.php:536) in /srv/www/htdocs/web5/html/blog/serendipity_admin.php on line 11
Echo @ Archives-Link
Memory usage before serendipity_event_s9ymarkup:8ff68c1686ece911f6529c5d3e77ca17: 3599
Memory usage after serendipity_event_s9ymarkup:8ff68c1686ece911f6529c5d3e77ca17: 3627
Memory usage before serendipity_event_emoticate:e895890463b19e249847e545a3b10f6b: 3628
Memory usage after serendipity_event_emoticate:e895890463b19e249847e545a3b10f6b: 3671
Memory usage before serendipity_event_nl2br:c196fe8911c7321426defc6ba0433c9f: 3673
Memory usage after serendipity_event_nl2br:c196fe8911c7321426defc6ba0433c9f: 3706
Memory usage before serendipity_event_browsercompatibility:69d3991232375365bcaa4d3e336e83de: 3708
Memory usage after serendipity_event_browsercompatibility:69d3991232375365bcaa4d3e336e83de: 3723
Memory usage before serendipity_event_spamblock:8e35e9f932f8da24becf7ff3fd77e469: 3724
Memory usage after serendipity_event_spamblock:8e35e9f932f8da24becf7ff3fd77e469: 4056
Memory usage before serendipity_event_spartacus:55d32bf23d53485d7e43b56538f9d87e: 4058
Memory usage after serendipity_event_spartacus:55d32bf23d53485d7e43b56538f9d87e: 4234
Memory usage before serendipity_event_statistics:df3ecd76eb0e022ea018100a2ee9ba58: 4236
Memory usage after serendipity_event_statistics:df3ecd76eb0e022ea018100a2ee9ba58: 4524
Memory usage before serendipity_event_trackexits:a60c92a98958f8ba7ad672d13b17d479: 4524
Memory usage after serendipity_event_trackexits:a60c92a98958f8ba7ad672d13b17d479: 4572
Memory usage before serendipity_event_mycalendar:396dcc1512c9fb6dc22a792e7f3c21eb: 4574
Memory usage after serendipity_event_mycalendar:396dcc1512c9fb6dc22a792e7f3c21eb: 4690
Memory usage before serendipity_event_cpgselector:dd06f64d600d379624945fca2003e7bd: 4691
Memory usage after serendipity_event_cpgselector:dd06f64d600d379624945fca2003e7bd: 4847
Memory usage before serendipity_event_pollbox:bc74afae87d8680dcd2a0068e3403c3a: 4849
Memory usage after serendipity_event_pollbox:bc74afae87d8680dcd2a0068e3403c3a: 4987
Memory usage before serendipity_event_backup:8c983a42a3e152d9c3a91f0d79a3d8ba: 4989
Memory usage after serendipity_event_backup:8c983a42a3e152d9c3a91f0d79a3d8ba: 5432
Memory usage before serendipity_event_randomblogdescription:4b04b58b86d917c6686aebcffa70d132: 5433
Memory usage after serendipity_event_randomblogdescription:4b04b58b86d917c6686aebcffa70d132: 5457
Memory usage before serendipity_event_entrycheck:e3e92a6b53b717a1d48aebe9b0555def: 5458
Memory usage after serendipity_event_entrycheck:e3e92a6b53b717a1d48aebe9b0555def: 5514
Memory usage before serendipity_event_entrypaging:32156f5cb74021adce05ed1c509193fe: 5516
Memory usage after serendipity_event_entrypaging:32156f5cb74021adce05ed1c509193fe: 5583
Memory usage before serendipity_event_head_nugget:2971c6774f083c787c8b39d444f13c04: 5585
Memory usage after serendipity_event_head_nugget:2971c6774f083c787c8b39d444f13c04: 5597
Memory usage before serendipity_event_geotag:42aa07223f31e38b49e192f460b6b4ee: 5599
Memory usage after serendipity_event_geotag:42aa07223f31e38b49e192f460b6b4ee: 5665
Memory usage before serendipity_event_entryproperties:96073289af0583d97f75a9f8bb435980: 5667
Memory usage after serendipity_event_entryproperties:96073289af0583d97f75a9f8bb435980: 5876

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /srv/www/htdocs/web5/html/blog/plugins/serendipity_event_geotag/serendipity_event_geotag.php on line 257
stego
Regular
Posts: 13
Joined: Thu Mar 01, 2007 1:22 am
Location: Zürich
Contact:

Post by stego »

I removed the Backup plugin, and i still have exactly the same error - with excact the same memory allocation.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 35 bytes) in /srv/www/htdocs/web5/html/blog/plugins/serendipity_event_geotag/serendipity_event_geotag.php on line 257
What do you think about my theory that the Geotag plugin is the "evil" one? Since the installation / remove of Geotag causes / stops the error. Furthermore: why is Geotag allocating memory when you click the Polls?
Thanks
Martin
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I'd love to debug your installation by trying a few things. Could I get temporary FTP access and a s9y user accoun tto your blog to do that? I really believe there's something server-related going on.

If you want to do that, write me a PM.

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/
ane
Regular
Posts: 12
Joined: Sun Jan 07, 2007 12:27 pm

Post by ane »

Any luck on this thing?

geoTag blows the static pages for me:
Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 12 bytes) in /www/htdocs/v123456/xxxxxx/plugins/serendipity_event_geotag/serendipity_event_geotag.php on line 255
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi ane!

Are you sure it's geotag? Which other event plugins do you have installed? It could very well be the sheer amount of other plugins. The first plugin that requires more memory will be the "reporter" of the error, but not the cause itself.

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/
ane
Regular
Posts: 12
Joined: Sun Jan 07, 2007 12:27 pm

Post by ane »

Hi Garvin,
I have the following Event-Plugins, after deactivating Polls and Statistics + Template chooser.
If I deactivate GeoTags, it works just fine... does Geotags require such large amounts of memory?

Textformatierung: Serendipity
Textformatierung: Smilies
Textformatierung: NL2BR
Browser-Kompatibilität
Spamschutz
Spartacus
Statische Seiten
Link List
RSS Aggregator
Geotag
Erweiterte Eigenschaften von Artikeln
Post Reply