Replies: 2
This error has occurred all time when edit or access the Google Web Stories dashboard.
PHP Fatal error: Uncaught TypeError: Google\Web_Stories\REST_API\Stories_Lock_Controller::get_lock(): Argument #1 ($post_id) must be of type int, string given, called in /srv/htdocs/wp-content/plugins/web-stories/includes/REST_API/Stories_Lock_Controller.php on line 249 and defined in /srv/htdocs/wp-content/plugins/web-stories/includes/REST_API/Stories_Lock_Controller.php:458 Stack trace: #0 /srv/htdocs/wp-content/plugins/web-stories/includes/REST_API/Stories_Lock_Controller.php(249): Google\Web_Stories\REST_API\Stories_Lock_Controller->get_lock(‘56429’) #1 /wordpress/core/6.6.2/wp-includes/rest-api.php(835): Google\Web_Stories\REST_API\Stories_Lock_Controller->delete_item_permissions_check(Object(WP_REST_Request)) #2 /wordpress/plugins/gutenberg/19.2.0/lib/compat/wordpress-6.7/class-gutenberg-rest-server.php(103): rest_send_allow_header(Object(WP_REST_Response), Object(Gutenberg_REST_Server), Object(WP_REST_Request)) #3 /wordpress/plugins/gutenberg/19.2.0/lib/compat/wordpress-6.7/class-gutenberg-rest-server.php(131): Gutenberg_REST_Server::get_response_links(Object(WP_REST_Response)) #4 /wordpress/plugins/gutenberg/19.2.0/lib/compat/wordpress-6.7/class-gutenberg-rest-server.php(28): Gutenberg_REST_Server::get_compact_response_links(Object(WP_REST_Response)) #5 /wordpress/core/6.6.2/wp-includes/rest-api/class-wp-rest-server.php(763): Gutenberg_REST_Server->response_to_data(Object(WP_REST_Response), false) #6 /wordpress/plugins/gutenberg/19.2.0/lib/compat/wordpress-6.7/class-gutenberg-rest-server.php(43): WP_REST_Server->embed_links(Array, Array) #7 /srv/htdocs/wp-content/plugins/web-stories/includes/namespace.php(225): Gutenberg_REST_Server->response_to_data(Object(WP_REST_Response), Array) #8 [internal function]: Google\Web_Stories\rest_preload_api_request(Array, ‘/web-stories/v1…’) #9 /srv/htdocs/wp-content/plugins/web-stories/includes/templates/admin/edit-story.php(158): array_reduce(Array, ‘\\Google\\Web_Sto…’, Array) #10 /srv/htdocs/wp-content/plugins/web-stories/includes/Admin/Editor.php(251): require_once(‘/srv/htdocs/wp-…’) #11 /wordpress/core/6.6.2/wp-includes/class-wp-hook.php(324): Google\Web_Stories\Admin\Editor->replace_editor(false, Object(WP_Post)) #12 /wordpress/core/6.6.2/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array) #13 /wordpress/core/6.6.2/wp-admin/post.php(182): apply_filters(‘replace_editor’, false, Object(WP_Post)) #14 {main} thrown in /srv/htdocs/wp-content/plugins/web-stories/includes/REST_API/Stories_Lock_Controller.php on line 458