View Single Post
  #48  
Old 04-30-2015, 12:46 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: Attention users of X-Cart vv.4.0.x - 4.7.1

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.


__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote