Jump to content

PS1.5.5.0 is only compatible with php5.3 and higher


Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...