Error message when clicking on products...
Posted: Tue Oct 17, 2023 10:03 pm
Hi
I need help with my website please, no idea how this has happened it just started by itself...
Example URL:
https://it-me-up.co.uk/en-gb/product/as ... 3x-m-2-rgb
Error Shown:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'p.`status` = '1' AND p.quantity > 0 ORDER BY sp.`sort_order` ASC' at line 2
Error No: 1064
SELECT * FROM `jmgu_product_subscription` ps LEFT JOIN `jmgu_subscription_plan` sp ON (ps.`subscription_plan_id` = sp.`subscription_plan_id`) LEFT JOIN `jmgu_subscription_plan_description` spd ON (sp.`subscription_plan_id` = spd.`subscription_plan_id`) WHERE ps.`product_id` = '2126' AND ps.`customer_group_id` = '1' AND spd.`language_id` = '1' AND s p.`status` = '1' AND p.quantity > 0 ORDER BY sp.`sort_order` ASC: in /home/u148625395/domains/it-me-up.co.uk/public_html/system/library/db/mysqli.php on line 76
Thoughts:
I think it is to do with the space between the 's' and 'p' in the SQL below:
AND s p.`status` = '1'
However I do not know how this is being generated or called from the mysqli.php file.
Also If I manually run the SQL and remove the space, the next error is:
Unknown column 'p.quantity' in 'where clause'
Any Help on this please?!?!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Latest OpenCart Version (4.0.2.3)
Latest PHP Version (8.2)
Host - Hostinger
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I need help with my website please, no idea how this has happened it just started by itself...
Example URL:
https://it-me-up.co.uk/en-gb/product/as ... 3x-m-2-rgb
Error Shown:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'p.`status` = '1' AND p.quantity > 0 ORDER BY sp.`sort_order` ASC' at line 2
Error No: 1064
SELECT * FROM `jmgu_product_subscription` ps LEFT JOIN `jmgu_subscription_plan` sp ON (ps.`subscription_plan_id` = sp.`subscription_plan_id`) LEFT JOIN `jmgu_subscription_plan_description` spd ON (sp.`subscription_plan_id` = spd.`subscription_plan_id`) WHERE ps.`product_id` = '2126' AND ps.`customer_group_id` = '1' AND spd.`language_id` = '1' AND s p.`status` = '1' AND p.quantity > 0 ORDER BY sp.`sort_order` ASC: in /home/u148625395/domains/it-me-up.co.uk/public_html/system/library/db/mysqli.php on line 76
Thoughts:
I think it is to do with the space between the 's' and 'p' in the SQL below:
AND s p.`status` = '1'
However I do not know how this is being generated or called from the mysqli.php file.
Also If I manually run the SQL and remove the space, the next error is:
Unknown column 'p.quantity' in 'where clause'
Any Help on this please?!?!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Latest OpenCart Version (4.0.2.3)
Latest PHP Version (8.2)
Host - Hostinger
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~