• Recently the cron job has been showing a 500 error even though if I go to the cron job url in my browser (Chrome) it is just showing the expected text.

    If I use curl -i to access the cron job url the result is:

    HTTP/1.1 500 Internal Server Error
    Date: Thu, 23 Nov 2017 17:45:47 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Set-Cookie: __cfduid=dbbef3472064b0d9a428b25a49f4017291511459142; expires=Fri, 23-Nov-18 17:45:42 GMT; path=/; domain=.clearvisiontrust.org; HttpOnly; Secure
    X-Pj-Cache-Status: miss
    X-Pj-Cache-Key: 7229e546d3a46956b57cf792b95089e7
    Cache-Control: no-store, no-cache, must-revalidate, max-age=0, post-check=0, pre-check=0
    Pragma: no-cache
    Strict-Transport-Security: max-age=15552000; preload
    X-Content-Type-Options: nosniff
    Server: cloudflare-nginx
    CF-RAY: 3c25f198ab736b4f-LHR

    Any idea why this might be occurring?

    It’s frustrating as the cron provider I’m using disables the cron job after a number of failed attempts.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,
    Maybe a problem with the .htaccess file.

    You are using CloudFlare, maybe its help to turn the “Development Mode” on. (No Caching)
    CloudFlare -> your domain -> Caching -> Development Mode

    Thread Starter Jeff Cole

    (@upekshapriya)

    Thanks for the suggestion.

    It appears to have no different result with Development Mode enabled.

    However there is a php error in the log which may have something to do with it?

    [05-Dec-2017 01:15:04 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_author_permastruct() on null in /srv/users/serverpilot/apps/wordpress/public/wp-includes/author-template.php:337
    Stack trace:
    #0 /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(193): get_author_posts_url('1')
    #1 /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/cloudflare/src/WordPress/Hooks.php(153): CF\WordPress\Hooks->getPostRelatedLinks(43607)
    #2 /srv/users/serverpilot/apps/wordpress/public/wp-includes/class-wp-hook.php(286): CF\WordPress\Hooks->purgeCacheByRevelantURLs(43607)
    #3 /srv/users/serverpilot/apps/wordpress/public/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
    #4 /srv/users/serverpilot/apps/wordpress/public/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #5 /srv/users/serverpilot/apps/wordpress/public/wp-includes/post.php(2559): do_action('deleted_post', 43607)
    #6 /srv/users/serverpilot/apps/wordpress/public/wp-content/plugins/warm-cache/warm_cache_crawl.ph in /srv/users/serverpilot/apps/wordpress/public/wp-includes/author-template.php on line 337
    
    • This reply was modified 7 years, 3 months ago by Jeff Cole.
    Thread Starter Jeff Cole

    (@upekshapriya)

    Any news on this?

    Plugin Author ramon fincken

    (@ramon-fincken)

    Do you have any plugins that (auto) delete posts?

    Thread Starter Jeff Cole

    (@upekshapriya)

    Nothing obvious that deletes posts – the site is quite a minimal static site at the moment.

    Plugin Author ramon fincken

    (@ramon-fincken)

    Jeff: I am willing to take a look (for free of course), but I need SSH or FTP credentials for that. You can sent them via my SSL encrypted site: https://www.mijnpress.nl/contact-opnemen/

    Plugin Author ramon fincken

    (@ramon-fincken)

    Its the fault of the “cloudflare” plugin. For some reason it does not recognise

    I have added $wp_rewrite = new wp_rewrite; as per

    https://stackoverflow.com/questions/34402687/wp-rewrite-returning-null-in-plugin-settings-page

    and now your response is 200 OK instead of 500 Error.

    I will take a further look in a test environment.

    Thread Starter Jeff Cole

    (@upekshapriya)

    Thanks for looking into this. Sorry I didn’t see your message – I was expecting an email!

    Something strange is happening now – the information that normally appears above the columns is not showing – even though it is visible in the source code for the plugin page.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Cron job seeing 500 error’ is closed to new replies.