WordPress.org

Make WordPress Core

Opened 12 months ago

Last modified 3 months ago

#51986 new defect (bug)

PHP Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in class-wp-rest-server.php — at Version 1

Reported by: slaFFik Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 5.6
Component: Editor Keywords: php8 has-patch needs-unit-tests
Focuses: rest-api Cc:

Description (last modified by desrosj)

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.

Change History (1)

#1 @desrosj
12 months ago

  • Component changed from REST API to Editor
  • Description modified (diff)
  • Focuses rest-api added
  • Keywords reporter-feedback added

Hi @slaFFik!

Do you have any plugins registering custom REST API routes? Any plugins that are registering custom block types?

Note: See TracTickets for help on using tickets.