X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   News and Announcements (https://forum.x-cart.com/forumdisplay.php?f=28)
-   -   PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12) (https://forum.x-cart.com/showthread.php?t=67915)

photo 01-03-2014 08:56 AM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
Quote:

Originally Posted by cflsystems
Thanks for confirming. Is this going to be another not tested patch?


Thanks for bringing this issue up Steve. Please update this thread if/when you find out anything.

Lets hope we get a responce from QT on this asap.

I am looking to upgrade to v4.6.x but with not saving annon customer data not yet resolved as well as a couple of other issues I been dragging my feet.

roband 01-04-2014 05:16 AM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
Wasn't this already addressed by QT in
http://bt.x-cart.com/view.php?id=43030

See the extra patch added there.

Basically you need to add to top.inc.php:
# If register_long_arrays = off (php5)
if (empty($HTTP_SERVER_VARS)) {
$HTTP_SERVER_VARS = (array)$_SERVER;
$HTTP_GET_VARS = (array)$_GET;
$HTTP_POST_VARS = (array)$_POST;
$HTTP_COOKIE_VARS = (array)$_COOKIE;
$HTTP_POST_FILES = (array)$_FILES;
$HTTP_ENV_VARS = (array)$_ENV;
}

cflsystems 01-04-2014 09:17 AM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
Thank you for this link.
This is the problem - first the bugtracker does not work and it is easier to find a fly on elephant's ass than something in the bugtracker; and the link to this very important fix is just posted without any explanation of what it is or for what - I missed it.... FOR THE OTHERs WHICH SEEMS TO MISSED IT AS WELL - POST #11
This is still a major flow of how to handle the situation given the fact that the bug tracker basically does not exist in the shape it is right now and Post#11 could have mentioned something to bring up everyones attanetion to this....

cherie 01-04-2014 04:36 PM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
Is it too much to ask for Bug Tracker to at least be back to what it was before the recent change, some context on the BT links in this thread, and the first post be updated so it reads as a single comprehensive guide?

Ksenia 01-08-2014 03:18 AM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
Thank you, the 1st post of the thread is updated to include the info from post #11.

markwhoo 01-23-2014 07:30 PM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.1.19; 4.1.12)
 
I am not sure if anyone has thought of this until it may have been too late, but has anyone taken add on mods into consideration with php 5.4 comparability?

I see everyone has spoken of cart compatibility from as early as inception, but no one has said if they had issues with their mods or add ons.

I have a lot of both, and I wonder if anyone has had issues with any of BCS's, Jon's CDSEO, Altered Cart, Firetank mods or add ons etc?

Would anyone like to chime in and let us know if they upgraded to 5.4.x and lost the use of some mods?

The reason I say this is MySQL is also upgraded when updating php to 5.4.x, and once it is updated you cannot downgrade MySQL so it would be a total loss and big issues.


Have you had issues or total success, or have you not tested add ons or mods post update and just don't know?

Isleman 02-03-2014 08:51 AM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
I have applied the php5.3.x-patch-2010-04-12_4.1.12 to my 4.1.11 X-cart store as I have been prompted by our ISP they will be changing soon to PHP 5.3 .
When looking into summary under php info, the site is still saying that is running PHP 5.2.17.
How can I check that the patch has been applied properly ?

cflsystems 02-04-2014 08:25 AM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
If you have applied the patch (modified the files) then it is applied. The PHP version under Summary is the PHP installed on the server - it has nothing to do with XC. This number will change if/when your host upgrades PHP.

smokinghunks 04-25-2014 02:26 PM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
i was able to fix my XCART Version 4.1.10 to perfect work under PHP 5.4 just by going to the check_requirements.php and editing line 162 from 1 to 0 for the option :

if (phpversion() >= "5.0.0") {
$CHECK_REQUIREMENTS["req_vars"][] = array (
"option" =>"register_long_arrays",
"req_val" =>1,
"real_val"=>"",
"critical"=>0);
}

i hope this can help anybody else with the same issue :D

Junior

Thomasb134 05-25-2014 01:06 PM

Re: PHP 5.4 compatibility for older versions of X-Cart (4.0.19; 4.1.12)
 
Quote:

Originally Posted by cflsystems
{Snip}QT - this post is misleading since the patch provided doesn't fix older XC versions for use with PHP 5.4.x and up. Please fix and provide new 5.4.x patch.
This does not affect newer XC releases like 4.5.x and 4.6.x
P.S. If anyone had tested or running older versions of XC on PHP 5.4.x without any issues please share so we can get to the bottom of this....

Some feedback on my V4.4.5 installation to share: My host upgraded all customer accounts from PHP 5.3 to PHP5.4 yesterday. They had given me a heads-up about the upgrade so I was not surprised to see the cart crash after the switch.

The crash was due to a PHP5.3 entry in the php.ini file that conflicted with PHP5.4. The php.ini file was not needed so it was removed and the cart was back online. However, later in the day I found hundreds of those dreaded "Illegal string offset" warnings caused by xcart's modules and third party add-on modules.

I understand that these warnings will not cause the cart to fail. However, I decided that rather than fill the logs with warnings (or force their suppression), I instead reverted back to PHP5.3.

Fortunately my host's control panel allows the users to select the version they want. The default PHP5.3 settings were chosen; All is back to normal now.


All times are GMT -8. The time now is 04:56 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.