• Resolved pscolv

    (@pscolv)


    I would like to migrate my website towards PHP7, and I have run a checker which shows the following issue with FS Galleria :

    FILE: /home/goutu/www/wp-content/plugins/fullscreen-galleria/galleria-fs.php
    —————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————-
    405 | ERROR | Global with variable variables is not allowed since PHP 7.0
    —————————————————————————-

    Did someone run FS galleria on PHP7 ? Is it working ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pdamsten

    (@pdamsten)

    That error should be fixed in 1.6.3 but I’m not able to test PHP 7 at the moment.

    Hi pscolv,

    since a few days i am looking for a nice pictureviewer and i found FSG. I read your question if FSG runs in PHP7. My website already runs with PHP7 but i don’t use FSG yet so i can not tell if FSG works well with PHP7.

    First i have to tell you i’am not a PHP programmer but i really want to use the FSG plug-in so i looked around in the internet ( in particular the “global” command ). At the website of stackoverflow i found some help ( see : https://stackoverflow.com/questions/41210784/does-php7-still-support-global-variables )
    .
    According your error report the error should be in statement 405. This statement is part of the “my_gear”-function. If you dont use the extra functionality of showing your camera information in FSG i think you dont will have problems with the FSG plug-in. Anyway, I GUESS ( as i told before i’am no PHP programmer ) the problem is the variabele ${$name} ( i refer to the stackoverflow website ) which has to be changed into $name or $$name. Can you search and replace ${$name} ( it is not stmt 405 but i thought stmt 412 in the function “my_gear” ) with $name ( or in case of an error $$name ) in the file “galleria-fs.php” and do the compatibility test again ? I’am able to do but it will take some days because i have to look which program i have to use/install.

    Thanks in advanced.
    Bert

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with PHP 7’ is closed to new replies.