Jump to content

Recommended Posts

Hello,

 

I was trying to install prestashop 1.5.0.13 (latest founded version of prestashop 1.5) and I got this error :

Fatal error: Uncaught exception 'Exception' with message 'The sender parameter must either be a valid string email address or an instance of Swift_Address.' in D:\WWW\prestashop_1.5.0.13\tools\swift\Swift.php on line

345

 

 

 

prestashop In fact there is a simple problem in this file with the control regexp, PRCE end delimiter is escaped and so, if you don't have any '$' at the end of you'r e-mail adress

:P, you will be banished !

 

change : if (is_string($from) && preg_match("/^" . Swift_Message_Encoder::CHEAP_ADDRESS_RE . "\$/", $from))

ON line 340 of the ./tools/swift/swift.php file

by : if (is_string($from) && preg_match("/^" . Swift_Message_Encoder::CHEAP_ADDRESS_RE . "$/", $from))

 

OK, than you must know tha the PRCE doesn't include underscores (_) in a valid domain name, or it can be possible, than you have also to

change :

End of dot-atom)(?:@(?#Start of domain)[-0-9A-Za-z]+(?:\.[-0-9A-Za-z]+)*(?#End of domain))?';

on line 27 of the file ./tools/swift/swift/message/encoder.php,

by :

End of dot-atom)(?:@(?#Start of domain)[-0-9A-Za-z]+(?:\.[-0-9A-Za-z_]+)*(?#End of domain))?';

 

and then you are!!

 

for information my sender e-mail was : 'no-reply@ps_1.5'.intra (it is not a beta for anything)

 

rezopac

Link to comment
Share on other sites

×
×
  • Create New...