Opened 4 years ago
Closed 4 years ago
#52008 closed defect (bug) (duplicate)
Warning: array_intersect_key()
Reported by: | AndrewNZ | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.6 |
Component: | REST API | Keywords: | needs-testing |
Focuses: | Cc: |
Description
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.
Hi @AndrewNZ,
Welcome to Trac!
This seems like a duplicate report of #51986. I’m going to close this one out so that we can keep all related conversation in one location.
If I’m mistaken, feel free to reopen this with more details.