• Resolved emrys3d

    (@emrys3d)


    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

    (@axewww)

    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.ww.wp.xz.cn/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.
    Thread Starter emrys3d

    (@emrys3d)

    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

    (@axewww)

    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.
    Plugin Author axew3

    (@axewww)

    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.ww.wp.xz.cn/export/HEAD/wp-w3all-phpbb-integration/trunk/class.wp.w3all-phpbb.php

    Thread Starter emrys3d

    (@emrys3d)

    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.
    • This reply was modified 8 years, 1 month ago by emrys3d.
    Plugin Author axew3

    (@axewww)

    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.
    Thread Starter emrys3d

    (@emrys3d)

    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

    (@axewww)

    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.
Viewing 8 replies - 1 through 8 (of 8 total)

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