• It started with WP-offload Ses throwing a message that cron is not working so mails are in que. Then I downloaded WP Crontrol plugin which has below error message

    ……There was a problem spawning a call to the WP-Cron system on your site. This means WP-Cron events on your site may not work. The problem was:

    Unexpected HTTP response code: 403……

    Manually firing the cron events does not also work.

    Even tried to disable cron in config.php by using define(‘DISABLE_WP_CRON’, true); but it didn’t help

    Even changed permissions for file /opt/bitnami/wordpress/wp-cron.php to 755 but it didn’t solve anything

    Later tried adding below line through ssh using comand crontab -e but it also did not do anything

    */5 * * * * cd /opt/bitnami/wordpress; php -q wp-cron.php >/dev/null 2>&1

    Not sure if this is wordpress issue or aws lightsail issue. Now our emails are not going, Wp rocket isn’t optimizing database, and many things are just stuck

    If you anyone can please suggest what can be done, would be greatful

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator threadi

    (@threadi)

    So the actual problem seems to be that WP Crontrol could not call the file wp-cron.php via HTTP. When I call https://www.gyawun.com/wp-cron.php I get a HTTP status 200 back. So it looks fine. If the request from your server results in a 403, there is probably a routing error within the server. You would therefore need to contact the hoster’s support team.

    Try using WP-CLI instead:
    wp --path=/opt/bitnami/wordpress cron event run --due-now

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

The topic ‘Cron not working on wordpress hosted on AWS lightsail’ is closed to new replies.