• I am getting a warning every post on i creates and it shows at the top of each post.

    Warning: Invalid argument supplied for foreach() in /home/truitt66/public_html/shoppershops.net/wp-content/plugins/affiliate-easel-for-amazon/affiliate-easel.php on line 790

    Here is line 788-794

    function getSearchpage(){
    $easel_atts=get_option(‘widget_easelwidget’);
    foreach($easel_atts as $att){
    if(is_array($att) && array_key_exists(‘searchpage’, $att)){$searchpage=$att[‘searchpage’];} //may be multiple, last one is fine.
    }
    return $searchpage;
    }

    Can someone please help me fixed this. Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • go to plugin support and ask for help … the plugin writer have sure for your answer,,,,,,..

    I’m not sure exactly what the getSearchpage functionality is or what it does, but I don’t think I’m using it.

    I replaced the function with the following below and everything works fine. The getSearchpage functionality is checked if it it exists everywhere else anyway in the code so it was safe to just return null. Hope this helps.

    function getSearchpage(){
    return NULL;
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to fixed this warning’ is closed to new replies.