Make WordPress Core

Opened 2 years ago

Last modified 8 months ago

#51986 closed 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's profile slaFFik Owned by:
Milestone: 6.1 Priority: normal
Severity: normal Version: 5.6
Component: Editor Keywords: php8 has-patch has-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
2 years 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.