• Resolved Paul Rayden

    (@paul-rayden)


    Parse error: syntax error, unexpected ‘|’, expecting variable (T_VARIABLE) in /home/xxxx/domains/xxx.com/public_html/wp-content/plugins/wpforo/classes/Posts.php on line 2110

    Ha habido un error crítico en esta web. Por favor, comprueba la bandeja de entrada del correo electrónico del administrador de tu sitio para obtener instrucciones.

    Aprende más sobre el diagnóstico de WordPress.

    Pagina donde se capturo el error: https://www.xxx.com/wp-admin/admin-ajax.php)

Viewing 12 replies - 1 through 12 (of 12 total)
  • marknmel

    (@marknmel)

    I came here too after wpForo broke my website.

    PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /var/www/html/foo/wp-content/plugins/wpforo/classes/Posts.php on line 2110

    Removed wpForo. Fixed!

    • This reply was modified 1 year ago by marknmel.
    Thread Starter Paul Rayden

    (@paul-rayden)

    I just disabled it until they fix it. It is a good product and I hope they solve it quickly.

    marknmel

    (@marknmel)

    Agreed Paul. It’s generally good product. I’ve decided finally abandon it due to the lack of need. I had a few integrations around it and I was always paranoid to pull the pin. Today just forced the issue.

    Alicadabra

    (@alicadabra)

    Same error here:
    An error of type E_PARSE was caused in line 2110 of the file ***/wp-content/plugins/wpforo/classes/Posts.php. Error message: syntax error, unexpected ‘|’, expecting variable (T_VARIABLE)

    RexAK

    (@rexak)

    Just add ing a +1 to this. Same issue here. I have reverted to the previous version until I hear back on this thread.

    Alicadabra

    (@alicadabra)

    Note: I have purged the cache and flushed Redis object cache as suggested in the update notes (I had to disable wpForo in order to do this), but even after this reactivating the plugin still throws the fatal error.

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi @paul-rayden, @alicadabra, @rexak, @marknmel

    Please try to update again, we’ve made some changes to support old PHP versions. The issue is you still use PHP 7.x versions. Please folow this topic: https://wpforo.com/community/postid/106338/

    Alicadabra

    (@alicadabra)

    @gvectors-team Many thanks for addressing this so quickly. I’ve updated and everything seems ok.

    Thread Starter Paul Rayden

    (@paul-rayden)

    Thank you very much for the prompt solution. I confirm the issue with PHP 7.4.x. After two reinstall attempts and clearing the cache, it finally worked. Best regards.

    bretweinraub99

    (@bretweinraub99)

    If the plugin has been updated with a bugfix, why not update the version number from 2.2.4 so people can automatically update the plugin?

    Plugin Author gVectors Team

    (@gvectors-team)

    Hi @bretweinraub99,

    This was incompatibility issue with your PHP version, this is not a core bug.

    If we release a new version, it will not fix the error you’ve already faced. It was one time problem and there is no way to have it again. All users who have downgraded to 2.2.3 still see new version update option and can update it again. Currently the core is updated and all users who update to wpForo 2.2.4 don’t have any problem.

    bretweinraub99

    (@bretweinraub99)

    I see that 2.2.5 in the end picked up the fix:

    from the readme.txt:

    • Version 2.2.5
    • Compatibility: Adopted with old 7.x PHP version to avoid PHP errors
    • Fixed Bug: Last post information on forum list
    • Fixed Bug: Forum participants avatars
    • Fixed Bug: Vulnerability to Content Injection
    • Fixed Bug: Vulnerable to Cross Site Request Forgery (CSRF)
    • Fixed Bug: PHP error / Syntax error, unexpected ‘|’, expected variable (T_VARIABLE))
    • Fixed Bug: PHP error / Typed property wpforo\classes\Cache::$dir must not be accessed before initialization
    • Fixed Bug: PHP error / Argument #2 ($haystack) must be of type array, null given in includes/hooks.php:1528
    • Fixed Bug: PHP error / Trying to access array offset on value of type null in themes/2022/layouts/2/post.php
    • Fixed Bug: Fatal error on user login and registration
Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘error last update’ is closed to new replies.