Hello guys. I'm really hoping you can help me out please.
I have just taken out a new dedicated server, which comes with Plesk 9.0. To cut a long story short, I have had an asbolute nightmare converting data from my old server over to my new one due to Plesk different versions.
Finally, I got the server running, but not without problems.
Strangely, on my old server this problem did not occur, but on my new one I am receiving the error:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3 bytes) in /var/www/vhosts/domain/httpdocs/staff/geoiploc.php on line 1259
Allowed memory size of 33554432 bytes exhausted (tried to allocate 10 bytes)
Unfortunately, because the file is so big I was unable to attach it, but it's the one on this page:http://chir.ag/projects/geoiploc/
You'll see that line isn't anything interesting.
To get my server running, I have had to add this code to the top of my functions.php which is included in all my files. If I added this just to getiploc.php, the same occurred.
ini_set("memory_limit","120M");
I have looked at phpinfo() on both the old and new server, and both have:
memory_limit 32M 32M
If you have any idea why this is occuring, or how I can stop it, it would be great. I just find it really strange that the old server doesn't have this issue, and runs the script without error?
Thank you very much in advance for your help 🙂