New Zenner
- Join Date:
- Apr 2013
- Posts:
- 11
- Plugin Contributions:
- 0
Missing products in order
Hello! When I see a new order at the admin there is NO product! There is a total price etc. but NO product! Please help! Its a mess...
Views: 1,173
New Zenner
Hello! When I see a new order at the admin there is NO product! There is a total price etc. but NO product! Please help! Its a mess...
Totally Zenned
New Zenner
Cash on delivery.. The only one active payment method.
Totally Zenned
New Zenner
v1.5.1 .. I red the other topics with similar problems but nothing.. I have orders and its an adventure to ask everybody on the phone what is the order : ))
Totally Zenned
New Zenner
Tell me where to see that?! As you can see I am self-learner for now : )) Sorry
New Zenner
PHP Version: 5.3.14 (Zend: 2.3.0) PHP Memory Limit: 64M
Totally Zenned
Okay, was it a fresh Zen Cart installation or a 1.3.X upgrade? Do you have any addons installed?
New Zenner
It was a fresh install.. I have "category copy" addon and Apsona. If needed I can remove them now.
Totally Zenned
Unfortunately, nothing jumps out here. You are likely going to need to get someone to troubleshoot it for you. Check your logs folder for related error logs and post back if any seem related
New Zenner
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 '000000 where products_id = '81'' at line 1 :: update products set products_ordered = products_ordered + 1,000000 where products_id = '81' in /home/igcosmet/public_html/shop/includes/classes/db/mysql/query_factory.php on line 120
This is at the time of the order
New Zenner
But there at this line 120 is part of the Error function ..
Black Belt
What language is this?
What version of ZenCart?
How were the products loaded?
Did this ever function correctly?
Zen-Venom Get Bitten
Totally Zenned
IGcosmetics:
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 '000000 where products_id = '81'' at line 1 :: update products set products_ordered = products_ordered + 1,000000 where products_id = '81' in /home/igcosmet/public_html/shop/includes/classes/db/mysql/query_factory.php on line 120
This is at the time of the orderWhy are you increasing the products ordered by 1 million????
I haven't checked but the "products_ordered" field probably won't hold the result. Hence the error.
Contribs: - Time Zone Fix/Offset ■ Google Adsense ■ betterCategoriesEzInfo ■ Multi Cross Sell
New Zenner
The lenguage is English, BUT i use UTF8 because I have words at cyrillic.
v1.5.1
The products are loaded buy the Zen Cart admin panel
I haven't increased anything.. I think... : )
New Zenner
http://www.zen-cart.com/showthread.php?50069-Error-on-MySQL-syntax-1064
THIS helped me! Thank you all! : )))))
Black Belt
/shop/includes/classes/db/mysql/query_factory.php
Post the contents of this file about line 115 through 125
It should red as follows
echo $this->error_number . ' ' . $this->error_text;
echo '<br />in:<br />[' . (strstr($this->zf_sql, 'db_cache') ? 'db_cache table' : $this->zf_sql) . ']<br />';
} else {
echo 'WARNING: An Error occurred, please refresh the page and try again.';
}
trigger_error($this->error_number . ':' . $this->error_text . ' :: ' . $this->zf_sql, E_USER_ERROR);
if (defined('IS_ADMIN_FLAG') && IS_ADMIN_FLAG==true) echo 'If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.<br />';
echo '</div>';
}
If it does - then you need to look at why the +1,000,000 is being added
Zen-Venom Get Bitten
Totally Zenned
Ok looking at it again it is incrementing products_ordered by 1
then there is a "comma" indicating another field should be altered.
but all thats there is '000000'
The error is in the calling file, NOT in the file query_factory.php
Contribs: - Time Zone Fix/Offset ■ Google Adsense ■ betterCategoriesEzInfo ■ Multi Cross Sell
New Zenner
Well I will keep looking at the error logs for problems with the 100000, but for now everything works fine. Thanks again for your time!
Tell staff why this post should be reviewed.