Archived topic
Error - Invalid argument supplied for foreach
1 reply · Started by Remez Sasson on October 4, 2018
I have an error log in WordPress that keep repeating the same error. I don't know if has to do with WordPress or Generatepress. This is the error:
"PHP Warning: Invalid argument supplied for foreach() in /home/---/public_html/blog/wp-includes/rest-api/endpoints/class-wp-rest-controller.php on line 292"
How can I fix it?
Thank you,
Hi there,
That doesn't look like a GP error.
Can you try #1 here to eliminate any plugin conflicts first?
https://docs.generatepress.com/article/debugging-tips/
If that doesn't help, try #4 in the same article.
Let me know :)