Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default ZC version 1.5.1 is compatible with which PHP versions??

    Can 1.5.1 run on PHP 5.6??
    Or should I downgrade it??
    Thank you, Tom

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    .

    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.

  3. #3
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    Thank you, my question is answered...
    I'm gonna leave it on php 5.6 for now and see how it goes.
    I can downgrade it to 5.3 if I must.
    Thank you, Tom

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    I don't recommend downgrading PHP versions. Ever.


    I know you already know that you should upgrade your Zen Cart version from v1.5.1 to a modern version.

    Let me point out some of the issues you're going to have if you don't:

    a) Your site is now experiencing a load of errors related to array-element handling, because PHP 5.4 became much more strict about how array elements were coded, and the older code prior to ZC 1.5.2 was sloppy in a few places. So in shipping-quote functionality you'll see the most errors related to that.
    And your server's PHP error logs will be accumulating these messages with every visitor's browsing and shopping activity, using up more disk space to log them.

    b) Some regular-expression functions were using syntaxes that were changed out for callbacks in PHP 5.4, so you'll get fatal PHP errors if those are used. I can't recall off the top of my head where those changes were needed, but there were a handful. Not as many as PHP 5.3 needed, but still a few.

    c) In PHP 5.5 the support for "mysql_xxxx()" functions was deprecated, and later removed in 5.6, making it necessary to manually compile those features back into PHP on sites that need those old unmaintained functions. I believe it was ZC 1.5.2 where Zen Cart was converted to use the new "mysqli_xxxxx()" functions instead.

    d) If you upgrade your PHP version and then downgrade it again, when using ZC v1.5.2 or newer, you will mangle the passwords and people will need to reset their passwords in order to access their accounts again, because of the way ZC and PHP interact regarding password encryption.

    Those are probably the biggest PHP compatibility issues you'll encounter.

    And then there's the list of bugs that have been fixed in the 4 years since v1.5.1 was released.

    I'm sure you already understand the myriad other reasons why using current, maintained versions is better than using unsupported versions. And I'm not posting all this to berate or scold. Just to help inform you of the symptoms you're likely to encounter, so that you know why they're happening.

    Hope that's helpful.
    .

    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.

  5. #5
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    That was excessively educational, to say the least :) :)
    All very good information too -- I *think* :) :)
    May have to wait awhile before I can do anything though.
    I found that ZC is really hard to upgrade and someday it will get better at upgrading.
    Especially since my site uses an ancient custom template etc. that is no longer maintained, which is not Zen Cart's fault. :)
    I've saved a bunch of stuff about upgrading and I'll need to set up a LAMP server to work on it as well...practice and so forth.
    Thank you, Tom

  6. #6
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    I'm on a hosting provider that lets me through cPanel to choose whatever version of PHP I want for running a particular site...it's a dropdown list sort of thing.
    Is that the same as downgrading??
    I would think not...
    Thank you, Tom

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    Look, upgrading from ZC 1.5.1 to the latest version (1.5.5a) is not that complicated.

    DrByte has outlined all the reasons why you should run the latest versions of any software, not just for functionality but also for the latest security ie to prevent hacking attempts etc etc.

    Another big plus of running the latest version of ZC (1.5.5a) is that you can run it on PHP 7.x and that version of PHP is really fast.

    Last but not least, an upgrade is a perfect opportunity to 'weed out' old and unused plugins which may just clutter up your code base.

    My 5 cents

  8. #8
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    I don't recall that we have any plugins, it's a pretty vanilla install.
    The problem is the CSS/theme customizations used...that's where it's not so easy, lots of file and css changes.

    I can't just upgrade...so many files to review and revise.
    I should really figure out putting the existing site into a LAMP server and practicing.

    But I don't think changing the PHP in cPanel should cause any harm...

  9. #9
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    Quote Originally Posted by tlyczko View Post
    I'm on a hosting provider that lets me through cPanel to choose whatever version of PHP I want for running a particular site...it's a dropdown list sort of thing.
    Is that the same as downgrading??
    I would think not...
    Thank you, Tom
    The "downgrading" issues occur whenever the php used at the site goes from a higher version (larger number combination) to a lower version for anyone, literally anyone that has logged into the site. Otherwise the server is impacted by error logs for every guest/checkout or loop through the checkout.

    I'm also not entirely sure how serious you are/were with the above statement so I apologize if this has come off as something that it wasn't meant to. The purpose was to identify what changes constitute downgrading regardless of the method(s) provided to adjust the operating php version.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Dec 2003
    Location
    UPstate NY
    Posts
    440
    Plugin Contributions
    0

    Default Re: ZC version 1.5.1 is compatible with which PHP versions??

    The site is not broken...yet.
    Time will tell in the coming days/weeks.

    It displays things so far as I know.
    I'll leave things alone for now.

    The php version went up b/c the hosting plan changed.

    Just out of curiosity, if no one is logged in and the php version is changed, then what happens??
    The same errors and whatnot??

    Thank you, Tom

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 4
    Last Post: 7 May 2016, 05:46 PM
  2. Upcoming versions - 1.5.3 and 1.6.0 -- compatible with PHP 5.4, 5.5, 5.6
    By DrByte in forum Zen Cart Release Announcements
    Replies: 0
    Last Post: 24 May 2014, 02:32 AM
  3. Is Version 1.3.9d Compatible with PHP 5.3.3?
    By kailas in forum General Questions
    Replies: 8
    Last Post: 16 Aug 2010, 03:26 PM
  4. Which PHP version should I install to be used with my Zen cart
    By Marlake in forum Installing on a Windows Server
    Replies: 6
    Last Post: 26 Mar 2008, 02:33 PM
  5. Which PHP/MySQL versions?
    By dugawug in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 10 Mar 2007, 02:32 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR