AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: oliver on April 20, 2016, 05:09:54 AM

Title: crash after clone product
Post by: oliver on April 20, 2016, 05:09:54 AM
Hello
just for your information
I am using abantecart 1.2.6 and this is a fresh install on a none public host at the moment
i add only one extension on the board  turkish language what is not for 1.2.6 but still working fine with some thinks exeption

i got 1 problem now when i try to clone a product it just crash
this is the report i got
Log file tail:

2016-04-20 8:51:24 - database error:  AbanteCart core v.1.2.6 Error: <br />INSERT INTO abc_product_tags (`tag`, `product_id`, `language_id`) VALUES ('Filtre', '1223', '2')  in <b>/home/fly/public_html/xxxxxxxx.com/core/database/amysqli.php</b> on line <b>106</b>
2016-04-20 8:50:53 - warning:  AbanteCart core v.1.2.6 sprintf(): Too few arguments in <b>/home/fly/public_html/xxxxxxxx.com/admin/controller/common/footer.php</b> on line <b>44</b>
2016-04-20 8:50:42 - warning:  AbanteCart core v.1.2.6 sprintf(): Too few arguments in <b>/home/fly/public_html/xxxxxxxx.com/admin/controller/common/footer.php</b> on line <b>44</b>
2016-04-20 8:49:35 - database error:  AbanteCart core v.1.2.6 Error: <br />INSERT INTO abc_product_tags (`tag`, `product_id`, `language_id`) VALUES ('Filtre', '1222', '2')  in <b>/home/fly/public_html/xxxxxxx.com/core/database/amysqli.php</b> on line <b>106</b>
2016-04-20 8:48:50 - warning:  AbanteCart core v.1.2.6 sprintf(): Too few arguments in <b>/home/fly/public_html/xxxxxxxx.com/admin/controller/common/footer.php</b> on line <b>44</b>
2016-04-20 8:48:37 - database error:  AbanteCart core v.1.2.6 Error: <br />INSERT INTO abc_product_tags (`tag`, `product_id`, `language_id`) VALUES ('Filtre', '1221', '2')  in <b>/home/fly/public_html/xxxxxx

Title: Re: crash after clone product
Post by: Basara on April 20, 2016, 07:40:05 AM
Hello.

Can you post tags from product you tried to clone
Title: Re: crash after clone product
Post by: oliver on April 20, 2016, 10:15:55 AM
example the model name is

Product name > HAVA JAGUAR-WAF-4X43

meta Tag keyword: hava filtresi,filtre,motor,araba,oto,aksesuar,jaguar
product tags: Filtre
Meta Tag Description: oto hava filtresi
Model:Winkel
Tax Class: KDV
SKU: HAVA JAGUAR-WAF-4X43
SEO Keyword: hava-jaguar-waf-4x43_0

but this error is on all the products i have on the cart
if i try to clone any product this error are happens

Title: Re: crash after clone product
Post by: Basara on April 21, 2016, 04:32:34 AM
Hello.

Thank you. You found bug and we able to replicate it. Bug reported to AbanteCart bug tracker https://github.com/abantecart/abantecart-src/issues/525
Title: Re: crash after clone product
Post by: abolabo on April 21, 2016, 09:36:40 AM
fix goes to 1.2.7 (https://github.com/abantecart/abantecart-src/commit/4f2776346ac99ec4b18362cc1acebec7e906668c)
You can replace your file with this.
Title: Re: crash after clone product
Post by: oliver on April 22, 2016, 03:43:18 AM
yes the problem is on "Product Tags" if you use 2 differend language and you write the same product or name in the option then after when you try to clone it it crashed
if you use differend names example on english your write (car) and in other language option you write (auto) that will work by clone without crash
but then you have the name on both language in the "product tags" like this : (car,auto)

just for your information