I am patching xcart 4.5.3 using the security patch 4.5.4
The func.core.php came up with the following error and causing a white screen.
Quote:
Fatal error: Cannot redeclare func_data_cache_write() (previously declared in /home/paragonp/public_html/check_requirements.php:165) in /home/paragonp/public_html/include/func/func.core.php on line 2276
|
Using KDiff3 I spotted that the old file had
Code:
if (!function_exists('func_data_cache_write')) {
function func_data_cache_write($fp, $prefix, $data)
{
while the new one just declares the function.
Code:
function func_data_cache_write($fp, $prefix, $data) { // {{{
I guess the fix is to enclose the function declaration with the if exists statement
.