Jump to content

Mails are not sent


Miqueloco

Recommended Posts

I know it's a ver old topic, but i haven't found any answer which helps me.

 

I got this:

 

 

 

Everything it's okay. Even I have configured another software with this account and it works. Protocols and ports have been proven in all favours.

 

I'm over.

Link to comment
Share on other sites

It has been solved. I post here in cas someone is crying in a forest with what was my problem.

PHP version has many to do with AdminController and its use of 'variable functions', which in mine are used like this:

if (!Validate::$field['validation']($value))

For those who doesn't know, like me, this syntax it means that we want to call the function named like the string stored in $field['validation']

So, if the string is, for instance "isGenericName", the code above is the same as:

if (!Validate::isGenericName($value))

This syntax gave problems to me, so I managed to fix it changing it for this:


$f = 'Validate::'.$field['validation'];
				
if (!$f($value))

Hope it helps, blessings.

Link to comment
Share on other sites

thanks for sharing the information.

 

but I do not see this piece of code !Validate::$field['validation']($value)  in any file of default PrestaShop.

is this comes from 3rd party module override and what is the version of your Prestashop?

Link to comment
Share on other sites

  • 2 months later...

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...