Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System Error Log Displays Many Pages of same Error #968

Closed
svrabel opened this issue Jan 16, 2016 · 6 comments
Closed

System Error Log Displays Many Pages of same Error #968

svrabel opened this issue Jan 16, 2016 · 6 comments
Assignees
Labels
Milestone

Comments

@svrabel
Copy link

svrabel commented Jan 16, 2016

File: [gui.class.php] Line: [1193] "SELECT price, sale_price, product_id,description,name, price-sale_price AS saving FROM CubeCart_inventory WHERE price > sale_price AND sale_price > 0 AND status = '1' LIMIT " - 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 '' at line 1

@bhsmither
Copy link
Contributor

In admin, Store Settings, Features tab, make sure there is an integer value for the setting "Number of sale items to display".

During CubeCart's setup, it is supposed to configure the settings with a default of 10.

@svrabel
Copy link
Author

svrabel commented Jan 16, 2016

It was blank when I checked it. Not sure how it happened, but thanks for the help.

@bhsmither
Copy link
Contributor

Suggest the statement include a ternary test for an empty LIMIT clause.

@abrookbanks abrookbanks added this to the 6.0.10 milestone Jan 19, 2016
@abrookbanks abrookbanks self-assigned this Jan 19, 2016
abrookbanks pushed a commit that referenced this issue Jan 19, 2016
@abrookbanks
Copy link
Member

Thanks for reporting this.

@bhsmither
Copy link
Contributor

@abrookbanks abrookbanks reopened this Jan 22, 2016
abrookbanks pushed a commit that referenced this issue Feb 2, 2016
Allows for zero.
@abrookbanks
Copy link
Member

Thanks again Brian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants