Quote:
Originally Posted by zone1creative
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.
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 .
|
Quote:
Leading on from the previous post you will need to also update the declaration of the function
if (!function_exists('func_html_entity_decode')) {
too
However, after this you just get a blank white page.
Any ideas Xcart Devs?
|
You are right.
xcart_4_5_4/include/func/func.core.php does not have the code "if (!function_exists('func_data_cache_write')) {"
I suggest you to not overwrite completely the original
your_xcart_4_5_3/include/func/func.core.php
with the
security-patch-2015-04-28_4.5.4.tgz-xcart/include/func/func.core.php file
The safe ways are
https://help.x-cart.com/index.php?title=X-Cart:Applying_Patches#To_apply_a_patch_via_X-Cart_Admin_area
for 4.5.4/4.5.5 versions
https://help.x-cart.com/index.php?title=X-Cart:To_apply_a_patch_manually
for 4.5.0/4.5.1/4.5.2/4.5.3 versions