Title: This plugin is throwing PHP error
Last modified: September 1, 2016

---

# This plugin is throwing PHP error

 *  Resolved [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/)
 * Hi,
    Today I have seen this PHP errors on my error log. I’m running PHP v7.0.8.
   I thought you guys should know of these errors so that you guys can fix it. There
   are multiple occurrences of this following error in my error log:
 *     ```
       2016/07/17 03:44:21 [error] 27450#27450: *2722 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function get_plugin_data() in /home/nginx/something/whatever/public/wp-content/plugins/tiny-compress-images/src/class-tiny-plugin.php:36
       Stack trace:
       #0 /home/nginx/something/whatever/public/wp-content/plugins/tiny-compress-images/src/class-tiny-compress.php(131): Tiny_Plugin::version()
       #1 /home/nginx/something/whatever/public/wp-content/plugins/tiny-compress-images/src/class-tiny-compress-client.php(41): Tiny_Compress::identifier()
       #2 /home/nginx/something/whatever/public/wp-content/plugins/tiny-compress-images/src/class-tiny-compress.php(39): Tiny_Compress_Client->__construct('wZKWjtuYq5m_rdF...', Array)
       #3 /home/nginx/something/whatever/public/wp-content/plugins/tiny-compress-images/src/class-tiny-settings.php(36): Tiny_Compress::create('wZKWjtuYq5m_rdF...', Array)
       #4 /home/nginx/something/whatever/public/wp-content/plugins/tiny-compress-images/src/class-tiny-settings.php(46): Tiny_Settings->init_compressor()
       #5 /home/nginx/something/" while reading response header from upstream, client: 163.172.51.92, server: isaumya.com, request: "POST /xmlrpc.php HTTP/1.0", upstream: "fastcgi://127.0.0.1:9000", host: "www.isaumya.com"
       ```
   
 * Looking forward to your reply.
 * [https://wordpress.org/plugins/tiny-compress-images/](https://wordpress.org/plugins/tiny-compress-images/)

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

 *  [ironmanixs](https://wordpress.org/support/users/ironmanixs/)
 * (@ironmanixs)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579742)
 * Same here on Apache, see the error trace (New Relic):
 *     ```
       Error message
       E_ERROR: Call to undefined function get_plugin_data()
   
       Sample stack trace
       …var/www/html/wp-content/plugins/tiny-compress-images/src/
       class-tiny-plugin.php (36)
       …r/www/html/wp-content/plugins/tiny-compress-images/src/
       class-tiny-compress.php (131)
       …tml/wp-content/plugins/tiny-compress-images/src/
       class-tiny-compress-client.php (41)
       …r/www/html/wp-content/plugins/tiny-compress-images/src/
       class-tiny-compress.php (39)
       …r/www/html/wp-content/plugins/tiny-compress-images/src/
       class-tiny-settings.php (37)
       …r/www/html/wp-content/plugins/tiny-compress-images/src/
       class-tiny-settings.php (46)
       in Tiny_Settings::xmlrpc_init called at ? (?)
       in call_user_func_array called at /var/www/html/wp-includes/plugin.php (525)
       in do_action called at /var/www/html/wp-settings.php (393)
       in require_once called at /var/www/html/wp-config.php (104)
       in require_once called at /var/www/html/wp-load.php (37)
       in include called at /var/www/html/xmlrpc.php (29)
       ```
   
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579756)
 * Hi guys,
 * Thank you for reporting these errors! We’re able to reproduce it.
    We will let
   you know when a fix will be available.
 *  Thread Starter [iSaumya](https://wordpress.org/support/users/isaumya/)
 * (@isaumya)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579757)
 * No problem, from next time before pushing an update to the public first test 
   it on your system and check the error logs thoroughly. Them push the commit.
 *  [ironmanixs](https://wordpress.org/support/users/ironmanixs/)
 * (@ironmanixs)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579778)
 * Thanks! for the time being the previous version installed.
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579795)
 * Hello iSaumya and ironmanixs, we have managed to make some changes and we are
   doing some final testing. It will be released as version 2.0.2 shortly.
 *  Plugin Author [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * (@tinypng)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579834)
 * We’ve released version 2.0.2 of our plugin! Please give it a try. You should 
   no longer be getting these errors.

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

The topic ‘This plugin is throwing PHP error’ is closed to new replies.

 * ![](https://ps.w.org/tiny-compress-images/assets/icon-256x256.png?rev=3448487)
 * [TinyPNG - JPEG, PNG & WebP image compression](https://wordpress.org/plugins/tiny-compress-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tiny-compress-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tiny-compress-images/)
 * [Active Topics](https://wordpress.org/support/plugin/tiny-compress-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tiny-compress-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tiny-compress-images/reviews/)

## Tags

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

 * 6 replies
 * 3 participants
 * Last reply from: [TinyPNG](https://wordpress.org/support/users/tinypng/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/this-plugin-is-throwing-php-error/#post-7579834)
 * Status: resolved