publishpress / PublishPress-Blocks

PublishPress Blocks adds the missing blocks and configuration you need to build professional websites. Take the control of the new Gutenberg editor with user edition profile configuration and 20+ new blocks and options.
15 stars 8 forks source link

Uncaught Error: Cannot use object of type WP_Error as array #1354

Closed htmgarcia closed 10 months ago

htmgarcia commented 10 months ago
An error of type E_ERROR was caused in line 1129 of the file /wp-content/plugins/advanced-gutenberg/assets/blocks/recent-posts/block.php. Error message: Uncaught Error: Cannot use object of type WP_Error as array in /wp-content/plugins/advanced-gutenberg/assets/blocks/recent-posts/block.php:1129
Stack trace:
#0 /wp-includes/rest-api/endpoints/class-wp-rest-controller.php(439): advgbGetSeriesOrder(Array, 'series_order', Object(WP_REST_Request), 'page')
#1 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1975): WP_REST_Controller->add_additional_fields_to_object(Array, Object(WP_REST_Request))
#2 /wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request))
#3 /wp-includes/rest-api/class-wp-rest-server.php(1193): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request))
#4 /wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_

Reported by a customer: https://secure.helpscout.net/conversation/2416542715/212873?folderId=4022715 (private link)