[wp-trac] [WordPress Trac] #51986: PHP Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in class-wp-rest-server.php
WordPress Trac
noreply at wordpress.org
Wed Dec 9 13:46:23 UTC 2020
#51986: PHP Warning: array_intersect_key(): Expected parameter 1 to be an array,
string given in class-wp-rest-server.php
-------------------------------+------------------------------
Reporter: slaFFik | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.6
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses: rest-api
-------------------------------+------------------------------
Changes (by desrosj):
* keywords: => reporter-feedback
* focuses: => rest-api
* component: REST API => Editor
Old description:
> When editing a page in the Gutenberg editor (that is built-in, not the
> plugin), I see this Warning on a page:
> ```
> <b>Warning</b>: array_intersect_key(): Expected parameter 1 to be an
> array, string given in <b>/home/cosydale/public_html/ovirium.com/wp-
> includes/rest-api/class-wp-rest-server.php</b> on line <b>1402</b><br />
> ```
>
> Disable REST plugin is not installed.
New description:
When editing a page in the Gutenberg editor (that is built-in, not the
plugin), I see this Warning on a page:
{{{
<b>Warning</b>: array_intersect_key(): Expected parameter 1 to be an
array, string given in <b>/home/cosydale/public_html/ovirium.com/wp-
includes/rest-api/class-wp-rest-server.php</b> on line <b>1402</b><br />
}}}
Disable REST plugin is not installed.
--
Comment:
Hi @slaFFik!
Do you have any plugins registering custom REST API routes? Any plugins
that are registering custom block types?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51986#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list