Manufacturers deleteion
Posted: Sat May 17, 2025 4:48 am
I'm dealing with an error in the server log that's just annoying. I have a Franken-Phoenix part Git Head 1.1.0.3 with a restored database from 1.0.9.?.
AH01071: Got error 'PHP message: No unique manufacturer for [203:1]; PHP message: PHP Warning: Undefined array key "manufacturers Blah Blah Blah....
There is no manufacturer with ID 203 as it was deleted ages ago.
I recreated a fake entry for it in sql and then deleted it in the Admin panel.
I notice that the SQL in the product still shows the manufacturer as 203 so the error will remain.
When deleting a manufacturer it might be a good idea to have the code NULL it in each of the products.
I know can get rid of the error by creating a fake manufacturer as 203 or NULL it in the product but that's not the best solution
Just saying. (Edit: This post contains an incorrect correction read below)
AH01071: Got error 'PHP message: No unique manufacturer for [203:1]; PHP message: PHP Warning: Undefined array key "manufacturers Blah Blah Blah....
There is no manufacturer with ID 203 as it was deleted ages ago.
I recreated a fake entry for it in sql and then deleted it in the Admin panel.
I notice that the SQL in the product still shows the manufacturer as 203 so the error will remain.
When deleting a manufacturer it might be a good idea to have the code NULL it in each of the products.
I know can get rid of the error by creating a fake manufacturer as 203 or NULL it in the product but that's not the best solution
Just saying. (Edit: This post contains an incorrect correction read below)