Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

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

11 Posts
4 Users
0 Reactions
1,775 Views
Posts: 8
 MBF
Topic starter
(@mbf)
Active Member
Joined: 4 years ago

Hello,

I got the parse error (Parse error: syntax error, unexpected '|', expected variable (T_VARIABLE)) and can no longer reach my WP site.

I received an email that the pwforo plugin is causing this error. I've seen users solve the problem here, but when I log into recovery mode I can't click anything without the error occurring again.

I understood from the other post that it has something to do with the PHP version.

What can I do?

Thanks

10 Replies
Robert
Posts: 10616
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @mbf,

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: 8
 MBF
Topic starter
(@mbf)
Active Member
Joined: 4 years ago

Hey,

when I deactivate pwforo, the website works.

The version ist Version 2.2.4. This is the newest one?! When I activate it, the error occurres again.

1 Reply
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10616

@mbf,

Please update the wpForo again, it'll work for sure, the core has been updated for old 7.x versions as well. 

dimalifragis
Posts: 2601
(@dimalifragis)
Famed Member
Joined: 5 years ago

What is your PHP version?

Posts: 14
(@itsupport)
Eminent Member
Joined: 7 years ago

Hello,

I'm getting the same error.

plugin running on 2.2.4,

PHP version is 7.4.33

We've tried to update site php to 3 separate 8.+ versions with no effect as while doing so, other plugins show errors (including woffice plugin / theme errors), please advise? thanks

1 Reply
dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2601

@itsupport That is strange, with php 8.+ there should not be any such issue.

Page 1 / 2