PHP Fatal error aftter Plugin activation
-
Hey,
after activating your plugin i receive the error message:
PHP Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /home/wp/disk/wordpress/wp-includes/rest-api/endpoints/class-wp-rest-controller.php:433
Here the error log from WooCommerce:
2020-11-06T18:11:02+00:00 CRITICAL Uncaught Error: Cannot use object of type stdClass as array in /home/wp/disk/wordpress/wp-includes/rest-api/endpoints/class-wp-rest-controller.php:433
Stack trace:
#0 /home/wp/disk/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Leaderboards.php(413): WP_REST_Controller->add_additional_fields_to_object(Object(stdClass), Object(WP_REST_Request))
#1 /home/wp/disk/wordpress/wp-content/plugins/woocommerce/packages/woocommerce-admin/src/API/Leaderboards.php(392): Automattic\WooCommerce\Admin\API\Leaderboards->prepare_item_for_response(Object(stdClass), Object(WP_REST_Request))
#2 /home/wp/disk/wordpress/wp-includes/rest-api/class-wp-rest-server.php(1050): Automattic\WooCommerce\Admin\API\Leaderboards->get_allowed_items(Object(WP_REST_Request))
#3 /home/wp/disk/wordpress/wp-includes/rest-api.php(464): WP_REST_Server->dispatch(Object(WP_REST_Request))
#4 /home/wp/disk/wordpress/wp-includes/rest-api.php(1984): rest_do_request(Object(WP_REST_Request))
#5 [internal function]: rest_preload_ap in /home/wp/disk/wordpress/wp-includes/rest-api/endpoints/class-wp-rest-controller.php in Zeile 433As a result, the WooCommerce Dashboard is not displayed anymore and I can’t create new pages on my site.
Can you please help me?
Best regards,
MarcThe page I need help with: [log in to see the link]
The topic ‘PHP Fatal error aftter Plugin activation’ is closed to new replies.