Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Shop won't display & can't get into admin

    HELP! Everything was fine yesterday. Now my store shows a blank page and i can't get into my admin. Have debugged and get this message a couple of hundred times.
    PHP Deprecated: Function ereg() is deprecated in /customers/***media.com/***media.com/httpd.www/shop/includes/classes/db/mysql/query_factory.php on line 139
    then another two similar lines.
    (I have replaced real path with *** for security reasons)
    All I have done is moved the shop to a different directory, but everything was fine after i moved it but now it's not.

  2. #2
    Join Date
    Aug 2006
    Posts
    5
    Plugin Contributions
    0

    Default Re: Shop won't display & can't get into admin

    It looks like your hosting environment has been upgraded to PHP 5.3
    Starting from PHP 5.3 some functions of PHP have been depricated, including widespread functions like ereg() and split().

    Only way to fix this is either adjust the code in that file yourselves or downgrade to PHP 5.2.12

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

    Default Re: Shop won't display & can't get into admin

    PHP 5.3 patch for Zen Cart v1.3.8a: http://www.zen-cart.com/forum/showthread.php?t=140960
    .

    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
    Dec 2009
    Posts
    4
    Plugin Contributions
    0

    Default Re: Shop won't display & can't get into admin

    worked a treat, many thanks. Would suggest this could be a massive problem as my server upgraded without informing us. They are a very large webserver!

  5. #5

    Default Re: Shop won't display & can't get into admin

    Hi

    I've just been caught by this problem ("Deprecated: Function ereg() is deprecated") and seen the fix (http://www.zen-cart.com/forum/showthread.php?t=140960)

    Trouble is, I don't remember what version of Zen Cart I'm using. (I passed this shop over to a client over a year ago). How can I find out the version if I can't access the admin?

    Thanks for your help.

    Jo

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

    Default Re: Shop won't display & can't get into admin

    You can peek in the /includes/version.php file to see what version the PHP files are likely at.
    .

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

    Default Re: Shop won't display & can't get into admin

    Ah! Thank you.
    Looks like it's version 3.8, so the patch should be fine.

    Many thanks
    Jo

 

 

Similar Threads

  1. Replies: 1
    Last Post: 30 Apr 2015, 06:22 AM
  2. Re: can't get into admin
    By rollow in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 11 Jun 2010, 01:00 AM
  3. can't get into admin
    By robert4442 in forum Installing on a Linux/Unix Server
    Replies: 31
    Last Post: 10 Dec 2009, 09:44 PM
  4. can't get into admin!
    By sobebabies in forum General Questions
    Replies: 3
    Last Post: 16 Nov 2008, 11:12 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