Thread: 1.2.7 and PHP5

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default 1.2.7 and PHP5

    I have two sites on 1.2.7 that the customers can't afford to upgrade.

    I had to install that fix recently for MySQL 5 and everything seemed fine.

    But this week my server was just upgraded to PHP5 and now my sites don't work again. It seems that anything that requires returning data to the store doesn't work. Can't log in-admin or user. Can't add things to cart. Just returns a screen "your shopping cart is empty".

    What to do?

    Thanks much!
    Last edited by Kayla; 12 Dec 2007 at 01:57 AM.

  2. #2
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: 1.2.7 and PHP5

    to be able to access the admin replace the includes/functions/sessions.php with one from 1.3.7

    but thats just a bandaid to get you into the site it will still not work beyond getting into the admin

    if your on php5 then you will need to upgrade remember php4 is dead at the end of this month ( dead I mean End of Life )
    Zen cart PCI compliant Hosting

  3. #3
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default Re: 1.2.7 and PHP5

    Thanks Merlin. I didn't know that about PHP4.

    I guess my schedule just changed for the next few weeks! Ouch!

  4. #4
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default Re: 1.2.7 and PHP5

    Bugger. I get "illegal access" when I replace that file.

    Can you tell me if I do a manual db dump from PHPMyAdmin, what settings do I need to have it on so I get a file that is easily loaded back in after upgrade?

  5. #5
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default Re: 1.2.7 and PHP5

    Specifically these settings. Should any of them be checked?

    Structure
    Add DROP TABLE / DROP VIEW
    Add IF NOT EXISTS
    Add AUTO_INCREMENT value
    Enclose table and field names with backquotes
    Add CREATE PROCEDURE / FUNCTION

  6. #6
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default Re: 1.2.7 and PHP5

    Well of course I can't get the database loaded in the new version without a ton of errors and failure.

    I'm screwed and not knowledgeable about database stuff to troubleshoot. I installed 1.3.7 in a new directory and followed the upgrade instructions but get zillions of database errors.


  7. #7
    Join Date
    Jan 2004
    Posts
    66,391
    Blog Entries
    7
    Plugin Contributions
    81

    Default Re: 1.2.7 and PHP5

    Quote Originally Posted by Merlinpa1969 View Post
    to be able to access the admin replace the includes/functions/sessions.php with one from 1.3.7
    Quote Originally Posted by Kayla View Post
    Bugger. I get "illegal access" when I replace that file.
    If you're using v1.3 files on v1.2.x, you'll have to comment-out these lines from the top of the file ... otherwise the built-in security will block you:
    Code:
    if (!defined('IS_ADMIN_FLAG')) {
      die('Illegal Access');
    }
    Those lines are used to prevent people from hacking around in the server and doing things you don't want them to do. But it only works on v1.3 and up.
    .

    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.

  8. #8
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default Re: 1.2.7 and PHP5

    So I successfully upgraded one site and am working on the other, and after uploading that sessions.php file the site works just fine as-is in 1.2.7.

    Can someone please explain this to me? From what Merlin said it sounded like there was no option or hope but to change to 1.3.8 asap since my server is now on PHP 5. But if that is not the case, it will certainly save me a helluva lotta time and grief for the timebeing, as I was looking at a complete redesign and overhaul of the site in question anyway, and if it seems to now be working do I really need to upgrade or will the bandaid fall off?

  9. #9
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: 1.2.7 and PHP5

    try clicking through the categories and products,
    the sessions fix just lets you login
    Zen cart PCI compliant Hosting

  10. #10
    Join Date
    Mar 2005
    Posts
    198
    Plugin Contributions
    0

    Default Re: 1.2.7 and PHP5

    I got through checkout with the test cc 41111 xxxx.. etc. received a decline, just like normal

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 v1.5.1 and PHP5.5 or 5.6
    By LindaG in forum Upgrading to 1.5.x
    Replies: 25
    Last Post: 8 Jul 2016, 07:03 PM
  2. v151 PHP5.4 and Zen Cart 1.5.x?
    By terraGirl in forum General Questions
    Replies: 5
    Last Post: 19 Sep 2013, 09:58 AM
  3. 1.3.8a and PHP5.3
    By monkeytastic in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 6 Jul 2010, 04:24 PM
  4. Zen Cart 1.3.0.2 and PHP5
    By ajcannon in forum General Questions
    Replies: 2
    Last Post: 12 Oct 2007, 02:45 AM
  5. DIR_WS and PHP5 and TemplateMonster template
    By kado in forum General Questions
    Replies: 1
    Last Post: 25 Aug 2007, 03:30 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