Title: Bug? Error messages
Last modified: June 26, 2017

---

# Bug? Error messages

 *  [Abigailm](https://wordpress.org/support/users/abigailm/)
 * (@abigailm)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/)
 * Since 22 June one of my sites is working, but throwing off frequent error messages:
 * `[26-Jun-2017 19:16:30 UTC] PHP Recoverable fatal error: Object of class WP_Error
   could not be converted to string in //wp-includes/kses.php on line 1249`
 * I enabled debugging and had these entries in my debug log:
 *     ```
       [26-Jun-2017 23:24:06 UTC] PHP Notice:  Undefined property: stdClass::$attachment in //wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1170
       [26-Jun-2017 23:24:06 UTC] PHP Notice:  Array to string conversion in //wp-includes/class-requests.php on line 797
       [26-Jun-2017 23:24:06 UTC] PHP Recoverable fatal error:  Object of class WP_Error could not be converted to string in //wp-includes/kses.php on line 1249
       ```
   
 * I am seeing this on only one site; running PHP 7.1. Plugin version 0.8.7.0
 * Plugin is working otherwise, but large number of errors reported rapidly expands
   error_log
    -  This topic was modified 8 years, 11 months ago by [Abigailm](https://wordpress.org/support/users/abigailm/).

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

 *  [jurasjo](https://wordpress.org/support/users/jurasjo/)
 * (@jurasjo)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9264385)
 * I can confirm. I can see even more notices and some error which includes kses.
   php file. I have no idea if it is related to Your plugin.
 *     ```
       [27-Jun-2017 04:25:54 UTC] PHP Notice:  Undefined property: stdClass::$attachment in /wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1170
       [27-Jun-2017 04:25:54 UTC] PHP Notice:  Trying to get property of non-object in /wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1243
       [27-Jun-2017 04:25:54 UTC] PHP Notice:  Trying to get property of non-object in /wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1243
       [27-Jun-2017 04:25:54 UTC] PHP Notice:  Trying to get property of non-object in /wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1243
       [27-Jun-2017 04:25:54 UTC] PHP Notice:  Trying to get property of non-object in /wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1243
       [27-Jun-2017 04:25:54 UTC] PHP Notice:  Undefined property: stdClass::$tag in /wp-content/plugins/wp-fastest-cache/wpFastestCache.php on line 1255
       [27-Jun-2017 04:25:54 UTC] PHP Catchable fatal error:  Object of class WP_Error could not be converted to string in /wp-includes/kses.php on line 1249
       ```
   
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9265546)
 * I fixed the problem as below.
 * `if($number > 0 && isset($pre_load->attachment) && $pre_load->attachment > -1){`
 * `if($number > 0 && isset($pre_load->tag) && $pre_load->tag > -1){`
 * You should delete the plugin and download the following version to get the latest
   changes because I did not release a new version. Please let me know after doing
   it.
 * [https://downloads.wordpress.org/plugin/wp-fastest-cache.0.8.7.0.zip](https://downloads.wordpress.org/plugin/wp-fastest-cache.0.8.7.0.zip)
 *  Thread Starter [Abigailm](https://wordpress.org/support/users/abigailm/)
 * (@abigailm)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9268252)
 * I did download the zip file listed above and uploaded the wpFastestCache.php 
   file — and the problem persisted.
 * Same as before, multiple errors like this:
 * `27-Jun-2017 21:22:47 UTC] PHP Recoverable fatal error: Object of class WP_Error
   could not be converted to string in //wp-includes/kses.php on line 1249`
 * It also can still be fixed by enabling preload for attachments. The problem is
   that I would prefer not to cache attachments on this particular site because 
   of the nature and size of the site
 *  [jurasjo](https://wordpress.org/support/users/jurasjo/)
 * (@jurasjo)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9268253)
 * I have updated and looks like the problem with kses.php and the rest lines with
   errors/notices are gone.
 * The only one notice is:
    `[28-Jun-2017 04:53:46 UTC] PHP Notice: Array to string
   conversion in .../wp-includes/class-requests.php on line 797`
 * I don’t now if it is related to WP Fastest Cache but I think it is not.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9269377)
 * but how do you know that WPFC causes “PHP Notice: Array to string conversion”
   error?
 *  [jurasjo](https://wordpress.org/support/users/jurasjo/)
 * (@jurasjo)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9269646)
 * I have written that this particular one is probably not related to Your plugin.
   In my case it is probably theme or some other plugin.
 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9269652)
 * ok 🙂
 *  [shamank](https://wordpress.org/support/users/shamank/)
 * (@shamank)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9641989)
 * [@emrevona](https://wordpress.org/support/users/emrevona/) I’m seeing this error
   and it’s something related to WP Latest Cache. I have installed the current latest
   version: 0.8.7.4. This is the trace:
 *     ```
       [Wed Nov 01 16:14:18.908840 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP Catchable fatal error:  Object of class WP_Error could not be converted to string in /var/www/imaat/clients/tbo.com.ar/wp-includes/kses.php on line 1249, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909006 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP Stack trace:, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909091 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   1. {main}() /var/www/imaat/clients/tbo.com.ar/wp-cron.php:0, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909149 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   2. do_action_ref_array() /var/www/imaat/clients/tbo.com.ar/wp-cron.php:117, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909199 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   3. WP_Hook->do_action() /var/www/imaat/clients/tbo.com.ar/wp-includes/plugin.php:515, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909247 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   4. WP_Hook->apply_filters() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:323, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909295 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   5. call_user_func_array:{/var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:298}() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:298, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909345 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   6. WpFastestCache->create_preload_cache() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:298, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909410 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   7. WpFastestCache->wpfc_remote_get() /var/www/imaat/clients/tbo.com.ar/wp-content/plugins/wp-fastest-cache/wpFastestCache.php:1415, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909457 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   8. wp_remote_get() /var/www/imaat/clients/tbo.com.ar/wp-content/plugins/wp-fastest-cache/wpFastestCache.php:1464, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909496 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   9. WP_Http->get() /var/www/imaat/clients/tbo.com.ar/wp-includes/http.php:170, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909533 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  10. WP_Http->request() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-http.php:612, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909571 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  11. wp_kses_bad_protocol() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-http.php:257, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909607 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  12. wp_kses_no_null() /var/www/imaat/clients/tbo.com.ar/wp-includes/kses.php:1219, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909642 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  13. preg_replace() /var/www/imaat/clients/tbo.com.ar/wp-includes/kses.php:1249, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       ```
   
 * Something I can do?
    -  This reply was modified 8 years, 7 months ago by [shamank](https://wordpress.org/support/users/shamank/).
 *  [shamank](https://wordpress.org/support/users/shamank/)
 * (@shamank)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9642004)
 * [@emrevona](https://wordpress.org/support/users/emrevona/) I’m seeing this error
   and it’s something related to WP Latest Cache. I have installed the current latest
   version: 0.8.7.4. This is the trace:
 *     ```
       [Wed Nov 01 16:14:18.908840 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP Catchable fatal error:  Object of class WP_Error could not be converted to string in /var/www/imaat/clients/tbo.com.ar/wp-includes/kses.php on line 1249, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909006 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP Stack trace:, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909091 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   1. {main}() /var/www/imaat/clients/tbo.com.ar/wp-cron.php:0, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909149 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   2. do_action_ref_array() /var/www/imaat/clients/tbo.com.ar/wp-cron.php:117, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909199 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   3. WP_Hook->do_action() /var/www/imaat/clients/tbo.com.ar/wp-includes/plugin.php:515, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909247 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   4. WP_Hook->apply_filters() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:323, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909295 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   5. call_user_func_array:{/var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:298}() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:298, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909345 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   6. WpFastestCache->create_preload_cache() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-wp-hook.php:298, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909410 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   7. WpFastestCache->wpfc_remote_get() /var/www/imaat/clients/tbo.com.ar/wp-content/plugins/wp-fastest-cache/wpFastestCache.php:1415, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909457 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   8. wp_remote_get() /var/www/imaat/clients/tbo.com.ar/wp-content/plugins/wp-fastest-cache/wpFastestCache.php:1464, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909496 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP   9. WP_Http->get() /var/www/imaat/clients/tbo.com.ar/wp-includes/http.php:170, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909533 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  10. WP_Http->request() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-http.php:612, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909571 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  11. wp_kses_bad_protocol() /var/www/imaat/clients/tbo.com.ar/wp-includes/class-http.php:257, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909607 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  12. wp_kses_no_null() /var/www/imaat/clients/tbo.com.ar/wp-includes/kses.php:1219, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       [Wed Nov 01 16:14:18.909642 2017] [:error] [pid 21241] [client 50.112.168.217:16331] PHP  13. preg_replace() /var/www/imaat/clients/tbo.com.ar/wp-includes/kses.php:1249, referer: https://tbo.com.ar/wp-cron.php?doing_wp_cron=1509563657.8764560222625732421875
       ```
   
 * Something I can do?
    -  This reply was modified 8 years, 7 months ago by [shamank](https://wordpress.org/support/users/shamank/).

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

The topic ‘Bug? Error messages’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [shamank](https://wordpress.org/support/users/shamank/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/bug-error-messages/#post-9642004)
 * Status: not resolved