• Resolved itsthluz

    (@itsthluz)


    Hello

    Does anybody know if Event List Version 0.8.6 is compatible with PHP 7.4?
    I did the check with the PHP Compatibility Checker an it returned an error:

    ? FILE: /var/www/html/wordpress/wp-content/plugins/event-list/includes/event.php
    ? ——————————————————————————————
    ? FOUND 1 ERROR AFFECTING 1 LINE
    ? ——————————————————————————————
    ? 145 | ERROR | “$this” can no longer be used in a plain function or method since PHP 7.1

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m running WP 5.8.3 / PHP 7.4.26 / Event List 0.8.6 —?and I can at least say that see no fundamental incompatibility. However, I wonder whether some of the known bugs / flaws are caused by this syntax error? Sadly, EL 0.8.6 feels like a partially orphaned plugin (even though I don’t know of any suitable alternative), and this is one reason why I feel shaky about moving to PHP 8.x …

    Thread Starter itsthluz

    (@itsthluz)

    Hello rkyburz

    Thank you for your reply.
    That was the information that I am was looking for.

    This could be a faulty response by the PHP Compatibility Checker, because it basically says you are not allowed to use the variable $this outside an object, except that is not what Event List appears to do.

    In fact the plugin is riddled with the exact same call (i.e. array( &$this, 'CALLABLE' )) and none of these instances trip up the checker.

    If this is a bug, the part of the code this line seems to deal with is where you are redirected to after you have created or updated an event. I am not sure what it does exactly though.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Event List and PHP 7.4 Compatibility’ is closed to new replies.