PHP Fatal error: Cannot use object of type stdClass as array
-
Hi There,
We get the following fatal error when an admin visits Plugins page. Also, ‘View Details’ link/popup doesn’t work.
What could be the problem?[04-Jun-2020 22:19:53 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /home/public_html/wp-content/plugins/wp-private-content-plus/classes/class-wppcp-admin-stats.php:286
Stack trace:
#0 /home/public_html/wp-content/plugins/wp-private-content-plus/classes/class-wppcp-admin-stats.php(23): WPPCP_Admin_Stats->get_widget_stats()
#1 /home/public_html/wp-content/plugins/wp-private-content-plus/classes/class-wppcp-settings.php(1359): WPPCP_Admin_Stats->generate_stats()
#2 /home/public_html/wp-includes/class-wp-hook.php(287): WPPCP_Settings->wppcp_deactivate_popup(”)
#3 /home/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array)
#4 /home/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#5 /home/public_html/wp-admin/admin-footer.php(78): do_action(‘admin_footer’, ”)
#6 /home/public_html/wp-admin/plugins.php(648): require_once(‘/home/p…’)
#7 {main}
thrown in /home/public_html/wp-content/plugins/wp-private-content-plus/classes/class-wppcp-admin-stats.php on line 286Status details…
WordPress environment
WooCommerce version: 4.2.0
WooCommerce REST API package: 1.0.8 /home/public_html/wp-content/plugins/woocommerce/packages/woocommerce-rest-api
WooCommerce Blocks package: 2.5.16 /home/public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/
Action Scheduler package: 3.1.6 /home/public_html/wp-content/plugins/woocommerce/packages/action-scheduler
WooCommerce Admin package: 1.2.3 /home/public_html/wp-content/plugins/woocommerce/packages/woocommerce-admin
Log directory writable: /home/public_html/wp-content/uploads/wc-logs/
WordPress version: 5.4.1
WordPress multisite: –
WordPress memory limit: 256 MB
WordPress debug mode: –
WordPress cron: Y
Language: en_NZ
External object cache: –Server environment
Server info: Apache
PHP version: 7.2.30
PHP post max size: 8 MB
PHP time limit: 90
PHP max input vars: 1000
cURL version: 7.69.1, OpenSSL/1.1.1g
SUHOSIN installed: –
MySQL version: 5.7.27
Max upload size: 8 MB
Default timezone is UTC:
fsockopen/cURL: Y
SoapClient: Y
DOMDocument: Y
GZip: Y
Multibyte string: Y
Remote post: Y
Remote get: YWooCommerce database version: 4.2.0
- The topic ‘PHP Fatal error: Cannot use object of type stdClass as array’ is closed to new replies.