Title: Uncaught exception
Last modified: August 4, 2017

---

# Uncaught exception

 *  [thorovi](https://wordpress.org/support/users/thorovi/)
 * (@thorovi)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/uncaught-exception-4/)
 * Hi Matt,
 * First of all, I love your plugins 🙂
 * But now I had an issue (version installed : 2.0.3 / WordPress 4.7.5 / Php 7.0).
 * I have this call to an undefined method in the file class-GPI-Core.php: GuzzleHttp\
   Exception\RequestException::getErrors()
 * Do you have any advice/workaround for this problem ?
 * Thanks,
    Vincent
 * Full stack trace:
    [04-Aug-2017 11:37:47 UTC] PHP Fatal error: Uncaught Error:
   Call to undefined method GuzzleHttp\Exception\RequestException::getErrors() in/
   www/wp-content/plugins/google-pagespeed-insights/classes/class-GPI-Core.php:738
   Stack trace: #0 /www/wp-content/plugins/google-pagespeed-insights/classes/class-
   GPI-Core.php(339): GPI_Core->exception_handler(Object(GuzzleHttp\Exception\RequestException),‘
   desktop’, false, ‘post’, ‘object_id’, 17064, ‘[https://www.mad…&#8217](https://www.mad…&#8217);)#
   1 /www/wp-content/plugins/google-pagespeed-insights/classes/class-GPI-Core.php(
   229): GPI_Core->get_result(Object(Google_Service_Pagespeedonline), ‘desktop’,‘
   post’, Array, ‘86400’, false) #2 /www/wp-content/plugins/google-pagespeed-insights/
   classes/class-GPI-Core.php(140): GPI_Core->worker(Array, ‘desktop’, false, false)#
   3 /www/wp-content/plugins/google-pagespeed-insights/classes/class-GPI-Core.php(
   60): GPI_Core->googlepagespeedinsightsworker(Array, false, false) #4 /www/wp-
   includes/class-wp-hook.php(298): GP in /www/wp-content/plugins/google-pagespeed-
   insights/classes/class-GPI-Core.php on line 738

Viewing 1 replies (of 1 total)

 *  Plugin Author [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * (@mattkeys)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/uncaught-exception-4/#post-9382156)
 * Hi Thorovi,
 * Two things seem to be going on.
 * 1) There was an error while trying to check one of your sites pages (a post with
   post ID 17064).
 * 2) While trying to log the error, the plugin experienced a fatal error. It looks
   like it is calling getErrors() which does not exist, and should probably be calling
   getMessage().
 * I’d like to take a closer look at this to get it resolved in a future update 
   to the plugin. Are you able to provide me temporary admin access to your site
   so I can check it out? If so, you can send me the access to my sites [contact form](http://mattkeys.me/about/).
 * Thanks,
 * Matt

Viewing 1 replies (of 1 total)

The topic ‘Uncaught exception’ is closed to new replies.

 * ![](https://ps.w.org/google-pagespeed-insights/assets/icon-256x256.png?rev=1692787)
 * [Insights from Google PageSpeed](https://wordpress.org/plugins/google-pagespeed-insights/)
 * [Support Threads](https://wordpress.org/support/plugin/google-pagespeed-insights/)
 * [Active Topics](https://wordpress.org/support/plugin/google-pagespeed-insights/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-pagespeed-insights/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-pagespeed-insights/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Matt Keys](https://wordpress.org/support/users/mattkeys/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/uncaught-exception-4/#post-9382156)
 * Status: not resolved