Support » Plugin: Easy Watermark » Error when activating the plugin

  • Resolved the masked cat

    (@iniblogbudi)


    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/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author szaleq

    (@szaleq)

    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

    Hey, was having a similar problem.

    EasyWatermarkPlugin.php line 518

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

    Plugin Author szaleq

    (@szaleq)

    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

    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 🙁

    Plugin Author szaleq

    (@szaleq)

    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

    Jillian

    (@showtimelimosperth)

    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

    Plugin Author szaleq

    (@szaleq)

    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

    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;

    }

    Plugin Author szaleq

    (@szaleq)

    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

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error when activating the plugin’ is closed to new replies.