PDA

View Full Version : [Bug Fixed] Attribute manager not functioning, maybe a mysql vs mysqli issue?



Markcm
01-28-2018, 12:47 PM
This is a bug report, not a fix. I accidentally entered the wrong value and cannot seem to edit that.

I am on 2.5.5 develop with php5.6 and finding that the attribute manager does not work from the Edit product page or from the admin>Catalog>Attribute Manager(.../admin/new_attributes.php)

From the Edit product page an error is returned when trying to add attributes:


1062 - Duplicate entry '1-1' for key 'PRIMARY'

insert into products_options_values (products_options_values_id, language_id, products_options_values_name) values ('1', '1', 'Included')

[TEP STOP]


From the attribute manager page, it will load the first page with a dropdown menu of all the catalog items but when you select an item to view/edit it returns a database conncetion error:


Access denied for user ''@'localhost' (using password: NO)

It looks like the new_attributes.php code is unchanged from 2.5.4 and I see some reference to mysql; shouldn't these by mysqli? Example is line 64:


$result = mysql_query($query) or die(mysql_error());