• Resolved stevengabb27

    (@stevengabb27)


    I am having some plugin compatability issues on my wordpress site (not related to Appointment Hour Booking as far as I am aware) so I wanted to upgrade to the latest PHP as part of the process of hoping to resolve them.

    I ran the PHP Compatability Tool and I received this incompatability. Does anyone know anything about it? Should I not upgrade PHP if I use this plugin?

    I love the plugin btw, it’s been really useful for our local sports club to book our pitches out for our teams,

    FILE: /vhost/wphost1/p/i/n/thewebsiteimanage.co.uk/www/wp-content/plugins/appointment-hour-booking/cp-admin-int-schedule.inc.php
    ———————————————————————————————————————————–
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————————————————————–
    25 | ERROR | Using ‘break’ outside of a loop or switch structure is invalid and will throw a fatal error since PHP 7.0
    ———————————————————————————————————————————–

Viewing 2 replies - 1 through 2 (of 2 total)
  • PHP 7.0 is deprecated, 7.4 is the latest. I would imagine this plugin was developed using version 7.0 at least. The error is probably more a warning.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    That’s a false-positive report, seems that the tool used for checking the compatibility isn’t correctly parsing the file and incorrectly reports that the ‘break’ is out of a loop.

    We have published anyway a little update that will remove that compatibility report note.

    The plugin has been tested and is compatible with all the current PHP versions.

    Thank you for the feedback!

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