• Resolved benetel

    (@benetel)


    Hello,

    I intend to move my site from php 5 to php 7.1 and I checked the compatibility of my plugins with “PHP compatibility checker”.

    It appears that Booking Activities is not compatible with php 7

    The anonaly message is :

    ———————————————————————————
    FILE: /home/espaceren/www/wp-content/plugins/booking-activities/functions/functions-bookings.php
    ———————————————————————————-
    FOUND 1 ERROR AFFECTING 1 LINE
    ———————————————————————————-
    1800 | ERROR | “$this” can no longer be used in a plain function or method since PHP 7.1.
    ———————————————————————————-

    How can I still use this plugin if I move to php 7 ?

    Thanks

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

    (@yoancutillas)

    Hello,

    Yes, Booking Activities works with PHP 7.x

    The demo website runs under PHP 7.x and I am developing with 7.x too, no problem.

    Thank you for reporting this error though, I will fix it in the next release.
    If you want it fixed now, you can replace $this->filters with $filters in wp-content/plugins/booking-activities/functions/functions-bookings.php line 1800.

    Regards,
    Yoan Cutillas

    Thread Starter benetel

    (@benetel)

    Thank you for the response, I will try your solution.

    Regards and merry Xmas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘uncompatibility with php 7.x ?’ is closed to new replies.