Error 1064 after saving a characteristic

  • Posts: 10
  • Thank you received: 0
10 years 7 months ago #187987

-- Error-message(debug-mod must be tuned on) -- : 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 ') AS c_product_code, p.product_id, 1422022486, 1422022486, 0, 0, product_name, p' at line 1 SQL=INSERT IGNORE INTO rwos3_hikashop_product (product_code, product_parent_id, product_created, product_modified, product_hit, product_last_seen_date, product_name, product_description, product_quantity, product_published, product_sale_start, product_sale_end, product_delay_id, product_tax_id, product_type, product_vendor_id, product_manufacturer_id, product_url, product_weight, product_keywords, product_weight_unit, product_meta_description, product_dimension_unit, product_width, product_length, product_height, product_max_per_order, product_access, product_group_after_purchase, product_min_per_order, product_contact, product_display_quantity_field, product_sales, product_waitlist, product_layout, product_average_score, product_total_vote, product_page_title, product_alias, product_price_percentage, product_msrp, product_canonical, product_warehouse_id, product_quantity_layout, screensize, os, bluetooth, ram, public, genre) SELECT CONCAT(p.product_code, '_', ) AS c_product_code, p.product_id, 1422022486, 1422022486, 0, 0, product_name, product_description, product_quantity, product_published, product_sale_start, product_sale_end, product_delay_id, product_tax_id, product_type, product_vendor_id, product_manufacturer_id, product_url, product_weight, product_keywords, product_weight_unit, product_meta_description, product_dimension_unit, product_width, product_length, product_height, product_max_per_order, product_access, product_group_after_purchase, product_min_per_order, product_contact, product_display_quantity_field, product_sales, product_waitlist, product_layout, product_average_score, product_total_vote, product_page_title, product_alias, product_price_percentage, product_msrp, product_canonical, product_warehouse_id, product_quantity_layout, screensize, os, bluetooth, ram, public, genre FROM rwos3_hikashop_product AS p, WHERE p.product_id IN (383,388,382,389,390,391) AND ()

Hi,

Hope you can assist.
I've been adding characteristics to my Hikashop products with no problem however after adding and saving a new characteristic I received the above error message (1064).

Now on the front end product page I have a rogue "Select an Option" box in my characteristics field (Currently under the SSD option). Would you be able to assist me with removing this? This is only resident on this particular product page that i've noticed, maybe a bug? is there a way to remove?

Let me k now if you need any further info.
Many thanks in advance,
Jason

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 7 months ago #188071

I suppose that you're using the 2.3.5 version of HikaShop ?
In that case, replace the file administrator/components/com_hikashop/classes/product.php with the one in the archive and that should fix the problem. We'll also add the fix in next version of HikaShop.

Attachments:
Last edit: 10 years 7 months ago by nicolas.

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

  • Posts: 22
  • Thank you received: 2
10 years 5 months ago #197988

I get the same error when I made a new custom field, open an existing product, enter a value and save the product. I use version 2.4.0 business edition (downloaded yesterday).

This is the error upon save: '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 'WHERE p.product_id IN (8,9,10,11)' at line 1 SQL=INSERT IGNORE INTO rdjla_hikashop_product '

When I open the product again, enter a value and save it again, the error is gone.

I uploaded the product.php file you provided here as a download, but now the backend of the custom fields is messed up. Please help.

Attachments:

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

  • Posts: 22
  • Thank you received: 2
10 years 5 months ago #198034

I reinstalled the business edition, so the backend is o.k. again. But the error comes back every time I save a product.

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 5 months ago #198040

Hi,

The error you got is different and if you're using the latest HikaShop package, the product file provided by Nicolas is not useful.
Please provide us details about your current configuration (hikashop version number, joomla version number).

About your screenshot, you got a PHP fatal error, you should check your PHP error log or set temporally the "error reporting level" to "maximum" in your Joomla global configuration in order to see the error message.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 22
  • Thank you received: 2
10 years 5 months ago #198179

Configuration details: Hikashop Business 2.4.0, Joomla 3.3.1, PHP 5.3.28, MySQL 5.5.39
I've set error reporting on maximum.
Tried to recreate the problem by adding a new custom field and use it in an existing product, and now the product saves correctly.
Bizarre ????

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 5 months ago #198181

Hi,

We will perform some tests ; if you manage to reproduce the issue, please let us know.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum