Title: PHP Warning: array to string conversion
Last modified: May 27, 2026

---

# PHP Warning: array to string conversion

 *  Resolved [webtrainingwheels](https://wordpress.org/support/users/webtrainingwheels/)
 * (@webtrainingwheels)
 * [16 hours, 11 minutes ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-9/)
 * Hello! I am running Foobox v 2.7.43 and am still getting the PHP Warning related
   to WP Rocket that was previously reported here: [https://wordpress.org/support/topic/im-getting-a-php-warning-related-to-wprocket/](https://wordpress.org/support/topic/im-getting-a-php-warning-related-to-wprocket/)
   `
   PHP Warning: Array to string conversion in /foobox-image-lightbox/compatibility/
   class-wprocket.php on line 20`Any plans to address this? Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [bradvin](https://wordpress.org/support/users/bradvin/)
 * (@bradvin)
 * [1 hour, 46 minutes ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-9/#post-18920789)
 * Thanks for the report.
 * We identified the cause: WP Rocket’s inline defer exclusions filter is passing
   an array, while FooBox was still handling that value as a string in the WP Rocket
   compatibility layer. We’ve patched this so the warning will be resolved in the
   next FooBox update.
 * Please try it out here : [https://downloads.wordpress.org/plugin/foobox-image-lightbox.2.7.44.zip](https://downloads.wordpress.org/plugin/foobox-image-lightbox.2.7.44.zip)

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-array-to-string-conversion-9%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/foobox-image-lightbox/assets/icon-256x256.gif?rev=2667030)
 * [Lightbox & Modal Popup WordPress Plugin - FooBox](https://wordpress.org/plugins/foobox-image-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/foobox-image-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/foobox-image-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/foobox-image-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/foobox-image-lightbox/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bradvin](https://wordpress.org/support/users/bradvin/)
 * Last activity: [1 hour, 46 minutes ago](https://wordpress.org/support/topic/php-warning-array-to-string-conversion-9/#post-18920789)
 * Status: resolved