Notifications
Clear all

[Solved] Plugin not activating: syntax error, unexpected T_STRING

5 Posts
3 Users
1 Reactions
3,645 Views
(@thomasmpreston)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Just downloaded this to try and test it out and get the following error when I try and activate it:

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /var/sites/l/lob.boardgames.directory/public_html/wp-content/plugins/wpdiscuz/forms/wpDiscuzForm.php on line 4

Tried on two separate sites. Thought maybe php version error but both on 7.1. Any suggestions?

This topic was modified 6 years ago by thomasmpreston

   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6149
 

Hi @thomasmpreston,

Please let us know the wpDiscuz version, that you've tried to install. 


   
ReplyQuote
(@thomasmpreston)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Version 5.1.5


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4209
 

I'm sure the PHP version is not 7.1, please check it again. Install the WordPress phpinfo() plugin and leave provided information here. The server PHP version may be 7.1 version but WP folder may configured to use lower versions, so it's important to check PHP version in WP dashboard.


   
ReplyQuote
(@thomasmpreston)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Hi thanks for getting back to me. it turns out it was a subdomain problem, had to get the php updated via ssh as it didn't inherit the parent update. seems to be working now.


   
ReplyQuote
Share:
Scroll to top