error last update |

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 2 hours, 9 minutes ago by marknmel.

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

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.

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)

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

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.

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:

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


This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer