Forums / General Questions / Missing products in order

Missing products in order

Views: 1,173

Results 1 to 20 of 21
15 Apr 2013, 7:27 AM
#1
igcosmetics avatar

igcosmetics

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...

15 Apr 2013, 1:45 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Missing products in order

What payment method(s)?

15 Apr 2013, 9:29 PM
#3
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

Cash on delivery.. The only one active payment method.

15 Apr 2013, 9:56 PM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Missing products in order

That's odd what version Zen Cart and PHP?

15 Apr 2013, 11:08 PM
#5
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

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 : ))

15 Apr 2013, 11:11 PM
#6
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Missing products in order

what version php?

15 Apr 2013, 11:14 PM
#7
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

Tell me where to see that?! As you can see I am self-learner for now : )) Sorry

15 Apr 2013, 11:39 PM
#8
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

PHP Version: 5.3.14 (Zend: 2.3.0) PHP Memory Limit: 64M

15 Apr 2013, 11:41 PM
#9
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Missing products in order

Okay, was it a fresh Zen Cart installation or a 1.3.X upgrade? Do you have any addons installed?

15 Apr 2013, 11:43 PM
#10
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

It was a fresh install.. I have "category copy" addon and Apsona. If needed I can remove them now.

15 Apr 2013, 11:53 PM
#11
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,305
Plugin Contributions:
39

Re: Missing products in order

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

15 Apr 2013, 11:59 PM
#12
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

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

16 Apr 2013, 12:11 AM
#13
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

But there at this line 120 is part of the Error function ..

16 Apr 2013, 12:42 AM
#14
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Missing products in order

What language is this?
What version of ZenCart?
How were the products loaded?

Did this ever function correctly?

Zen-Venom Get Bitten

16 Apr 2013, 12:44 AM
#15
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Missing products in order

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.

16 Apr 2013, 12:50 AM
#16
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

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... : )

16 Apr 2013, 12:55 AM
#18
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Missing products in order

/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

16 Apr 2013, 12:57 AM
#19
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Missing products in order

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

16 Apr 2013, 1:00 AM
#20
igcosmetics avatar

igcosmetics

New Zenner

Join Date:
Apr 2013
Posts:
11
Plugin Contributions:
0

Re: Missing products in order

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!