I am upgrading from 1.3.9 to 1.5.4 (attempting to do it by the official Zen Cart method). After running zc_install when I attempted to log in to the admin area I got a blank screen. No error messages, nothing.
Checking the mydebug log I found
Code:
PHP Fatal error: Call to undefined function zen_get_ip_address() in /xxxxxxxxxxxxx[admin]/includes/init_includes/init_sessions.php on line 34
Lines 30-37 of admin /includes/init_includes/init_sessions.php read as follows:
PHP Code:
/**
* tidy up $_SERVER['REMOTE_ADDR'] before we use it anywhere else
*/
$ipAddressArray = explode(',', zen_get_ip_address());
$ipAddress = (sizeof($ipAddressArray) > 0) ? $ipAddressArray[0] : '';
$_SERVER['REMOTE_ADDR'] = $ipAddress;
It is $ipAddressArray = explode(',', zen_get_ip_address()); which appears at line 34. When I comment out that line I am able to access my admin area and doing that has not led to any apparent problems, but since I do not understand the intent of that line and have not tried to go live I worry about unforeseen consequences. Can anyone tell me what problems may arise from commenting out that line and what I should do to fix it?
If relevant, PHP shows as version 5.4.45 and MySQL as version 5.5.45.
Thank you.
Bookmarks