Error 1064 since v1.0.6

More
6 years 3 months ago #40560 by 4FootyFans
Hello Adrien

Bonne Année!


Since updating v1.0.6 3 days ago, the component is now broken:

models/cron.php


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 '*) FROM #__virtuemart_orders vo2 JOIN #__virtuemart_order_user' at line 13


The new code is:

SELECT COUNT(vo2.*)

FROM #__virtuemart_orders vo2

JOIN #__virtuemart_order_userinfos vou2 ON vou2.virtuemart_order_id = vo2.virtuemart_order_id

WHERE vo2.virtuemart_order_id > vo.virtuemart_order_id

AND vo2.order_total>0

AND ( (vo.virtuemart_user_id>0 AND vo.virtuemart_user_id = vo2.virtuemart_user_id) OR vo2.virtuemart_user_id<0 )

AND (vou2.email!='' AND vou2.email = vu.email )


Compared to the previous version:

SELECT COUNT(*) FROM #__virtuemart_orders

WHERE virtuemart_order_id>vo.virtuemart_order_id

AND order_total>0

AND ( (vo.virtuemart_user_id>0 AND vo.virtuemart_user_id = virtuemart_user_id) OR virtuemart_user_id<0 )

which worked fine.

For now, I have reverted to the previous version.

Best

Eddie

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #40561 by nordmograph
Replied by nordmograph on topic Error 1064 since v1.0.6
Hello,
Can you replace
SELECT COUNT(vo2.*)
with
SELECT COUNT(vo2.virtuemart_order_id)
Let me know if this solves it.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.
The following user(s) said Thank You: 4FootyFans

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #40562 by 4FootyFans
Replied by 4FootyFans on topic Error 1064 since v1.0.6
Hi
The edit does not produce any error.

Thank You........

Please Log in or Create an account to join the conversation.

Time to create page: 0.342 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.