ebonit Posted September 18, 2013 Share Posted September 18, 2013 As of the latest prestashop (1.5.5.0), it is only compatible with PHP5.3 and higher. This is due to an upgrade of the Swift class. I found that in the Headers.php an anonymous function is used. line 421: if (false !== $p = strpos($encoded_value[$key], $this->LE)) { $encoded_value[$key] = preg_replace_callback("/<([^>]+)>/", function ($matches) { return str_replace("' . $this->LE . '", "", "<$matches[1]>"); }, $encoded_value[$key]); } Maybe there are more issues, i did not further check. so if you have issues with PS1.5.5.0, first thing to check is your PHP version. Of course you can change the code or downgrade Swift but if you are in control of your server, upgrade PHP. 1 Link to comment Share on other sites More sharing options...
vekia Posted September 18, 2013 Share Posted September 18, 2013 as far as i remember this little issue with older php is fixed, on github of course Link to comment Share on other sites More sharing options...
Recommended Posts