Title: CRITICAL ERROR, PHP WP_Error
Last modified: March 18, 2024

---

# CRITICAL ERROR, PHP WP_Error

 *  Resolved [totorosk8](https://wordpress.org/support/users/totorosk8/)
 * (@totorosk8)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/)
 * Hello, when I try to enter the plugin settings in the admin panel i end up with
   this error :
 * PHP Fatal error: Uncaught Error: Cannot use object of type WP_Error as array 
   in /home/my access path/my access path/my access path/wp-content/plugins/product-
   blocks/classes/Functions.php:4053
   Stack trace: 0 /home/my access path/my access
   path/my access path/wp-content/plugins/product-blocks/addons/compare/Compare.
   php(928): WOPB\Functions->svg_icon(‘compare_6’) 1 /home/my access path/my access
   path/my access path/wp-content/plugins/product-blocks/addons/compare/Compare.
   php(1234): WOPB\Compare->compare_icons() 2 /home/my access path/my access path/
   my access path/wp-content/plugins/product-blocks/addons/compare/Compare.php(29):
   WOPB\Compare->default_settings() 3 /home/my access path/my access path/my access
   path/wp-content/plugins/product-blocks/addons/compare/init.php(55): WOPB\Compare-
   >__construct() 4 /home/my access path/my access path/my access path/wp-includes/
   class-wp-hook.php(324): wopb_get_compare_settings(Array) 5 /home/my access path/
   my access path/my access path/wp-includes/plugin.php(205): WP_Hook->apply_filters(
   Array, Array) 6 /home/my access path/my access path/my access path/wp-content/
   plugins/product-blocks/classes/Initialization.php(226): apply_filters(‘wopb_settings’,
   Array) 7 /home/my access path/my access path/my access path/wp-includes/class-
   wp-hook.php(324): WOPB\Initialization->register_scripts_option_panel_callback(‘
   toplevel_page_w…’) 8 /home/my access path/my access path/my access path/wp-includes/
   class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 9 /home/my access
   path/my access path/my access path/wp-includes/plugin.php(517): WP_Hook->do_action(
   Array) 10 /home/my access path/my access path/my access path/wp-admin/admin-header.
   php(118): do_action(‘admin_enqueue_s…’, ‘toplevel_page_w…’) 11 /home/my access
   path/my access path/my access path/wp-admin/admin.php(239): require_once(‘/home/
   my access path…’) 12 {main}
 * thrown in /home/my access path/my access path/my access path/wp-content/plugins/
   product-blocks/classes/Functions.php on line 4053
 * 
   Otherwise the plugin seems to work because i can create a product gallery and
   configure it.

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

 *  Plugin Support [Owadud](https://wordpress.org/support/users/owadud655/)
 * (@owadud655)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17508134)
 * Hi,
   Thanks for reaching out. Can you please check if you’re using our latest 
   version 3.1.11? Additionally, Would you please share some information like themes,
   plugin, builder etc you’re using on your site? It will help me to replicate the
   issue and find out a solution for it.RegardsOwadud
 *  Thread Starter [totorosk8](https://wordpress.org/support/users/totorosk8/)
 * (@totorosk8)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17508172)
 * Hi, thanks for your fast answer, i’m using the latest version 3.1.11, the theme
   is Fotogenic (free version) by Mystery Themes and i use the WP standard builder.
   
   The plugins are updated to the latest version :– Advanced Custom Fields by WP
   Engine– BEAR – Bulk Editor and Products Manager Professional for WooCommerce 
   by realmag777– Carousel Slider Block for Gutenberg by Virgildia– CMP – Coming
   Soon & Maintenance Plugin by NiteoThemes– Complianz | GDPR/CCPA Cookie Consent
   by Really Simple Plugins– Easy Accordion by ShapedPlugin L[L](https://shapedplugin.com/)
   C– LoftLoader by Loft.Ocean– Matomo Analytics by Matomo– Meow Gallery by Jordy
   Meow– Multiple Domain Mapping on single site by Matthias Wagner – FALKEmedia–
   Ninja Forms by Saturday Drive– OMGF by Daan de Daan.dev– Product Slider for WooCommerce
   by ShapedPlugin LLC– ProductX by wpxpo– WooCommerce by Automattic– Yoast Duplicate
   Post by Enrico Battocchi & l’équipe YoastThanks, Kind regards
    -  This reply was modified 2 years, 2 months ago by [totorosk8](https://wordpress.org/support/users/totorosk8/).
 *  Thread Starter [totorosk8](https://wordpress.org/support/users/totorosk8/)
 * (@totorosk8)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17509511)
 * update : i was on PHP v8.1 and i just tried with PHP v8.3 and still the same 
   problem.
   I have the latest version of wordpress.
 *  [Mahmud](https://wordpress.org/support/users/aamzahid/)
 * (@aamzahid)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17510817)
 * Hi [@totorosk8](https://wordpress.org/support/users/totorosk8/),
 * Thank you for your thorough feedback. We will investigate this issue, and we 
   aim to have it resolved in our upcoming update.
 *  Plugin Contributor [Anik Biswas](https://wordpress.org/support/users/anik4e/)
 * (@anik4e)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17511419)
 * Hello [@totorosk8](https://wordpress.org/support/users/totorosk8/),
 * We already solved this problem and released an update **3.1.12** . So please 
   check latest version and make sure your problem is solved.
 * Thanks.
 *  Thread Starter [totorosk8](https://wordpress.org/support/users/totorosk8/)
 * (@totorosk8)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17511777)
 * Perfect ! Thanks a lot guys 😉
   Kind regards
 *  [Mahmud](https://wordpress.org/support/users/aamzahid/)
 * (@aamzahid)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17513597)
 * Glad to help you. If you could spare a moment, we would greatly appreciate it
   if you could share your thoughts with us by leaving a review.
 * You can leave your review here: [ProductX](https://wordpress.org/support/plugin/product-blocks/reviews/)
 * Thank you in advance for your time and feedback.

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

The topic ‘CRITICAL ERROR, PHP WP_Error’ is closed to new replies.

 * ![](https://ps.w.org/product-blocks/assets/icon-256x256.png?rev=3118250)
 * [WowStore – Store Builder & Product Blocks for WooCommerce](https://wordpress.org/plugins/product-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/product-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/product-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/product-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/product-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/product-blocks/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Mahmud](https://wordpress.org/support/users/aamzahid/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/critical-error-php-wp_error/#post-17513597)
 * Status: resolved