Zen Cart Logo
Forums / Basic Configuration / Blank Index with 5.3 patch applied

Blank Index with 5.3 patch applied

Locked

Views: 894

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
2 Feb 2010, 10:31 AM
#1
leg avatar

leg

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Blank Index with 5.3 patch applied

I have installed zen on xampp which has php 5.3 so I have had to apply the patch for using it. I have been through this a few times and have installed the error logging php file. It gives me this error:

[02-Feb-2010 10:22:55] PHP Deprecated:  Function ereg() is deprecated in E:\xampp\htdocs\zen\includes\classes\db\mysql\query_factory.php on line 177

Is this one that was missed and what should I change it to to fix it. I only get a blank page in admin not in the shop itself.

2 Feb 2010, 11:54 AM
#2
leg avatar

leg

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Blank Index with 5.3 patch applied

Ok changed that line to:

if (!preg_match('[0-9]', $key)) {
```Then had a similar error for line 412 and changed it to:

if (!preg_match('[0-9]', $key)) {


Then the debug file had some different errors:

[02-Feb-2010 11:36:15] PHP Deprecated: Assigning the return value of new by reference is deprecated in E:\xampp\htdocs\zen\includes\functions\functions_email.php on line 161

[02-Feb-2010 11:36:15] PHP Deprecated: Function ereg_replace() is deprecated in E:\xampp\htdocs\zen\includes\functions\sessions.php on line 112

$mail = new PHPMailer();

if (preg_replace('[a-zA-Z0-9]', '', session_id()) != '') session_regenerate_id();

2 Feb 2010, 2:36 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Blank Index with 5.3 patch applied

You don't need to go editing all the ereg calls, etc.

If you didn't apply the updates to the application_top.php files, then the "deprecated" notices won't be suppressed, and you'll get blank pages.

The "deprecated" notices are NOT indicators that the code isn't working. They're alerting that a better method is available. The "Zen Cart patch for PHP 5.3" doesn't edit ALL deprecated function calls. Instead, it suppresses the alerts that halt execution. Otherwise the patch would have been HUMONGOUS and much more complicated to install.
The upcoming v1.3.9 version will include all the applicable fixes to deprecated function calls.

In your case, whatever you've done hasn't updated the error_reporting level properly, and, as I mentioned, that's the application_top.php updates.

2 Feb 2010, 3:26 PM
#4
leg avatar

leg

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Blank Index with 5.3 patch applied

DrByte:

You don't need to go editing all the ereg calls, ...Thanks I did wonder. So basically I haven't applied the patch properly.

3 Feb 2010, 10:11 AM
#5
leg avatar

leg

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Blank Index with 5.3 patch applied

I must be doing something else wrong as I have now installed an older version of xampp that has php 5.2.6 and I have exactly the same problem. I work through the install and when finished I can access the shop from but I get a blank page after logging into the admin area. I haven't edited anything yet so any idea what I have to do here to get to the admin area.

3 Feb 2010, 12:53 PM
#6
leg avatar

leg

New Zenner

Join Date:
May 2007
Posts:
36
Plugin Contributions:
0

Re: Blank Index with 5.3 patch applied

Apologies this turns out to be too short an execution time for php scripts on my xampp. :oops: