Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase

    • CommentAuthorzalee
    • CommentTimeJun 17th 2008
     

    Hi,

    When I try to view Purchases > Custom I got this error

    Warning: Invalid argument supplied for foreach() in /home/XXXXX/public_html/XXXXX.com/wp-content/plugins/XXX/admin/custom.php on line 19

    How to fix it?

    Thanks.

    • CommentAuthorSimon
    • CommentTimeJun 17th 2008
     
    Project Admin

    Can you try re-downloading the plugin and upload admin/custom.php again now, and let me know whether that solves the problem.

    • CommentAuthorzalee
    • CommentTimeJun 17th 2008
     

    ...re-downloading the plugin and upload admin/custom.php, but still not solving the problems.

    • CommentAuthorSimon
    • CommentTimeJun 17th 2008
     
    Project Admin

    Hmmm...I'd double-check it if I were you. The fix I made made the difference to the demo site.

    You can also open admin/custom.php and check for the existence of this line near the top of the page:

    global $oiopub_lang, $oiopub_set, $oiopub_statusmenu1_array;

    • CommentAuthorzalee
    • CommentTimeJun 19th 2008
     

    I still don't understand how to fix it. It's only when viewing the Purchases > Custom and the other function is fine..

    • CommentAuthorSimon
    • CommentTimeJun 19th 2008 edited
     
    Project Admin

    The error was caused by a missing global variable in the admin/custom.php file. Replacing that file with the one in the latest download should fix it. If not, then I'd suggest uploading the entire plugin again just to be safe.

    • CommentAuthorzalee
    • CommentTimeJun 19th 2008
     

    My plugin is ok now! I just put the code on line 13 after the

    //custom manager
    function oiopub_custom_manager() {

    Thanks Simon for you support.