Title: Plugin broken after update
Last modified: September 1, 2016

---

# Plugin broken after update

 *  Resolved [flomei](https://wordpress.org/support/users/flomei/)
 * (@flomei)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/)
 * Hi!
    I experience problems with your plugin after the last update.
 * I did an automatic update through WordPress and now parts of the shariff.php 
   file are broken. See this screenshot: [http://fs5.directupload.net/images/160713/ffacm2va.jpg](http://fs5.directupload.net/images/160713/ffacm2va.jpg)
 * The file looks fine on my system but once I upload it to the server it displays
   like this.
 * Any ideas what could cause this? Somewhat about the encoding (server says its
   UTF-8) probably?
 * Kind regards
    Florian
 * [https://wordpress.org/plugins/shariff/](https://wordpress.org/plugins/shariff/)

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

 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568751)
 * Hi Florian,
 * sorry to hear that. We haven’t had this issue yet, so I’ll need a bit more information.
   Where do you see this code? In the WordPress plugin editor or anywhere else? 
   What happened after the update exactly? Any error messages?
 * For the beginning please try to delete the plugin completely and reinstall it,
   using the plugin page in the admin area of WordPress. Simply search for shariff
   and choose the Shariff Wrapper for a fresh install. If any error messages appear,
   please report them.
 * Thank you for your help in this matter.
 * JP
 *  Thread Starter [flomei](https://wordpress.org/support/users/flomei/)
 * (@flomei)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568806)
 * Hi JP,
    I will give the reinstall a try and come back to this topic afterwards.
 *  Thread Starter [flomei](https://wordpress.org/support/users/flomei/)
 * (@flomei)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568824)
 * Alright, I tried uninstalling and reinstalling and the problem resides.
 * I receive the following error message:
 * > Fatal error: Call to undefined function hash() in /var/www/www.longo.media/
   > htdocs/wp-content/plugins/shariff/shariff.php on line 555
 * I don´t think our Apache has lost its hash() function somehow, so what could 
   be the cause of this?
 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568825)
 * That is strange indeed. Just in case, if you know how to, could you check what
   PHP version you are using and possibly, if the hash extension is enabled (phpinfo()
   has an own section about hash including, if it is enabled and with which options)?
   It would be odd for a server nowadays to run PHP < 5.2 or to have the hash extension
   not installed and activated by default, but just to be sure that it hasn’t gotten
   disabled by accident.
 * Also are you running your own server or which hosting company are you using?
 * Cheers,
    JP
 *  Thread Starter [flomei](https://wordpress.org/support/users/flomei/)
 * (@flomei)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568864)
 * This could very well be the problem, the server is running PHP 5.2.13. It´s about
   to get moved to another hoster but until then it should run.
 * Which version should I use for backwards compatibility?
 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568869)
 * Our plugin has the same basic requirements as WordPress itself. So you can use
   this as a reference:
 * [https://wordpress.org/about/requirements/](https://wordpress.org/about/requirements/)
 * Newer versions, all the way up to PHP 7.0 are not a problem with our plugin. 
   In general, I would follow the WordPress recommendations in the above link.
 * You also need to make sure that the hash extension is not disabled. The easiest
   way to do that is to create a phpinfo page and check, if it has a hash section
   and what is shown there (How-to: [https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page](https://mediatemple.net/community/products/dv/204643880/how-can-i-create-a-phpinfo.php-page)).
 * Cheers,
    JP

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

The topic ‘Plugin broken after update’ is closed to new replies.

 * ![](https://ps.w.org/shariff/assets/icon.svg?rev=2006307)
 * [Shariff Wrapper](https://wordpress.org/plugins/shariff/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shariff/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shariff/)
 * [Active Topics](https://wordpress.org/support/plugin/shariff/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shariff/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shariff/reviews/)

## Tags

 * [encoding](https://wordpress.org/support/topic-tag/encoding/)

 * 6 replies
 * 2 participants
 * Last reply from: [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/plugin-broken-after-update-3/#post-7568869)
 * Status: resolved