Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / 1.3.9d Error Messages

1.3.9d Error Messages

Locked

Views: 1,027

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
17 Jun 2010, 2:05 AM
#1
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

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

 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

17 Jun 2010, 2:21 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

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

17 Jun 2010, 2:34 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

17 Jun 2010, 2:46 AM
#4
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

Re: 1.3.9d Error Messages

kobra:

Suggest that one never use a script to upgrade

Oh boy i wont be doing that again :(

17 Jun 2010, 2:47 AM
#5
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

Re: 1.3.9d Error Messages

DrByte:

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

17 Jun 2010, 3:16 AM
#6
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

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

17 Jun 2010, 3:43 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

17 Jun 2010, 7:28 AM
#8
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

Re: 1.3.9d Error Messages

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

17 Jun 2010, 6:09 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

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.

18 Jun 2010, 4:41 AM
#10
sweetikins avatar

sweetikins

New Zenner

Join Date:
Feb 2009
Location:
Melbourne, Australia
Posts:
85
Plugin Contributions:
0

Re: 1.3.9d Error Messages

DrByte:

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