Notifications
Clear all

[Solved] PHP Parse error: syntax error, unexpected '|',

5 Posts
2 Users
4 Reactions
424 Views
Posts: 3
Topic starter
(@johnmodel)
Active Member
Joined: 10 months ago

Hi there, wonderful plugin first of all.

I have a client website, https://certbetter.com.au/ , where I installed the plugin which was working fine for a couple of days. Today it started showing this:

Error 'PHP message: PHP Parse error: syntax error, unexpected '|', expecting variable (T_VARIABLE) in /plugins/wpforo/classes/Posts.php on line 2110'

I am not sure what's causing the issue but I have deactivated the plugin.

Have anyone else gone through the similar issues?

4 Replies
Robert
Posts: 10583
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @johnmodel,

You're using old version of PHP, we've just add some changes to avoid such issues with old PHP version. You can try to update again.

Posts: 3
Topic starter
(@johnmodel)
Active Member
Joined: 10 months ago

Thanks Robert for quick response. Upon checking I also discovered the following vulnerability:

https://prnt.sc/yalaRZMhOI7-

2 Replies
Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10583

@johnmodel,

This was fixed in 2.2.4. Please see the changelog:

https://wordpress.org/plugins/wpforo/#developers

(@johnmodel)
Joined: 10 months ago

Active Member
Posts: 3

@robert That's great! Thanks Robert. By the way, I have updated php version and a few other things. Everything seems working now.