Jump to content

fatal error


Recommended Posts

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

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

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

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

×
×
  • Create New...