WordPress.org

Ready to get started?Download WordPress

Forums

Easy Watermark
[resolved] Error when activating the plugin (11 posts)

  1. the masked cat
    Member
    Posted 1 year ago #

    Hi, I need a help.

    I got the error when activating the plugin. This is the error message:

    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/xxxx/public_html/mydomain.com/wp-content/plugins/easy-watermark/lib/EWPlugin.php on line 49

    FYI, I installed my wordpress as subdomain.

    Another info of my server:
    Server Type: LiteSpeed
    Operating System: Linux
    PHP Version: 5.2.17

    Thanks for your help..

    http://wordpress.org/extend/plugins/easy-watermark/

  2. szaleq
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    This error is caused by the old PHP version... I try to make this plugin more and more compatible, but it's hard when I work alone and don't have possibility to test it on milions of configurations... Be sure your error will be eliminated in the future version, please check for updates.

    Regards

  3. gabiton
    Member
    Posted 1 year ago #

    Hey, was having a similar problem.

    EasyWatermarkPlugin.php line 518

    You have a shorttag "<?".
    Change it to "<?php" and its done

  4. szaleq
    Member
    Plugin Author

    Posted 1 year ago #

    Hi gabiton,

    I use "<?php" everywhere...
    But there is a class name stored in a variable and then it's called '$className::$propertyName' and since this construction was introduced in php 5.3, it causes errors on php 5.2.

    Regards

  5. frugalfulltimemom
    Member
    Posted 1 year ago #

    So there is no way for it to work on php 5.2? as that would suck. I really like the look of this plug in and would love to use it :(

  6. szaleq
    Member
    Plugin Author

    Posted 1 year ago #

    Hi frugalfulltimemom,

    My intention is to make this plugin available for anyone who wonts to use it. It should work on any server with any php version (greater than 5.0). But it's not easy to accomplish, especially that I work alone. I have php 5.3 on my workspace and it's hard to check every function and code structure if it's backward compatible.
    But, as I said, I'm trying to make it working for anyone, so if you have any errors please write about it. If you have some errors that someone already mensioned, just wait for the next release.
    Be sure it will work on php 5.2 in the next version, so please check for updates :)

    Regards

  7. Jillian
    Member
    Posted 1 year ago #

    Hi, I also have an error. Do you have any suggestions to help?

    Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/name/public_html/name-name/wp-content/plugins/easy-watermark/lib/EWPlugin.php on line 49

  8. szaleq
    Member
    Plugin Author

    Posted 1 year ago #

    Hi showtimelimosperth,

    As I said before, unfortunately, there is no way to help you as long as you are using php 5.2 or earlier. If you have such a possibility please switch your php version to 5.3 (most virtual servers allows you to do this) or upgrade the php if using your own or dedicated server. If you can't do this, just wait for the next release of Easy Watermark, which will be more compatible (maybe I can create it before the weekend).

    Regards

  9. gabiton
    Member
    Posted 1 year ago #

    Hey szaleq.
    I recheck and yes, you have a shorttag. I just download the version 0.4.1 form the wordpress repository

    public function easy_watermark_style(){
    if(get_current_screen()->id == 'media_page_easy-watermark') :
    ?>
    <style type="text/css" media="screen">
    #icon-easy-watermark {background: url(<?php echo plugins_url(); ?>/<?php echo self::$pluginSlug; ?>/images/icon-32.png) no-repeat 2px 0;}
    </style>
    <?
    endif;

    }

  10. szaleq
    Member
    Plugin Author

    Posted 1 year ago #

    Hi gabiton,

    You are right, my fault. But it's the only place in the code (just an oversight) and it's not related with the place when the error occurred.

    Anyway, I'm going to release the new version tonight and all this errors should be fixed.

    Regards

  11. gabiton
    Member
    Posted 1 year ago #

    Yeah, but i get a similar error and it was that. I found a shottag somewhere else but dont remember where...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.