Title: Error when activating the plugin
Last modified: August 21, 2016

---

# Error when activating the plugin

 *  Resolved [the masked cat](https://wordpress.org/support/users/iniblogbudi/)
 * (@iniblogbudi)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/)
 * 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/](http://wordpress.org/extend/plugins/easy-watermark/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Author [Wojtek Szałkiewicz](https://wordpress.org/support/users/szaleq/)
 * (@szaleq)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731501)
 * 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
 *  [gabiton](https://wordpress.org/support/users/gabiton/)
 * (@gabiton)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731522)
 * Hey, was having a similar problem.
 * EasyWatermarkPlugin.php line 518
 * You have a shorttag “<?”.
    Change it to “<?php” and its done
 *  Plugin Author [Wojtek Szałkiewicz](https://wordpress.org/support/users/szaleq/)
 * (@szaleq)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731524)
 * 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
 *  [frugalfulltimemom](https://wordpress.org/support/users/frugalfulltimemom/)
 * (@frugalfulltimemom)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731536)
 * 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 [Wojtek Szałkiewicz](https://wordpress.org/support/users/szaleq/)
 * (@szaleq)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731537)
 * 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](https://wordpress.org/support/users/showtimelimosperth/)
 * (@showtimelimosperth)
 * [13 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731552)
 * 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 [Wojtek Szałkiewicz](https://wordpress.org/support/users/szaleq/)
 * (@szaleq)
 * [13 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731556)
 * 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
 *  [gabiton](https://wordpress.org/support/users/gabiton/)
 * (@gabiton)
 * [13 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731564)
 * 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 [Wojtek Szałkiewicz](https://wordpress.org/support/users/szaleq/)
 * (@szaleq)
 * [13 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731565)
 * 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
 *  [gabiton](https://wordpress.org/support/users/gabiton/)
 * (@gabiton)
 * [13 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731570)
 * 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.

 * ![](https://ps.w.org/easy-watermark/assets/icon.svg?rev=2153955)
 * [Easy Watermark](https://wordpress.org/plugins/easy-watermark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-watermark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-watermark/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-watermark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-watermark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-watermark/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [gabiton](https://wordpress.org/support/users/gabiton/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/error-when-activating-the-plugin-1/#post-3731570)
 * Status: resolved