WordPress.org

Forums

Quick Localization (Quick Localisation)
[resolved] Plugin could not be activated because it triggered (7 posts)

  1. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    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/

  2. Namely
    Member
    Plugin Author

    Posted 3 years ago #

    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!

  3. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    Fantastic thanks, I will try it again!

    Emil

  4. Namely
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  5. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

    Yes sir I know and it's 5.2.17

    Emil

  6. Namely
    Member
    Plugin Author

    Posted 3 years ago #

    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.

  7. Emil Uzelac
    Theme Review Admin
    Posted 3 years ago #

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

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