Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    85
    Plugin Contributions
    0

    help question 1.3.9d Error Messages

    Hello, A friend and I just updated her zen cart store, we did it via the script available by our webhost, which is fine all seems to be working fine for a bit then we get this error, can someone please advice how to fix please :)

    Error #1

    Code:
     Warning: Division by zero in private/includes/classes/split_page_results.php on line 39
    
    1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_DISPLAY_RESTRICT_ENTRIES' at line 1
    in:
    [select * from coupon_restrict where coupon_id = '369' and category_id != '0' limit -0, MAX_DISPLAY_RESTRICT_ENTRIES]
    Get than with coupon restrict. Not sure if you need these details below.

    MySQL version 5.1.47-community-log

    Thanks in advance
    Last edited by sweetikins; 17 Jun 2010 at 03:08 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: 1.3.9d Error Messages

    I just updated her zen cart store, we did it via the script available by our webhost
    Suggest that one never use a script to upgrade
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 1.3.9d Error Messages

    Agreed. You should *never* use an automated upgrade script. Upgrades should *always* be done by hand.

    At the very least your /admin/includes/languages/english/coupon_restrict.php file appears to be damaged.
    .

    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
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Re: 1.3.9d Error Messages

    Quote Originally Posted by kobra View Post
    Suggest that one never use a script to upgrade
    Oh boy i wont be doing that again

  5. #5
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Re: 1.3.9d Error Messages

    Quote Originally Posted by DrByte View Post
    Agreed. You should *never* use an automated upgrade script. Upgrades should *always* be done by hand.

    At the very least your /admin/includes/languages/english/coupon_restrict.php file appears to be damaged.
    Ok so i will reupload a fresh copy and see how it goes, will report back soon

  6. #6
    Join Date
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Re: 1.3.9d Error Messages

    ok once i did that we now get this message

    Fatal error: Call to undefined function zen_get_products_manufacturers_name() in admin/coupon_restrict.php on line 285

  7. #7
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 1.3.9d Error Messages

    That suggests that your /admin/includes/functions/general.php is bad, damaged, or outdated.

    If you keep running into these kinds of problems, you're likely going to find that you need to go back and just do the upgrade properly, ideally starting from the backup you made before you did the upgrade.
    .

    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
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Re: 1.3.9d Error Messages

    ok i replaced that file and all is fixed, thus far, thank you for your time and help

  9. #9
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: 1.3.9d Error Messages

    I hope you're replacing the files with the v1.3.9 version of the file, and not the old one from before the upgrade. You don't want to be mixing versions of files on the server.
    .

    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
    Feb 2009
    Location
    Melbourne, Australia
    Posts
    85
    Plugin Contributions
    0

    Default Re: 1.3.9d Error Messages

    Quote Originally Posted by DrByte View Post
    I hope you're replacing the files with the v1.3.9 version of the file, and not the old one from before the upgrade. You don't want to be mixing versions of files on the server.
    No no i wouldn't do that lol, i replaced it with the updated ones

 

 

Similar Threads

  1. Replies: 1
    Last Post: 10 Feb 2009, 12:34 PM
  2. Error Messages
    By SuperDak in forum PayPal Website Payments Pro support
    Replies: 1
    Last Post: 20 Mar 2008, 04:49 AM
  3. error messages
    By kvnmcwebn in forum PayPal Express Checkout support
    Replies: 2
    Last Post: 17 Feb 2008, 10:41 PM
  4. Replies: 2
    Last Post: 15 Dec 2006, 12:59 PM

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