-
AuthorPosts
-
January 3, 2018 at 12:23 pm #892787
Hello,
i have a problem with the layerslider plugin and PHP 7.
As soon as i change the php version from 5.6 to php 7 or above, the site won’t load properly anymore.
It just shows the loading circle ( “.av-siteloader-wrap” ) forever. When i remove this loading circle, all the images are missing and the layerslider itself misses completely. When i look at the html structure i can see the image tags and the structure for the slider though.PHP: 5.6
Enfold: 4.2
Wordpress: 4.9.1Before i tried to update to PHP7 i tested the compatibility with the “PHP Compatability” Plugin. This is the result from the LayerSlider Plugin, All the other plugins are fully compatible.
FILE: /html/wp-content/plugins/LayerSlider/wp/shortcodes.php
——————————————————————————————————————————————————–
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
——————————————————————————————————————————————————–
15 | WARNING | Method name “LS_Shortcode::__contruct” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
——————————————————————————————————————————————————–FILE: /html/wp-content/plugins/LayerSlider/helpers/phpQuery.php
——————————————————————————————————————————————————————–
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
——————————————————————————————————————————————————————–
2231 | WARNING | Method name “phpQueryObject::__pseudoClassParam” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
2467 | WARNING | Method name “phpQueryObject::__loadSuccess” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
4207 | ERROR | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; Use preg_split instead
4275 | WARNING | Method name “phpQueryObject::__dumpTree” is discouraged; PHP has reserved all method names with a double underscore prefix for future use
5637 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
——————————————————————————————————————————————————————–The error on line 4207 i tried to fix with replacing the split with an explode function.
Best regards,
Marco
January 3, 2018 at 1:33 pm #892814Hi,
seems this is a known issue, although you seem to have this with 7.0 as well.
“Hi Kim,
Yes, at the moment Enfold’s layerslider module has some issues with php 7.1, I would suggest sticking with 7.0 until those issues are fixed.
Best regards,
Nikko”See: https://kriesi.at/support/topic/enfold-and-php-7-1/
- This reply was modified 6 years, 11 months ago by DigitalEssence.
January 3, 2018 at 2:23 pm #892831Hi,
i tried both PHP 7.0 and 7.1 and always got that problem. The site is currently running on PHP 5.6 and i would really like to run it on PHP 7 because my customers wants to try some features of PHP7..
January 4, 2018 at 11:42 pm #893476Hi,
I am running LayerSlider from Enfold and I do not face that issue.
We will do push an updated version so please be patience until we get it live.Thank you
Best regards,
BasilisFebruary 16, 2018 at 4:56 pm #913309Hello Basilis,
are there any news on this topic?
Is the problem fixed yet/ is there a new update that contains a fix yet?If not when will there be an update that makes PHP 7 possible with enfold?
Best regards,
Marco
February 17, 2018 at 7:19 am #913535 -
AuthorPosts
- You must be logged in to reply to this topic.