foreach error by author login page
-
Hi,
I do not know from which version, but the following error is displayed on the login page of author authority.
Warning: Invalid argument supplied for foreach() in path/to/wp-content/plugins/jetpack/_inc/lib/admin-pages/class-jetpack-about-page.php on line 97
97:foreach ( $submenu[‘jetpack’] as $index => $menu_item ) {I think that I can do it if I do the following.
if(is_array($submenu) && isset($submenu[‘jetpack’])){The same problem has occurred elsewhere.
Warning: Invalid argument supplied for foreach() in path/to/wp-content/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-react-page.php on line 87
87:foreach ( $menu_order as $index => $item ) {My enviorment.
WordPress 5.2.2
PHP Version 7.1.2
Jetpack Version 7.4.1Could you please fix this?
- The topic ‘foreach error by author login page’ is closed to new replies.