• Resolved flavorjunction

    (@flavorjunction)


    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!

    http://wordpress.org/extend/plugins/instapress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tkrammer

    (@tkrammer)

    Hi,

    could you give me the domain of your website so I can take a close look into that?

    Thanks.

    Thread Starter flavorjunction

    (@flavorjunction)

    Flavorjunction.tk

    I get that error when I try pressing “next” for paging.

    Thank you,

    Xavier

    Plugin Author tkrammer

    (@tkrammer)

    Hi,

    the issue is caused by your outdated version of jQuery. You are using 1.3.2 and you’ll need at least 1.4.0 to get your gallery to work.
    Please update your jQuery.

    Thanks.

    Thread Starter flavorjunction

    (@flavorjunction)

    Just updated to jquery 1.7.1

    Thank you, I should have checked that first.

    Appreciate the help!

    Xavier

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Instapress] PHP error "Invalid argument supplied for foreach()"’ is closed to new replies.