Title: Activate issue
Last modified: April 16, 2018

---

# Activate issue

 *  Resolved [emrys3d](https://wordpress.org/support/users/emrys3d/)
 * (@emrys3d)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/)
 * Hi
 * Every time I try to activate the plugin I get this error –
 * Parse error: syntax error, unexpected ‘&&’ (T_BOOLEAN_AND), expecting ‘)’ in /
   var/www/vhosts/mysite/httpdocs/wp-content/plugins/wp-w3all-phpbb-integration/
   class.wp.w3all-phpbb.php on line 922
 * Any ideas?
 * Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10186987)
 * Ops … thank for report … wow my debugger didn’t notified me about this (that’s
   strange): what crazy … sorry
    **open ** _/wp-content/plugins/wp-w3all-phpbb-integration/**
   class.wp.w3all-phpbb.php**_ **change line 922 into** `if(!empty($ed) && count(
   $ed) == 2){`
 * **or download the patched file directly here:**
    [https://plugins.trac.wordpress.org/export/HEAD/wp-w3all-phpbb-integration/trunk/class.wp.w3all-phpbb.php](https://plugins.trac.wordpress.org/export/HEAD/wp-w3all-phpbb-integration/trunk/class.wp.w3all-phpbb.php)
   and replace into _/wp-content/plugins/**wp-w3all-phpbb-integration/**_ folder
 * Or just delete the plugin and reinstall, since you’re just activating it.
    -  This reply was modified 8 years, 1 month ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Thread Starter [emrys3d](https://wordpress.org/support/users/emrys3d/)
 * (@emrys3d)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10188723)
 * Thanks for the quick reply, that solved that error but now I’m getting this error–
 * Plugin could not be activated because it triggered a fatal error.
 * Fatal error: Can’t use function return value in write context in /var/www/vhosts/
   mysite/httpdocs/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-
   phpbb.php on line 981
 * Thanks,
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10188803)
 * Ok, i’m over today afternoon if possible and within today/tomorrow new 1.8.8 
   will be released, so also this will be resolved, even if as above, my php/wp 
   not thrown any error, that may not mean the instruction passed is totally correct:
   
   just to know, which version oh php is running on your server?
 * **to resolve, change as above on file **
    _/wp-content/plugins/wp-w3all-phpbb-
   integration/**class.wp.w3all-phpbb.php**_ **the line 981 with this:** `if(strlen(
   get_locale()) == 0){ // wp lang for this user ISO 639-1 Code. en_EN // en = Lang
   code _ EN = Country code` let know!
    -  This reply was modified 8 years, 1 month ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10188850)
 * p.s the
    _/wp-content/plugins/wp-w3all-phpbb-integration/**class.wp.w3all-phpbb.
   php**_ has been just patched on repo to fix this issue, so as above you can download
   directly and substitute the file: [https://plugins.trac.wordpress.org/export/HEAD/wp-w3all-phpbb-integration/trunk/class.wp.w3all-phpbb.php](https://plugins.trac.wordpress.org/export/HEAD/wp-w3all-phpbb-integration/trunk/class.wp.w3all-phpbb.php)
 *  Thread Starter [emrys3d](https://wordpress.org/support/users/emrys3d/)
 * (@emrys3d)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10188911)
 * Thanks I’ll give it a try, I’m running PHP 5.4.16.
    -  This reply was modified 8 years, 1 month ago by [emrys3d](https://wordpress.org/support/users/emrys3d/).
    -  This reply was modified 8 years, 1 month ago by [emrys3d](https://wordpress.org/support/users/emrys3d/).
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10188925)
 * so maybe there is something more to fix in one or 2 points because the code is
   php 5.6 > compatible. Please if u can so, let know the error and will be fixed
   on fly in case.
    p.s i’ll take a look for 1.8.8 to fix all this php 5.6 < issues…
    -  This reply was modified 8 years, 1 month ago by [axew3](https://wordpress.org/support/users/axewww/).
 *  Thread Starter [emrys3d](https://wordpress.org/support/users/emrys3d/)
 * (@emrys3d)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10188938)
 * Ah, I could update to 5.6 if needed, New error –
 * Fatal error: Can’t use function return value in write context in /var/www/vhosts/
   s21135982.onlinehome-server.info/httpdocs/wp-content/plugins/wp-w3all-phpbb-integration/
   class.wp.w3all-phpbb.php on line 2224
 * Just to let you know, this is a fresh install of wordpress ver. 4.9.5
 *  Plugin Author [axew3](https://wordpress.org/support/users/axewww/)
 * (@axewww)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10189005)
 * as above! going to patch the file …
    _/wp-content/plugins/wp-w3all-phpbb-integration/**
   class.wp.w3all-phpbb.php**_ change line 2224 in: `if(strlen(get_locale()) == 
   0){ // wp lang for this user ISO 639-1 Code. en_EN // en = Lang code _ EN = Country
   code`
 * yes if u can update to 5.6, still should be a function or two that use 5.6> code
   somewhere, i can’t figure out where at moment on fly …
 * p.s if you still going in 5.4 please report so i can fix all in seconds right
   now
    -  This reply was modified 8 years, 1 month ago by [axew3](https://wordpress.org/support/users/axewww/).

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Activate issue’ is closed to new replies.

 * ![](https://ps.w.org/wp-w3all-phpbb-integration/assets/icon-128x128.png?rev=3375511)
 * [WP w3all phpBB](https://wordpress.org/plugins/wp-w3all-phpbb-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-w3all-phpbb-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-w3all-phpbb-integration/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [axew3](https://wordpress.org/support/users/axewww/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/activate-issue-2/#post-10189005)
 * Status: resolved