Archived topic
Constant error: Invalid argument supplied for foreach() ... navigation.php (377)
1 reply · Started by Jesse on June 28, 2022
Here is the full error:
PHP Warning: Invalid argument supplied for foreach() in /wp-content/themes/generatepress/inc/structure/navigation.php on line 377
Can you please point me in the right direction?
Hi Jesse,
Do you have custom code added through Code Snippets, a Hook Element, or functions.php?
If so, can you disable/remove them temporarily one by one, and see if one of them is causing the issue.
For reference, a similar instance of the occurrence of the issue is this: https://generatepress.com/forums/topic/error-in-log-invalid-argument-supplied-for-foreach/#post-2224503
Kindly let us know how it goes.