[wp-trac] [WordPress Trac] #52008: Warning: array_intersect_key()

WordPress Trac noreply at wordpress.org
Thu Dec 10 06:41:27 UTC 2020


#52008: Warning: array_intersect_key()
--------------------------+-----------------------------
 Reporter:  AndrewNZ      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.6
 Severity:  normal        |   Keywords:  needs-testing
  Focuses:                |
--------------------------+-----------------------------
 I see this bug is already reported ticket number: #51986, but I have some
 more information that may be useful.

 After my site was updated to WordPress 5.6, I started to see an error when
 I Exit to Dashboard from the Elementor page builder when I am editing a
 post.

 **Warning: array_intersect_key(): Expected parameter 1 to be an array,
 string given in /wp-includes/rest-api/class-wp-rest-server.php on line
 1402.
 **
 This error only show on a blank page for a few seconds then the edit page
 screen shows up.

 There does not seem to be any problem for the public facing part of the
 site.

 In researching the error I came across this post:
 https://wordpress.org/support/topic/warning-key-expects-parameter-1-to-be-
 array-string-given-in-settings-text/

 Which talked about "special chars it raises the error". I realised that I
 am using post categories for languages on the site with special characters
 for example "Galería de Imágenes", which is the posts I am creating and
 saving.

 Since I have been using these Post Categories for 18 months, with no
 problem, I assume something in the recent update to WordPress 5.6 has
 caused the problem.

 URL: [https://newwavesoflight.org/]

 At this time I have not tried disabling plugins or themes, as I would need
 to clone to a staging site before I attempt such actions. If that would be
 useful please let me know as I can do that if needed.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52008>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list