Support » Plugin: Quick Localization (Quick Localisation) » [Plugin: Quick Localization (Quick Localisation)] Plugin could not be activated because it triggered

  • Resolved Emil Uzelac

    (@emiluzelac)


    Theme Review Admin

    I was looking forward, but there’s an error 🙁

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected T_NEW, expecting T_STRING or T_VARIABLE or ‘{‘ or ‘$’ in /wp-content/plugins/quick-localization/ql_class.php on line 189

    Just an FYI that’s all.

    Emil

    http://wordpress.org/extend/plugins/quick-localization/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Namely

    (@namely-1)

    Thank you for the report. We tested on many sites installed and three different servers and all worked well.

    The issue was that “new” fields read from the database and stored under the “new” properties worked well in PHP 5.3.3 … 5.3.9 but failed on PHP version 5.2.17. We presume you would need to upgrade PHP anyway. Still we have fixed the issue with the following work-around for you:

    // work-around for PHP 5.2 not handling the "new" property correctly
    $newfield = "new";
    $row -> $newfield

    This is actually a known issue in PHP reported already back in 2011 and fixed in PHP 5.3.

    In any case, just update the plugin to version 0.0.6. This should do.

    Let us know if you have any issue.

    Happy translating!

    Emil Uzelac

    (@emiluzelac)

    Theme Review Admin

    Fantastic thanks, I will try it again!

    Emil

    Plugin Author Namely

    (@namely-1)

    Curious to learn what PHP version did you have.

    One can easily get it printed with this code

    <?php
    
      phpinfo ();
    
    ?>

    and whether it has solved the init issues on your end.

    Emil Uzelac

    (@emiluzelac)

    Theme Review Admin

    Yes sir I know and it’s 5.2.17

    Emil

    Plugin Author Namely

    (@namely-1)

    We have tested version 0.0.6 on 5.2.17 on one of our old BlueHost servers. Somehow they are too slow to upgrade.

    Emil Uzelac

    (@emiluzelac)

    Theme Review Admin

    DreamHost here, I’ll do an upgrade later on today.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Quick Localization (Quick Localisation)] Plugin could not be activated because it triggered’ is closed to new replies.