-
AuthorPosts
-
October 10, 2017 at 4:26 pm #862510
Hello Support Team,
is the current version of Enfold (4.1.2) working on a PHP 5.2.17 installation?
I would change to a higher PHP version if i could, but sadly i dont have any access to the server configuration at the moment.
Best regards,
Marco
October 10, 2017 at 4:41 pm #862523Hey Marco,
Thanks for contacting us!
Your current PHP version is too old to run the latest version of the theme properly. Minimum PHP version recommended for WordPress is 5.6 and Enfold is compatible up to PHP 7.1.
I hope that helps! Let us know if you have any other questions or issues!
Regards,
YigitOctober 16, 2017 at 1:39 pm #864796Hi Marco,
You probably already found out, but perhaps someone else will find this information useful: Enfold 4.1.2 won’t run on PHP 5.2, because included Layer Slider version is no more PHP 5.2 compatible.
Regards,
ČeslavOctober 16, 2017 at 1:57 pm #864805Hello Česlav,
thank you for the additional information.
I also discovered, that there’s an issue with integrating a child-theme in PHP 5.2. The reason for that is, that the so called anonymous functions (aka. functions without a name) aren’t available in PHP 5.2 yet. They got introduced in PHP 5.3.
There’s an easy solution for that tho:
Just cut the unnamed function out and create a new named function with its content in it. Then just call the function by its name where the anonymous function used to be.Regards,
MarcoOctober 16, 2017 at 2:44 pm #864828Hi Marco,
Oh yeah, the anonymous function is also the reason why Layer Slider version included in Enfold 4.1.2 breaks on PHP 5.2, but there can be more incompatible code, because Layer Slider does not seem to support PHP 5.2 anymore (PHP 5.3 is required). On the other hand, it might not be a problem on websites not using Layer Slider actively (quote from https://support.kreaturamedia.com/docs/layersliderwp/documentation.html#release-log):
While LayerSlider continues to require PHP 5.3.0 or newer, on the global scope it no longer uses language features that is not available in PHP 5.2.4. This ensures better overall compatibility with WordPress on pages where LayerSlider is not being actively used.
Regards,
Česlav -
AuthorPosts
- You must be logged in to reply to this topic.