Steve Joms Posted September 28, 2016 Share Posted September 28, 2016 (edited) Hi All, Does any one here encountered this error Property Supplier->id_employee is empty? That occurs when I was adding suppliers. Thanks! Joe Edited September 28, 2016 by joms (see edit history) Link to comment Share on other sites More sharing options...
Steve Joms Posted September 28, 2016 Author Share Posted September 28, 2016 Hi AnnaChen, When I tried to add supplier this is the error I am receiving. Please see screenshot. My PS version is 1.6.0.9 Link to comment Share on other sites More sharing options...
rocky Posted September 28, 2016 Share Posted September 28, 2016 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 More sharing options...
Steve Joms Posted September 28, 2016 Author Share Posted September 28, 2016 Hi Rocky, thanks for the response. I will check on it and get back to you. Link to comment Share on other sites More sharing options...
Steve Joms Posted September 28, 2016 Author Share Posted September 28, 2016 Hi Rocky, that Supplier.php file doesn't exist on my override/classes directory Link to comment Share on other sites More sharing options...
rocky Posted September 28, 2016 Share Posted September 28, 2016 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 More sharing options...
Steve Joms Posted September 28, 2016 Author Share Posted September 28, 2016 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now