No support on older servers
-
I highlighted the issue in the code here on GitHub and added the error I got when activating:
https://gist.github.com/bryanwillis/ecd320c89682b3447479#file-fix-php-L44
Using shorthand with arrays that have square brackets [ ] don’t work below PHP 5.4.0.
Example:
// PHP 5.3.29 and below <?php $array = array( "foo" => "bar", "bar" => "foo", ); // PHP 5.4 and above $array = [ "foo" => "bar", "bar" => "foo", ]; ?>
Anyway, I realized this right away because I had this plugin on a Bluehost that was on PHP 5.4 and just installed on my development sandbox for the same site (plugins and theme and everything were exact same) on WpEngine and it didn’t work. I remembered that WordPress engine runs on PHP 5.3 and had a feeling that was the issue.
Hope this helps.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘No support on older servers’ is closed to new replies.