• I got this error implode(): Invalid arguments passed in /home/distpnao/public_html/webraymar/wp-admin/includes/class-walker-nav-menu-edit.php on line 213

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Unfortunately, it’s difficult to discern the root cause from the error message alone. I would suggest taking a backup of your website, understanding how to restore the backup if need be, install the Health Check & Troubleshooting plugin, and disable your plugins and themes until you find the culprit. Once found you can reach out to their support to hopefully resolve the issue.

    The file line looks like this: esc_attr( implode( ' ', $item->classes ) ). From that it would seem that the filtered item classes may not be an array.

    (@howdy_mcgee)

    esc_attr( implode( ‘ ‘, $item->classes ) ) – being not an array.

    How could I then turn the filtered item classes into an array?

    • This reply was modified 4 years, 6 months ago by igiboi26.

    @igiboi26 It should be an array, maybe error log or output the $item->classes to see what it holds. In any case you could type-cast it but I wouldn’t do this without understanding why it’s no an array to being with.

    esc_attr( implode( ' ', (array)$item->classes ) )

    @howdy_mcgee thank you for replying. I appreciate it.

    • This reply was modified 4 years, 6 months ago by igiboi26.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error class-walker-nav-menu-edit.php’ is closed to new replies.