• Resolved mancsumit

    (@mancsumit)


    Hi,

    I have installed and activated the plugin “WP Control”. And I have also added my PHP code into php cron event Tab.

    The Problem I am facing that when I run the code on my local server and execute the cron script from plugin it works perfect. But When I try to do same from my Client’s server The API call fails without giving any error. For testing I have added the mail function into the cron script and I am getting mails on both servers. But API code and the wp_insert_user function in the Script not working on my clients server, but working fine on my local server.

    Even if I try to hit the script manually using the link it works fine. Its just not working when the script is executed via CRON TAB.

    Please help.

    Thanks

    • This topic was modified 8 years, 1 month ago by mancsumit.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Sorry you’re having a problem. I’d first of all check the PHP error logs on your server to see if a fatal error is occurring somewhere.

    Secondly, if BasicAuth is in place on that server then triggering a cron event won’t work. I’m hoping to be able to get around this in a future version on WP Crontrol.

    Otherwise you’re going to need to do some debugging to see what’s up with that particular server.

    Thread Starter mancsumit

    (@mancsumit)

    Hello John,

    Thanks for replying. Actually I have checked the logs, there aren’t any Error or warning messages related to Cron Script or functions that I am using.

    For the Basic Auth check can you elaborate more on this . . ?

    And till that time I am debugging the Script and Server for more information.

    Thanks

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    BasicAuth is when you place a username and password protection in place on a site. You may have it on your site while you’re developing it.

    Beyond that I’m not sure what to suggest. You could try posting in the main support forum, but cron isn’t an easy thing to debug.

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

The topic ‘Issue Calling API and inserting records into DB’ is closed to new replies.