WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. denixoid
    Member
    Posted 1 year 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

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

  2. denixoid
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic