Quick Localization (Quick Localisation)
[resolved] fatal error (3 posts)

  1. denixoid
    Posted 3 years ago #

    I've tried to activate the plugin and got this:
    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


  2. denixoid
    Posted 3 years ago #

    Since I've just tried it on a blank system I would really advice to consider to fix it, it's definitely not because of other plugins, themes or whatever.

  3. Namely
    Plugin Author

    Posted 3 years ago #

    Thank you for the report. It took as a while as we were not aware of the problem at all. 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 fixed the issue with the following work-around for you:

    // work-around for PHP 5.2 and lower 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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Quick Localization (Quick Localisation)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic