pirod Posted September 12, 2011 Share Posted September 12, 2011 Hi, In my prestashop 1.4.3 I have a problem in backoffice preventing editing addresses: all required fields return a fatal error: Fatal error (Address -> firstname is empty) Of course fields are filled. Where can I look to solve this? It happens from backoffice AND from customer side panel when editing personal information. thanks Pierre Link to comment Share on other sites More sharing options...
Mike Kranzler Posted September 12, 2011 Share Posted September 12, 2011 Hi Pierre, Please check out this report on our Bug Tracker to see if it helps you solve your issue: http://forge.prestashop.com/browse/PSCFI-2784 Let me know if that works for you. -Mike Link to comment Share on other sites More sharing options...
pirod Posted September 12, 2011 Author Share Posted September 12, 2011 thanks Mike. But it does not correct my problem. debug mode doesn't show any additional errors and the solution on that post was for some country problem that I do not have. I went a little further. If I remove a field from the mandatory list, it get saved even if the next one generates that error. So it looks like the validation function is preventing post even if there is something in the variables. Link to comment Share on other sites More sharing options...
pirod Posted September 12, 2011 Author Share Posted September 12, 2011 If I remove all fields from mandatory list class address.php: protected $fieldsRequired = array(); then edit works. However it deletes previous address ID and generates a new entry. Is this the expected method? I mean recreating a new address entry instead of doing an UPDATE? Link to comment Share on other sites More sharing options...
pirod Posted September 12, 2011 Author Share Posted September 12, 2011 I think it is because of this address replication that the error happens. If the field was previously empty it generates the error. If not, then it works. Looks like the error parser looks the wrong variable; instead of taking the one from the form, it blocks on the existing data on DB. Link to comment Share on other sites More sharing options...
Recommended Posts