{"id":6006519,"date":"2015-04-12T15:57:33","date_gmt":"2015-04-12T15:57:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/foreach-error-message\/"},"modified":"2016-08-24T14:40:36","modified_gmt":"2016-08-24T14:40:36","slug":"foreach-error-message","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/foreach-error-message\/","title":{"rendered":"Foreach &#8211;  Error Message"},"content":{"rendered":"<p>Hi, nice plugin&#8230;thx! I&#8217;m troubleshooting this error message, below. Any ideas what the problem might be? thx.  <\/p>\n<p>[11-Apr-2015 23:27:20 UTC] PHP Warning:  Invalid argument supplied for foreach() in \/home\/lamplig9\/public_html\/wp-content\/plugins\/wp-backitup\/lib\/includes\/class-job.php on line 618<\/p>\n<p>Here&#8217;s the code from class-job.<\/p>\n<p>if ( is_array( $value ) ) {<\/p>\n<p>foreach ( $value as $k =&gt; $v ) {<\/p>\n<p>if ( is_array( $v ) ) {<\/p>\n<p>$value[$k] = $this-&gt;wpb_slash( $v );<\/p>\n<p>} else {<\/p>\n<p>$value[$k] = addslashes( $v );<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>} else {<\/p>\n<p>$value = addslashes( $value );<\/p>\n<p>}<\/p>\n<p>return $value;<\/p>\n<p>}<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-backitup\/<\/p>\n","protected":false},"template":"","class_list":["post-6006519","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6006519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6006519\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6006519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}