Wiccle.com - Back to Index
Wiccle.com - Back to Index
 
Fusion » Forums » Zone: Public Forums » Category: Install & Modification » Re: iWiccle 1.11->1.20 Upgrade Script Information  
 
 

Post: Re: iWiccle 1.11->1.20 Upgrade Script Information

Post #1
Member: Markus ⋅ Date: January 25, 2010 ⋅ Thread: iWiccle 1.11->1.20 Upgrade Script Information
[[AVATAR]]: Markus

Resolution for a PHP 5.1.x compatibility issue

Your problem being this (looked up error logs in the logs folder):

[Mon Jan 25 12:02:59 2010] [error] [client 99.3.190.5] PHP Fatal error:  Call to undefined function  memory_get_peak_usage() in /usr/---/htdocs/core/class_errors.php on line 175

memory_get_peak_usage(), I note, was introduced in PHP 5.2, while your server is still on 5.1.x. While our specs still say 5.1.x or higher, it's really something we should change to say 5.2.x because 5.1.6 for example is four years old, and has a bunch of security holes and quirks that have since been patched.

The offending function is in /core/class_errors.php at line #175, and can be modified for example as follows until you upgrade your PHP version:

$core['runtime']['memory_peak_usage'] = "N/A"; // round(memory_get_peak_usage(TRUE) / 1024);

I have done the change, included the register_globals off switch as it's really necessary to have in place, and your site is up and running smooth. Please verify that things are in order, and I will then delete all copies of your FTP access details at my end. (We do not store logins for a number of reasons, you will need to resend them in the future if you need me to access the site again.)