Jump to content

[SOLVED] Error in Adding Supplier (Property Supplier->id_employee is empty)


Steve Joms

Recommended Posts

I just checked my PrestaShop v1.6.1.7 test site and the Supplier class doesn't have an id_employee field. Are you using a third-party module that is overriding the Supplier class? If so, you'll need to fix that module. Check whether override/classes/Supplier.php exists.

Link to comment
Share on other sites

It would appear some module or code somewhere is expecting the Supplier class to have an id_employee field and is crashing since it doesn't have one. Hopefully, there's more information in the error message that can help you pinpoint the code that's causing the error.

Link to comment
Share on other sites

Hi Guys,

 

I now solved it. Thanks for the pointers. I check the /classes/Supplier.php and I see that the id_employee variable is set as required in the code and also I checked the supplier table structure for PS 1.6.0.9 there is id_employee field. As a workaround I just set it to required=false now the encoding is working, I see that employee id is just required for tracing purposes thats all.

 

Thanks again! Cheers!

 

Have a great day ahead :D

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...