Title: Cache Error
Last modified: September 12, 2024

---

# Cache Error

 *  Resolved [chefboyadee](https://wordpress.org/support/users/chefboyadee/)
 * (@chefboyadee)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-error-22/)
 * At the top of the page on this document is this error message:
   **Deprecated**:
   preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated
   in **/wordpress/plugins/jetpack/13.9-a.3/jetpack_vendor/automattic/jetpack-image-
   cdn/src/class-image-cdn.php** on line **682**
 * I don’t understand what I’m supposed to do about it, please can you help! All
   I’m finding out is that it is possibly something cache related?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcache-error-22%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Contributor [Igor Zinovyev](https://wordpress.org/support/users/zinigor/)
 * (@zinigor)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18019881)
 * Hi!
 * The deprecation notice you are seeing is caused by a minor issue in the code 
   that can potentially become a problem in the future. Most plugins have these 
   issues with code, but you shouldn’t be seeing that message from either of them
   because this message is intended to be shown to developers.
 * It’s possible that some part of the code is enabling WordPress debug mode, and
   this is why you’re getting this message on the screen. [Here are some examples of how the debug mode can be enabled](https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/).
 * It’s also possible that the server that hosts your site is configured to show
   these notices by default, but if you haven’t made any changes to it’s configuration,
   it’s unlikely to be the cause.
 *  [Bruce (a11n)](https://wordpress.org/support/users/bruceallen/)
 * (@bruceallen)
 * Happiness Engineer
 * [1 year, 8 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18019887)
 * Hi [@chefboyadee](https://wordpress.org/support/users/chefboyadee/)
 * You’re seeing the warning message because your booking plugin has error reporting
   turned on. Those deprecated warnings don’t actually affect the site in anyway.
   It’s just that the code may become deprecated in future versions of PHP and stop
   working.
 * I’m not sure why your booking plugin has the error reporting turned on, you may
   need to contact them to see if there is a way to turn that off.
 *  Plugin Support [Tamirat B. (a11n)](https://wordpress.org/support/users/tamirat22/)
 * (@tamirat22)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18033911)
 * Hello [@chefboyadee](https://wordpress.org/support/users/chefboyadee/),
 * It’s been one week since this topic was last updated. I’m going to mark this 
   thread as solved. If you have any further questions or need more help, you’re
   welcome to open another thread here. Cheers!
 *  [duygutasdan](https://wordpress.org/support/users/duygutasdan/)
 * (@duygutasdan)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18041935)
 * Hello,
 * I am experiencing a similar issue on my booking page where I use the BookingPress
   plugin. The below errors appear on the booking page. I read the answers here 
   but I couldn’t find how to clean it. Does anyone have any help?
 * **Deprecated**: preg_match(): Passing null to parameter #2 ($subject) of type
   string is deprecated in **/wordpress/plugins/jetpack/13.9-a.7/jetpack_vendor/
   automattic/jetpack-image-cdn/src/class-image-cdn.php** on line **682**
 * **Deprecated**: preg_match(): Passing null to parameter #2 ($subject) of type
   string is deprecated in **/wordpress/plugins/jetpack/13.9-a.7/jetpack_vendor/
   automattic/jetpack-image-cdn/src/class-image-cdn.php** on line **682**
 *  Plugin Support [Alin (a11n)](https://wordpress.org/support/users/alinclamba/)
 * (@alinclamba)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18052025)
 * Hi [@duygutasdan](https://wordpress.org/support/users/duygutasdan/),
 * It’s likely that error reporting is enabled on your server or by the BookingPress
   plugin. You might want to contact the BookingPress plugin authors to see if there’s
   a way to disable these notices.
 *  [duygutasdan](https://wordpress.org/support/users/duygutasdan/)
 * (@duygutasdan)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18052511)
 * Thank you [@alinclamba](https://wordpress.org/support/users/alinclamba/)
 * Here is what the BookingPress customer service said about the issue:
 * 1. I’ve checked your given URL and it shows that the error displays from the ‘
   Jetpack’ plugin which seems scanning the whole page content and doesn’t get the
   proper data from the page and that’s why it shows those warnings. Further, please
   note that ‘Jetpack’ may checking for the ‘img’ tag but BookingPress uses the 
   vueJS components which loads the image via ‘el-img’ tag and with ‘:src’ attribute
   so these may cause the conflict. However, the error are coming from the Jetpack
   plugin, we can’t do much for that. You need to contact the ‘Jetpack’ plugin and
   ask them to place some precautionary code while scanning and processing the images.
 * When you say “the bookingPress plugin autors”, do you mean the person who uses
   BookingPress on the dashboard? Or somebody else? I am using the plugin by myself.
 *  [Bruce (a11n)](https://wordpress.org/support/users/bruceallen/)
 * (@bruceallen)
 * Happiness Engineer
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18061265)
 * Hi [@duygutasdan](https://wordpress.org/support/users/duygutasdan/)
 * You can use the code snippet on this page:
 * [https://jetpack.com/blog/skip-a-image-with-photon/](https://jetpack.com/blog/skip-a-image-with-photon/)
 * To exclude that page from being cached in Jetpack’s Site Accelerator, and that
   should remove the error for you.
 *  Plugin Author [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * (@jeherve)
 * Jetpack Mechanic 🚀
 * [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18061294)
 * I wanted to follow on my colleague’s message above to let you know that we will
   also work on our end to get that deprecation warning fixed in the next Jetpack
   release. You can follow our progress on this here:
 * [https://github.com/Automattic/jetpack/pull/39685](https://github.com/Automattic/jetpack/pull/39685)

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

The topic ‘Cache Error’ is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

## Tags

 * [debugging](https://wordpress.org/support/topic-tag/debugging/)
 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)
 * [plugin](https://wordpress.org/support/topic-tag/plugin/)

 * 8 replies
 * 7 participants
 * Last reply from: [Jeremy Herve](https://wordpress.org/support/users/jeherve/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/cache-error-22/#post-18061294)
 * Status: resolved