Sitemap plugin problem

Harutyun

Resident
Joined
Dec 5, 2011
Messages
528
Reaction score
0
FP$
6
Hello,

Today I tried to post a new article, I posted it but received the following message:

Fatal error: Out of memory (allocated 41680896) (tried to allocate 7680 bytes) in /home/harutyun/public_html/wp-content/plugins/google-sitemap-generator/sitemap-core.php on line 1473

Thank you,
Harutyun.
 
1) Please check php.ini file in the root/public_html folder of your site. Open php.ini file in text editor and change the values for memory_limit. By default it should see memory_limit = 8M. Try changing it to 12M. if it wil not resolve the problem then try to increase it either 16M or 24M.

2) If you can’t find the php.ini file, open up the PHP file which requires more memory and add this line just after ini_set(’memory_limit’, ‘12M’); we can increase memory upto 16M or 24M to resolve the issue. But do it try with 12M first.

3) In last, open the .htaccess file from the root/public_html folder and add this line php_value memory_limit 12M

Source
 
Thanks for the response but how it has appeared, I haven't touched this plugin since it was installed like 4-5 months ago and since I am not any close to "good" at coding, I don't dare to touch the codes.

Harutyun.
 
Harutyun said:
Thanks for the response but how it has appeared, I haven't touched this plugin since it was installed like 4-5 months ago and since I am not any close to "good" at coding, I don't dare to touch the codes.

Harutyun.

The plugin is running out of memory to use. .

If there are settings in your plugin (haven't used it, so not sure how it works) perhaps you can play around with this and try out settings that won't use a lot of memory like limiting the amount of items put into your sitemap.

You can also increase the memory limit in the PHP.ini file.Depending on your host, they may or may not allow you do make this sort of change.

If you don't want to do any of the code changes khaleel mentioned, you can try contacting your host and see what they suggest.
 
Back
Top Bottom