Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47
  1. #21
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Quote Originally Posted by sh33pz View Post
    My clients on my server also have the same issue... There seems to be a issue with ZenCart and php-5.2. In order to correct the issue I had to roll back php to 5.1.6.

    Any Idea when a fix/patch will be released?
    As a workaround: you don't have to roll back to php 5.1.6. Just change your session to be "file based" from "database based" in the ZenCart config file: includes/configure.php and admin/includes/configure.php

    This way you can still run ZenCart while taking advantage of the PHP 5.2.0 security and bug fixes. But I would still prefer to switch back to database-based session for security sometime later when we find a solution.

  2. #22
    Join Date
    Nov 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Aww sweet, Thanks for the info.


    Will try that out later tonite

  3. #23
    Join Date
    Jun 2006
    Posts
    19
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Meanwhile others find the same problem:

    http://community.mybboard.net/showth...d=13506&page=1

    And it's been reported now:

    http://bugs.php.net/bug.php?id=39381

    So it's not ZC which is giving php a bad rep like this twit claims

    http://caseysoftware.com/zend-conference-2006-day-2

    but php.net themselves which first quarrel about 5.2.0 for several weeks and then YET again don't get it right so half the world is laughing about more bugged or better f***ed-up php-releases Like last time 5.1.6 when they "forgot" something for the 64bit uP, unbelievable. This is really gonna start to pi55 me off now ...

  4. #24
    Join Date
    Jun 2006
    Posts
    19
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    And more from another completely different project:

    http://www.dotproject.net/vbulletin/showthread.php?p=26051


  5. #25
    Join Date
    Nov 2006
    Posts
    3
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Thanks for the info bud :) So it's off to php.net to bug them for a fix Thanks to everyone for their help! My clients will be happy to know.. its php itself to blame not Zen Cart !!!

    As fir the Zen Cart Coders... Keep up the good work! I kinda figured after.. it must be php itself.. I just couldn't see ya guys.. over look this!
    Last edited by Kim; 4 Nov 2006 at 11:25 PM.

  6. #26
    Join Date
    Jan 2004
    Posts
    65,205
    Blog Entries
    7
    Plugin Contributions
    223

    Default Re: php 5.2.0 update problem

    It appears as though PHP has assigned the bug to someone for fixing.

    However, in the meantime, you have two options:
    a. use file-based caching instead of database-based (not really a good solution, but works around the problem, but is less secure and much less flexible for most hosting environments. 'db' is really the better choice except in the case of this PHP bug):
    configure.php file:
    define('STORE_SESSIONS', '');

    OR:

    A Suggested Bandage:
    b. edit /includes/functions/sessions.php
    and /admin/includes/functions/sessions.php, if it exists on your site:
    Code:
        function _sess_write($key, $val) {
          global $db;
          global $SESS_LIFE;
    change to:
    Code:
        function _sess_write($key, $val) {
          // The following is only to work around a PHP 5.2.0 bug:
          global $db;
          if (!is_object($db)) {
            //PHP 5.2.0 bug workaround ... 
            $db = new queryFactory();
            $db->connect(DB_SERVER, DB_SERVER_USERNAME, DB_SERVER_PASSWORD, DB_DATABASE, USE_PCONNECT, false);
          }
    
          global $SESS_LIFE;
    Option (b) may or may not be "complete", and has only had preliminary testing. The best fix will be to have PHP fix their bug, of course.

    NOTE: If this fix "works" for you, then you need to upgrade your version of Zen Cart ... sooner than later. The latest version of Zen Cart contains a number of fixes related to PHP5 and MySQL5. You should plan your upgrade ... soon.


    Addendum: There are some other technical approaches which could be used to address the session_write_close() and register_shutdown_function() changes introduced in this new PHP version. These may be explored in the future. For now, the above approaches are the simplest to implement for those needing to make a quick-fix to their code.
    .

    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.

  7. #27
    Join Date
    Jul 2006
    Posts
    14
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Thanks

    it is working now.

  8. #28
    Join Date
    Jun 2006
    Posts
    19
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Thanks for the workaround DrByte!

  9. #29
    Join Date
    Nov 2006
    Posts
    30
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    The related PHP bug (http://bugs.php.net/bug.php?id=39381) was updated by the PHP developer asking for sample code to reproduce. Anyone can provide one? DrByte? :)

  10. #30
    Join Date
    Nov 2006
    Location
    Romania
    Posts
    29
    Plugin Contributions
    0

    Default Re: php 5.2.0 update problem

    Hello ! This is my first post on zen-cart forum ! I wanna thank you very much to DrByte ! Good job. Best regards!
    Software Shop - Computer Software <- My Zen-Cart
    Find your love - Online Dating Site
    Submit Free - Web Directory

 

 
Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. v153 myDEBUG: after update to php 5.4.31
    By RixStix in forum Bug Reports
    Replies: 2
    Last Post: 22 Aug 2014, 04:47 PM
  2. v151 Update to PHP 5.4
    By GabyWalker in forum Basic Configuration
    Replies: 8
    Last Post: 16 May 2014, 10:45 PM
  3. my english.php won't update?
    By blind1 in forum Basic Configuration
    Replies: 4
    Last Post: 23 Dec 2008, 12:41 PM

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