Purchase OIOpublisher now for just $47.

Take control of your ad space.

Click here to purchase



    my problem is if I set the start time, for example, to 06/30/2015 15:00:00 and the duration to 1 day the ad
    starts automatically at this time. but the ad doesn't expire automatically the next day. The ad is still visible.

    The ad should expire at 07/01/2015 14:59:59, correct?

    I set all permissions which are described in this tutorial:
    http://forum.oiopublisher.com/discussion/549/troubleshooting/#Item_3 also in this
    http://forum.oiopublisher.com/discussion/549/troubleshooting/#Item_4 but nothing happend.

    I use wordpress 4.2.2, I deactivated the caching module but nothing changed.

    Can you please help me?

    Need help?  Quick start guide | Troubleshooting | All help topics


    I tested what happened when I change the server time to the next day. the add is not visible for 5-10 seconds. it seems like the ad starts again.

    Need help?  Quick start guide | Troubleshooting | All help topics

    here are the result from when I running the test.php?do=cron.

    HTTP/1.1 401 Unauthorized
    Date: Wed, 01 Jul 2015 21:38:55 GMT
    Server: silence_is_golden
    WWW-Authenticate: Basic realm="Protected Area"
    Content-Length: 381
    Connection: close
    Content-Type: text/html; charset=iso-8859-1


    This server could not verify that you
    are authorized to access the document
    requested. Either you supplied the wrong
    credentials (e.g., bad password), or your
    browser doesn't understand how to supply
    the credentials required.

    Need help?  Quick start guide | Troubleshooting | All help topics

    if I deactivate the .htaccess the result is:
    HTTP/1.1 200 OK
    Date: Wed, 01 Jul 2015 21:47:20 GMT
    Server: silence_is_golden
    X-Powered-By: PHP/5.4.16
    Cache-Control: max-age=0, no-cache
    Content-Length: 7
    Connection: close
    Content-Type: text/html; charset=UTF-8


    Need help?  Quick start guide | Troubleshooting | All help topics
    • CommentAuthorSimon
    • CommentTimeJul 5th 2015 edited
    Project Admin

    The scheduled task that controls ad expiration should fire every couple of hours, so it won't necessarily expire immediately on one day, but should at least do so within 1 day and 2 hours.

    If you want to run that more often, open OIO's "include/install.php" file and search for the following line of code:

    $oiopub_cron->add_job(array(&$oiopub_cron, 'purchase_expire'), time()+3600, 7200);

    Change 7200 to the number of seconds you want a check to occur after (e.g. 900 would be once every 15 minutes), save it and then click on the reset all link in the scheduled tasks area.

    It does look as though the htaccess file you referenced might be causing an issue with the cron job, based on the results (password protected area?).

    Which folder is that htaccess file located in, on your site? Are you able to share what's in that file?

    Need help?  Quick start guide | Troubleshooting | All help topics