Fatal error – Cannot use object of type WP_Error as array
-
The plugin has a fatal crash when trying to select a template.
Steps to reproduce it:
– Fresh install of WordPress 5.8
– Install the Pricing Table Plugin plugin
– Start the tour
– Click ‘Next’ button to clone selected template.
– Fatal error!More info:
WordPress version 5.8
Current theme: Twenty Twenty-One (version: 1.4)
Current plugin: ARPrice Lite (version 3.5)
PHP version 7.4.20Error Details
=============
An error of type E_ERROR was caused in line 2256 of the file /var/www/html/wp-content/plugins/arprice-responsive-pricing-table/arprice-responsive-pricing-table.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/html/wp-content/plugins/arprice-responsive-pricing-table/arprice-responsive-pricing-table.php:2256
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(292): ARPlite_PricingTable->arplite_enqueue_inline_editor_js(”)
#1 /var/www/html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(”, Array)
#2 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#3 /var/www/html/wp-content/plugins/arprice-responsive-pricing-table/arprice-responsive-pricing-table.php(2096): do_action(‘arplite_enqueue…’)
#4 /var/www/html/wp-includes/class-wp-hook.php(292): ARPlite_PricingTable->set_js(‘toplevel_page_a…’)
#5 /var/www/html/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
#6 /var/www/html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
#7 /var/www/html/wp-admin/admin-header.php(102): do_action(‘admin_enqueue_s…’, ‘toplevel_page_a…’)
#8 /var/www/html/wp-admin/admin.php(239): require_once(‘`
The topic ‘Fatal error – Cannot use object of type WP_Error as array’ is closed to new replies.