Closed (fixed)
Project:
Commerce (Product Display Manager)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2011 at 12:23 UTC
Updated:
29 Jan 2013 at 21:50 UTC
Drupal with Commecrce is frshly installed.
Nothing entered yet.
When I try to create a new product, I receive the database error:
PDOException: SQLSTATE[42000]: Syntax error or access violation: 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 ')' at line 2: SELECT fci.bundle AS bundle, nt.name AS name FROM {field_config_instance} fci INNER JOIN {node_type} nt ON nt.type = fci.bundle WHERE (); Array ( ) in _commerce_pdm_get_product_display_types() (Zeile 539 von /var/www/vhosts/dibidi.de/httpdocs/sites/all/modules/commerce_product
Please help me!
Comments
Comment #1
pcambraI'd say that this could be due commerce_product_display_manager as the function throwing the error is from that module:
_commerce_pdm_get_product_display_types()Please see #1176966-19: Syntax error ... SELECT n.nid AS nid, n.title AS title FROM {node} n WHERE () ORDER BY n.title ASC as seems a patch that fixes this one
Comment #2
rszrama commentedYeah, let's go ahead and move this over.
Comment #3
ronald54 commentedDoes this mean, I only have to install the latest dev of display manager?
After I cannot create product groups, I suppose it is the same issue?
Comment #4
ressaI just tried the dev version (2013-Jan-14) after getting the error reported December 1, 2011, using the official release from july 2011, and it works fine. Perhaps it's time to release it as the Recommended release?
Comment #5
netsensei commentedJust installed a fresh commerce 1.4 and enabled the core modules + the 7.x-1.x-dev of PDM. I've created a new product with and without a new product display node: no problems here.
Fixed in dev.
Comment #6
ressaSorry, I wasn't expressing myself very clearly at all. I was getting the error using the Recommended release.
The dev version works fine.