Results 1 to 6 of 6
  1. #1
    Join Date
    May 2007
    Posts
    36
    Plugin Contributions
    0

    Default 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:

    Code:
    [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.
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

  2. #2
    Join Date
    May 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Blank Index with 5.3 patch applied

    Ok changed that line to:

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

    Code:
    if (!preg_match('[0-9]', $key)) {
    Note that this is the function and the carat symbol that I needed to change here.

    Then the debug file had some different errors:
    Code:
    [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
    So I went to functions_email.php and changed line 161 to:
    Code:
    $mail = new PHPMailer();
    Removing the ampersand and then went to sessions.php and changed line 112 to:
    Code:
    if (preg_replace('[a-zA-Z0-9]', '', session_id()) != '') session_regenerate_id();
    Now the page zen/admin still loads blank but I have no errors in the debug file to work with. What have I done wrong here?
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  4. #4
    Join Date
    May 2007
    Posts
    36
    Plugin Contributions
    0

    Default Re: Blank Index with 5.3 patch applied

    Quote Originally Posted by DrByte View Post
    You don't need to go editing all the ereg calls, ...
    Thanks I did wonder. So basically I haven't applied the patch properly.
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

  5. #5
    Join Date
    May 2007
    Posts
    36
    Plugin Contributions
    0

    Default 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.
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

  6. #6
    Join Date
    May 2007
    Posts
    36
    Plugin Contributions
    0

    Default 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.
    http://www.glasys.co.uk
    Noli Illegitimi Carborundum

 

 

Similar Threads

  1. 1.3.7 Applied Latest Security Patch -- Am I Safe?
    By myfootsmells in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 24 Nov 2009, 10:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg