[wp-trac] [WordPress Trac] #51018: PHP Notice thrown when searching for certain terms via the Gutenberg block directory
WordPress Trac
noreply at wordpress.org
Sat Aug 15 12:42:40 UTC 2020
#51018: PHP Notice thrown when searching for certain terms via the Gutenberg block
directory
---------------------------+-----------------------------
Reporter: TwentyZeroTwo | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.5
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
**PHP Version**: 7.4.3
**Steps to reproduce**:
Open up the editor with Gutenberg enabled, search for the block "free".
**Error thrown**:
{{{
[15-Aug-2020 12:32:44 UTC] PHP Notice: Trying to access array offset on
value of type bool in C:\wamp64\www\snap\wp-includes\rest-api\endpoints
\class-wp-rest-block-directory-controller.php on line 122
[15-Aug-2020 12:32:44 UTC] PHP Stack trace:
[15-Aug-2020 12:32:44 UTC] PHP 1. {main}()
C:\wamp64\www\snap\index.php:0
[15-Aug-2020 12:32:44 UTC] PHP 2. require()
C:\wamp64\www\snap\index.php:17
[15-Aug-2020 12:32:44 UTC] PHP 3. wp() C:\wamp64\www\snap\wp-blog-
header.php:16
[15-Aug-2020 12:32:44 UTC] PHP 4. WP->main() C:\wamp64\www\snap\wp-
includes\functions.php:1285
[15-Aug-2020 12:32:44 UTC] PHP 5. WP->parse_request() C:\wamp64\www\snap
\wp-includes\class-wp.php:745
[15-Aug-2020 12:32:44 UTC] PHP 6. do_action_ref_array()
C:\wamp64\www\snap\wp-includes\class-wp.php:388
[15-Aug-2020 12:32:44 UTC] PHP 7. WP_Hook->do_action()
C:\wamp64\www\snap\wp-includes\plugin.php:544
[15-Aug-2020 12:32:44 UTC] PHP 8. WP_Hook->apply_filters()
C:\wamp64\www\snap\wp-includes\class-wp-hook.php:311
[15-Aug-2020 12:32:44 UTC] PHP 9. rest_api_loaded() C:\wamp64\www\snap
\wp-includes\class-wp-hook.php:287
[15-Aug-2020 12:32:44 UTC] PHP 10. WP_REST_Server->serve_request()
C:\wamp64\www\snap\wp-includes\rest-api.php:338
[15-Aug-2020 12:32:44 UTC] PHP 11. WP_REST_Server->dispatch()
C:\wamp64\www\snap\wp-includes\rest-api\class-wp-rest-server.php:376
[15-Aug-2020 12:32:44 UTC] PHP 12.
WP_REST_Block_Directory_Controller->get_items() C:\wamp64\www\snap\wp-
includes\rest-api\class-wp-rest-server.php:1050
[15-Aug-2020 12:32:44 UTC] PHP 13.
WP_REST_Block_Directory_Controller->prepare_item_for_response()
C:\wamp64\www\snap\wp-includes\rest-api\endpoints\class-wp-rest-block-
directory-controller.php:98
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51018>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list