Post by szymaz89 » Thu Oct 19, 2017 3:37 am

Hi guys.

We have big problem in our webshop.
From 2 days we cant see new orders i our dashboard and we(also ours customers) dont reciving order confirmation via mail.
System placing all new orders with stat "canceled" and we can see this orders only in "missing orders" page.
To this time all works fine and we dont observed same problems for all time we had OpenCart webshop.
We dont changed anything before issue shows up.
OpenCart version : 2.1.0.1
In webshop can pay with 3 different payments method: Klarna Checkout, Payson and PayPal
- all this 3 methods give same result about which we write before.

This is one example what we can find in system error logs:

2017-10-18 10:46:09 - PHP Notice: Trying to get property of non-object in /customers/f/c/e/xxdomain.comxx/httpd.www/vqmod/vqcache/vq2-system_storage_modification_catalog_model_catalog_product.php on line 537
2017-10-18 10:46:09 - PHP Notice: 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 ')
) LIMIT 0,15' at line 7<br />Error No: 1064<br />SELECT * FROM(SELECT p.product_id, (SELECT AVG(rating) AS total FROM oc_review r1 WHERE r1.product_id = p.product_id AND r1.status = '1' GROUP BY r1.product_id) AS rating, (SELECT price FROM oc_product_discount pd2 WHERE pd2.product_id = p.product_id AND pd2.customer_group_id = '1' AND pd2.quantity = '1' AND ((pd2.date_start = '0000-00-00' OR pd2.date_start < NOW()) AND (pd2.date_end = '0000-00-00' OR pd2.date_end > NOW())) ORDER BY pd2.priority ASC, pd2.price ASC LIMIT 1) AS discount, (SELECT price FROM oc_product_special ps WHERE ps.product_id = p.product_id AND ps.customer_group_id = '1' AND ((ps.date_start = '0000-00-00' OR ps.date_start < NOW()) AND (ps.date_end = '0000-00-00' OR ps.date_end > NOW())) ORDER BY ps.priority ASC, ps.price ASC LIMIT 1) AS special FROM oc_product_to_category p2c LEFT JOIN oc_product p ON (p2c.product_id = p.product_id) LEFT JOIN oc_product_description pd ON (p.product_id = pd.product_id) LEFT JOIN oc_product_to_store p2s ON (p.product_id = p2s.product_id) WHERE `p`.`date_available` <= NOW() AND `p`.`status` = '1' AND `p2c`.`category_id` IN(59) AND pd.language_id = '2' AND p.status = '1' AND p.date_available <= NOW() AND p2s.store_id = '0' AND `p2c`.`category_id` IN(59) GROUP BY p.product_id ORDER BY (CASE WHEN special IS NOT NULL THEN special WHEN discount IS NOT NULL THEN discount ELSE p.price END) ASC, LCASE(pd.name) ASC ) AS `tmp` WHERE `product_id` IN(
SELECT
`product_id`
FROM
`oc_product_filter`
WHERE
`filter_id` IN()
) LIMIT 0,15 in /customers/f/c/e/xxdomain.comxx/httpd.www/system/library/db/mysqli.php on line 41



Please- can anyone help us ? Did have anyone same problem?

Newbie

Posts

Joined
Mon Feb 01, 2016 9:56 pm

Post by oc-extensions » Sun Oct 22, 2017 8:03 pm

Hi,
You have a problem in sql (error message explain this thing) and because of this error, order status in not updates.
(order_status_id from table "order" will remain on 0)

According to file path i see you use vqmod and probably one of your vqmod files made some changes over model file.

Wish you many sales.

Image | Extensions and Custom Development


User avatar
Active Member

Posts

Joined
Fri Jan 06, 2012 11:31 pm
Who is online

Users browsing this forum: No registered users and 415 guests