Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default Depreciated errors in various scripts

    My webhost upgraded PHP to 5.3.20 recently and my Admin module is now showing errors on various pages, but not all. I does not seem to affect my functionality, but is annoying.

    I am on Zencart 1.3.9h, Patch 1.

    For example, the Coupon Admin page to add a new coupon shows this:

    Deprecated: Function split() is deprecated in /hxx/axxx/public_html/legacylxxxx.xxxadmin/coupon_admin.php on line 928

    And in my shipping module:

    Deprecated: Function ereg() is deprecated in /hxx/axxx/public_html/legacylxxxxxx.xx/admin/modules.php on line 307

    I did a search in the forums here and didn't find anything about this version.

    Upgrading is not an option right now.

    Thanks

    Tom
    Legacy Leathercraft

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

    Default Re: Depreciated errors in various scripts

    Several things wrong here.

    1. You say "my webhost upgraded PHP", but "upgrading my Zen Cart is not an option right now".
    You need to be VERY mindful that only YOU can keep your Zen Cart software running a version that is compatible with the hosting server you're using.
    Your host will keep upgrading PHP because they MUST, both for security (and in some cases regulatory) reasons.
    You are responsible for keeping your Zen Cart up to date to be compatible with those changes. That's one of many reasons why Zen Cart puts out new versions.

    My point: don't use the excuse that "upgrading is not an option right now". It may take allotting some time to it, but if you don't keep your site current, then one day it will completely break when your host does an upgrade.

    2. The two "deprecated" cases you mention are a result of you running OLD (pre-v1.3.9h) versions of those files.
    Yes, you said you're using "v1.3.9h patch 1".
    But there are several things wrong with that statement:
    a) there was never a "v1.3.9h patch 1".
    There was a "1.3.8a patch 1"
    and there was a "1.3.9h"
    So it sounds like you've got an old 1.3.8a patch still lingering on your site. That is, extra files from 1.3.8a that don't belong on your 1.3.9h site anymore.
    You can clean up extraneous files using WinMerge to identify the ones that don't belong.

    b) The two files you mentioned don't actually use split() or ereg() in them in 1.3.9h. They did in 1.3.8a, but not in 1.3.9h.
    So, that means you're actually still using the old 1.3.8a versions of those files.
    And that suggests to me you're probably also using many other older files and need to properly complete your 1.3.9h upgrade.
    Again, WinMerge is a handy tool for that.
    Process outlined here: http://www.zen-cart.com/wiki/index.p...Obscure_Issues

    The symptoms you posted about will disappear when you put the v1.3.9h versions of those files back on your server. But I STRONGLY recommend you also fix ALL YOUR OTHER FILES TOO.
    .

    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
    Mar 2005
    Posts
    32
    Plugin Contributions
    0

    Default Re: Depreciated errors in various scripts

    Thanks.

    For item 1) please don't assume I am making excuses. FYI, I have a full time job and 2 side businesses pus family so you have no idea of my time availablility.
    My comment about the time issue is just that. Days and nights are full for the next month or 2. I'll upgrade eventually.
    I'm trying to remember exactly what what stopped me from updating to 1.5 when it was released. There was some fairly substantial problem - probably some screwup I did when I went to the 9h version. I'll have to look.
    But the remnant files make sense, as I was able to upgrade to .9h pretty easily. But I may have accidently done something dumb in Winmerge as I did the upgrade
    But this gives me a place to start.
    Oh the

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

    Default Re: Depreciated errors in various scripts

    Thanks.

    For item 1) please don't assume I am making excuses. FYI, I have a full time job and 2 side businesses plus family so you have no idea of my time availablility. I do the best I can with what I have available.

    My comment about the time issue is just that. Days and nights are full for the next month or 2. I'll upgrade eventually. IN the mean time, I need to fix what's broken.

    But, I DO believe in staying as up to date as possible.

    I'm trying to remember exactly what what stopped me from updating to 1.5 when it was released. There was some fairly substantial problem - probably some screwup I did when I went to the 9h version. I'll have to look.

    But the remnant files make sense, as I was able to upgrade to .9h pretty easily. But I may have accidently done something dumb in Winmerge as I did the upgrade to.9h.

    But this gives me a place to start.

    Sincerely
    Tom

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

    Default Re: Depreciated errors in various scripts

    I know I often sound pretty heavy-handed when I talk about upgrading. I never mean to come off sounding offensive. I always mean to convey the importance, and sometimes it's necessary to dispell myths or assumptions ... not necessarily for you alone but also for future readers of this discussion who may find it on google or here on this site while searching for answers to similar questions or error messages. I know upgrading takes time. I also know that a store's downtime is more expensive and frustrating because of the emergency it causes, compared to what it takes to do an upgrade without those other added pressures.

    Wishing you well in your diagnostics and fixes.
    .

    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.

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

    Default Re: Depreciated errors in various scripts

    Thank you. I have downloaded the 1.5.0 and 1.5.1 as well as the upgrade pages.

    I am just going to have to figure why I held off before..... That's what the time consuming part is. I've got quite a bit (for me) of customization...

    Thank God for WinMerge.

    Tom

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

    Default Re: Depreciated errors in various scripts

    Keep this in mind to help ease the pain: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    .

    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
    32
    Plugin Contributions
    0

    Default Re: Depreciated errors in various scripts

    I decided to take the wise advise of the gurus here and do the upgrade to 1.5.

    But, because I seemed to have some weird mix of 1.3.8 and 1.3.9h, I figured I'd start from a known point.

    I downloaded my site, download a fresh copy of 1.3.9h and ran winmerge on them.

    I copied the differences (like CEON snippets, etc) from the site files to the fresh 9h files, as needed... and transfered them to the server.

    Now, I get a HTTP 404 File Not Found error in admin..

    Anyone have an idea of what I screwed up? I plan to DL the site to a temp directory tonight and do a compariosn against what I uploaded, but though someone may have an idea... like a permisison or something that I'm missing.

    Thanks

    Tom

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

    Default Re: Depreciated errors in various scripts

    "404 Not Found" means ... the file you specified in the URL isn't present at the path/folder specified.
    .

    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.

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

    Default Re: Depreciated errors in various scripts

    Hi DrByte, Yup. I realize that. I'm just trying to figure out what I messed up. I'll get it figured out eventually.

    Tom

 

 

Similar Threads

  1. v153 various questions
    By Witches Brew in forum General Questions
    Replies: 1
    Last Post: 5 Oct 2014, 04:26 PM
  2. Depreciated Errors
    By pfb732 in forum Installing on a Windows Server
    Replies: 3
    Last Post: 28 Sep 2011, 03:59 AM
  3. Various questions
    By scotty417 in forum Customization from the Admin
    Replies: 2
    Last Post: 18 Sep 2010, 05:12 PM
  4. Admin errors on fresh installation - module errors and language definition errors
    By etrader in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 5 Oct 2007, 09:05 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