Forums / Bug Reports / [Duplicate] WARNING: An Error occurred, please refresh the page and try again.

[Duplicate] WARNING: An Error occurred, please refresh the page and try again.

Locked

Views: 1,975

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
21 Apr 2014, 5:21 PM
#1
akewq avatar

akewq

New Zenner

Join Date:
Apr 2014
Location:
la
Posts:
2
Plugin Contributions:
0

[Duplicate] WARNING: An Error occurred, please refresh the page and try again.

Hello guys, i was working on my site and playing with attributes controller and i got this msg:
WARNING: An Error occurred, please refresh the page and try again.

[17-Apr-2014 23:59:50 America/Chicago] PHP Fatal error: 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 'int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT')' at line 1 :: INSERT INTO products_options_values (products_options_values_id, language_id, products_options_values_name) VALUES ((int)PRODUCTS_OPTIONS_VALUES_TEXT_ID, 1, 'TEXT') in /home/healthgu/public_html/includes/classes/db/mysql/query_factory.php on line 120

please help.

thanks

21 Apr 2014, 5:47 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: [Duplicate] WARNING: An Error occurred, please refresh the page and try again.

That's a result of you deleting some system default values, which triggers the system to attempt to re-install those values ... and there was a bug in that code. The fix is here: http://www.zen-cart.com/showthread.php?200551-Attributes-controller-fatal-error&p=1153132#post1153132

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

21 Apr 2014, 6:26 PM
#3
akewq avatar

akewq

New Zenner

Join Date:
Apr 2014
Location:
la
Posts:
2
Plugin Contributions:
0

Re: [Duplicate] WARNING: An Error occurred, please refresh the page and try again.

DrByte:

That's a result of you deleting some system default values, which triggers the system to attempt to re-install those values ... and there was a bug in that code. The fix is here: http://www.zen-cart.com/showthread.php?200551-Attributes-controller-fatal-error&p=1153132#post1153132

Thank you!!! Works like a charm~