Skip to content

Remove "Invalid argument supplied for foreach()" warnings when the menu isn't set - #22

Closed
mmcev106 wants to merge 1 commit into
trustedlogin:mainfrom
mmcev106:master
Closed

Remove "Invalid argument supplied for foreach()" warnings when the menu isn't set#22
mmcev106 wants to merge 1 commit into
trustedlogin:mainfrom
mmcev106:master

Conversation

@mmcev106

Copy link
Copy Markdown

No description provided.

@DrewAPicture DrewAPicture left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What would be a circumstance (that isn't voiding the warranty) where the core $menu global isn't set?

@mmcev106

Copy link
Copy Markdown
Author

I'm not sure... I spent about a half hour trying to identify the scenario in our test environment but didn't have any luck. I do know we're getting a ton of these lines in our production logs:

PHP Warning: Invalid argument supplied for foreach() in /app001/www/emerge/wp-content/plugins/remove-dashboard-access-for-non-admins/inc/class.rda-remove-access.php on line 93

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants