[Plugin: Facebook Comments to WordPress] Warning: Invalid argument supplied for foreach() in /home/s
-
Been getting this error:
Warning: Invalid argument supplied for foreach() in /home/safezone/dudelol.com/wp-content/plugins/facebook-import-comments/classes/FacebookCommentImporter.php on line 187The fix to make this error go away is to change:
foreach ($comments as $num => $comment) { $this->importComment($comment, $parentCommentId); }
to this:
if(isset($comments)) { foreach ($comments as $num => $comment) { $this->importComment($comment, $parentCommentId); } }
I am currently running this plugin on my funny pictures website and I am not sure if this plugin will continue getting comments into the database or not, this will at least make the error msg go away.
https://www.ads-software.com/extend/plugins/facebook-import-comments/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[Plugin: Facebook Comments to WordPress] Warning: Invalid argument supplied for foreach() in /home/s’ is closed to new replies.