[Plugin: Instapress] PHP error "Invalid argument supplied for foreach()"
-
Hey there, I just switched from using the Instapress widget and have put it into a “Text/Arbitrary HTML” widget because I had some conflicts with my theme and inputting the <?php echo_shortcode.
The first page of 6 images will show, but upon clicking next I get the error:
Warning: Invalid argument supplied for foreach() in /home/a8089298/public_html/wp-content/plugins/instapress/instagram.php on line 238
The line in instagram.php is:
foreach($values as $key=>$value)
{
if(is_numeric($value))
{
$values[$key] = intval($value);
}
}
$values[‘url’] = false;
$values[‘max_id’] = $_POST[‘nextMaxId’];echo $this->shortcode($values);
die(); // this is required to return a proper result
}The above shows line 238 through 250, the opening of the code on the previous lines is
function ajax_instapress_paging()
{
$values = $_POST[‘config’];I don’t know what I am doing wrong as I am still learning php and javascript. Anyone know what to do to rid the problem? I began using the shortcode because I wanted paging. The shortcode I put in is [instapress userid=”self” piccount=”6″ effect=”fancybox” paging=”1″ title=”1″ size=”150″]
Thanks for helping out!
The topic ‘[Plugin: Instapress] PHP error "Invalid argument supplied for foreach()"’ is closed to new replies.