You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you set links to open as pages in Wordpress the get_post_ancestors is not working (return null instead of array()) which caused this error: Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/..../wp-includes/nav-menu-template.php on line 607 Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/..../wp-includes/nav-menu-template.php on line 607
I fixed this by adding this after line 445 of WikiEmbed.php: $post->ancestors = array();
The text was updated successfully, but these errors were encountered:
When you set links to open as pages in Wordpress the get_post_ancestors is not working (return null instead of array()) which caused this error:
Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/..../wp-includes/nav-menu-template.php on line 607 Warning: in_array() expects parameter 2 to be array, null given in /var/www/vhosts/..../wp-includes/nav-menu-template.php on line 607
I fixed this by adding this after line 445 of WikiEmbed.php:
$post->ancestors = array();
The text was updated successfully, but these errors were encountered: