You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi Network Solutions just upgraded their PHP setting to 5.3.8 yesterday and now my clients cart is down. Getting the error below
Script Execution Error
Function split() is deprecated
File: /core/KHXC/KHXC.php Line: 1902 Error Number: 8192
Is there a fix? Just checking.
thanks,
Daniel
Offline
I was told I can replace it with preg_split() and it will work. Any opinions?
Offline
split() is now void as a function. PHP has been urging programmers to use explode() for quite some time.
list($var1,$var2)=split(':',$vartosplit);
becomes:
list($var1,$var2)=explode(':',$vartosplit);
As PHP has stated for quite some time: "This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged."
I am not really sure about CCP in PHP 5.3 but obviously split can't be used. Personally I think this one of things that makes PHP very weak. They like messing with function calls. There is NO reason why they can't make split() map to explode() internally. Perl was SO much more stable and it is too bad Perl didn't keep up with the times.
Offline
I made the change and the admin comes in but the index page of the cart front end is a blank white page.
not sure what to do there though.
Daniel
Last edited by daviat (03-02-2012 12:37:14)
Offline
There is another option. You don't need to change ANY of the splits. You can build a custom call to automatically call explode.
function split($splitvar,$splitthis) { return explode("$splitvar",$splitthis); }
I would put that into the private directory "config.php" right before the ?> Of course any updates to this file will remove that function but you won't need to change any code.
Offline
What error are r u getting?
Offline
I am using CCP 6 just so you know.
I managed to get into the admin but then I try to navigate to other pages I get the error below
Script Execution Error
Assigning the return value of new by reference is deprecated
File: /pear/PEAR.php Line: 563 Error Number: 8192
I added that script to the config but now all the pages are blanked out.
Daniel
Last edited by daviat (03-02-2012 12:47:23)
Offline
I can get into the admin
http://www.colonialflowershoplr.com/khxc/admin.php
But if I navigate around the admin I get the error again below
Script Execution Error
Assigning the return value of new by reference is deprecated
File: /pear/PEAR.php Line: 563 Error Number: 8192
Also the index frontend of the cart is blanked out.
http://www.colonialflowershoplr.com/
Daniel
Last edited by daviat (03-02-2012 12:53:58)
Offline
The split function has been fixed. However that is a new problem. I'll send u a pm.
Offline
You should make a backup of that file and replace all
= &
with:
=
Offline
Thanks that fixed the admin, which I can now get into, but for some reason the index page is still blank
http://www.colonialflowershoplr.com/khxc/index.php
Do you know what could be causing that? There is no error this time. Just a blank page.
thanks for the help,
Daniel
Offline
You need to look at the error_log on the web server.
Offline
I accessed the error logs and all I have is below when I access the index.php
[Fri Mar 02 18:55:18 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Fri Mar 02 19:10:04 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt, referer: http://www.colonialflowershoplr.com/robots.txt
There are no files like robots.txt in the directory. Never were. weird. The error logs definitely are of no help here.
Could there be a PHP problem in the index.php file? Do I need to remove all the & 's?
thanks,
Daniel
Last edited by daviat (03-02-2012 19:42:01)
Offline
I am guessing you don't have ssh access? That would be helpful to run the script from the command line.
Offline
Just ftp . . . they said it could be the index.php running the front page but not sure what to check since there is no error.
This is all that is in the error logo for the past hour.
[Fri Mar 02 18:55:18 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Fri Mar 02 19:10:04 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt, referer: http://www.colonialflowershoplr.com/robots.txt
[Fri Mar 02 19:40:03 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Fri Mar 02 19:40:03 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Fri Mar 02 19:44:51 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
I managed to fix the admin but not the front end. Could the index.php file be incompatible with PHP 5.3.8?
Concerning the SSH, If I have it in the Network Solutions admin what script can I run?
thanks,
Daniel
Last edited by daviat (03-02-2012 19:56:00)
Offline
PHP 5.3 made a lot of chances. I would need additional information to really be of assistance. This is why I run our sites on dedicated and VPSes so I can control server software and get SSH access. Many scripts aren't 5.3 compatible and without the command line it is harder to troubleshoot. I am not really sure what to tell you.
The white page is due to a bad call but there are just to many things it could be and while I know some of the CCP code I don't know completely. So I can't really say what else may be a problem. However to answer your question = & is no longer valid.
Offline
Tell them to run the index.php. It could provide you errors. The errors you mention aren't blank screen issues.
Offline
I can remove the & symbols but not sure what replaced them. I removed them from the code below but that errored the file out. This is a tough fix.
if ((isset($relay)) && (!(empty($relay)))) {
Thanks for the info Jeremy. Much appreciated.
Daniel
Last edited by daviat (03-02-2012 23:14:42)
Offline
Well not all &'s are problems. However the combination of = & is not longer allowed as it needs to be = as I stated a few posts above. However you shouldn't remove all &'s.
Offline
I did review the complete list of changes in PHP 5.3 and other than split my guess is that "= &new" still exists in some of the CCP files. The list of functions removed isn't that extensive and most I doubt are in use by CCP. So that leaves the "= &" calls in the files.
You should download ALL the files into a backup folder then run a find and replace against all "= &" to replace with just "=" (no quotes of course). Then upload ALL the files from your computer. However, as mentioned, keep backups before applying changes.
Source: http://php.net/manual/en/migration53.deprecated.php
Offline
Ok . . . I will try that. Thanks.
Offline
Good luck.
When I get a chance I want to program a script to start checking other PHP scripts for invalid calls. I hope to get this done sometime next week.
Offline
Well . . . I replaced all the =& with just a = thoughout but nothing happened. It has got to be more then just that change. No idea what is crashing the site. Admin works but no front end. Thought it was the actual template but made the changes as requested but not coming back.
Daniel
Offline
Did you also check for = space & so "= &" (no quotes of course).
Offline
I only checked for =& wil no space. I will check for = & too. = & with a space.
Also here are the recent error logs but not sure what they show. Thanks.
[Sun Mar 04 00:03:01 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/media
[Sun Mar 04 00:34:12 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 00:39:20 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 00:48:49 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico, referer: http://www.colonialflowershoplr.com/khxc/index.php
[Sun Mar 04 00:52:38 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 00:56:52 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 01:01:32 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/quotations
[Sun Mar 04 02:08:20 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 02:08:29 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 02:46:05 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 02:46:08 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/deliverychart.html
[Sun Mar 04 03:25:45 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 03:36:07 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 03:48:01 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 03:50:53 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 04:05:12 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 04:28:41 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 04:33:51 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 04:35:13 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 05:16:41 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 06:09:36 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/quotations.html
[Sun Mar 04 06:21:58 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 06:23:50 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 06:29:50 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 06:36:52 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 06:58:22 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 07:29:18 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 07:56:21 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 08:51:53 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 09:05:34 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 09:06:46 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 09:27:11 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 09:39:15 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 09:39:19 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/aboutus.html
[Sun Mar 04 09:45:51 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 09:46:47 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 10:17:03 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 10:17:21 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 10:24:08 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 10:39:32 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/aboutus.html
[Sun Mar 04 10:42:40 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 11:02:27 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 11:04:47 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 11:06:06 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 11:11:44 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 11:19:12 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/deliveryinfo.html
[Sun Mar 04 12:01:25 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 12:18:03 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 12:28:21 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 12:41:19 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 12:41:21 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 13:24:19 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 13:24:38 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 13:33:48 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 13:34:41 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 13:52:19 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 14:01:13 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 14:27:56 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/international.html
[Sun Mar 04 14:52:09 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 15:09:42 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 15:09:42 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 15:18:22 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 15:18:24 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/category
[Sun Mar 04 15:45:28 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 16:28:50 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 16:50:45 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 17:12:49 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 17:17:33 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:17:34 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:17:42 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 17:17:44 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 17:21:23 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 17:22:59 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 17:41:26 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/robots.txt
[Sun Mar 04 17:42:19 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:46:16 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:46:17 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:46:17 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:49:01 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:49:01 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:49:02 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/favicon.ico
[Sun Mar 04 17:53:23 2012][error] [client 205.178.182.169] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/product
[Sun Mar 04 17:58:46 2012][error] [client 205.178.182.168] File does not exist: /data/15/2/115/139/2115628/user/2321572/htdocs/khx..
Last edited by daviat (03-04-2012 18:20:43)
Offline