As the title says, do_action( 'init' ) in wp-settings.php breaks my website. All plugins and themes have been disabled.
Basically if I comment out line 308 which is simply do_action( 'init' );
then the site works fine, but if I enable that line, I see just a white page, no HTML in the source at all. I've disabled all plugins and themes. How do I continue troubleshooting from here?
UPDATE: The problem is due to a bad cron job, the output of my list of cronjobs is here:
FUNCTION ARGUMENTS SHEDULE TIME (H)
wp_scheduled_auto_draft_delete array ( ) Once Daily 24
wp_scheduled_delete array ( ) Once Daily 24
publish_future_post array ( 0 => 43169, ) not-set
wp_version_check array ( ) Twice Daily 12
wp_update_plugins array ( ) Twice Daily 12
wp_update_themes array ( ) Twice Daily 12
do_pings array ( ) not-set
sm_build_cron array ( ) not-set
The function sm_build_cron is from the plugin google-sitemap-generator and the function referenced it:
Action:
//WP Cron hook
add_action('sm_build_cron', array('GoogleSitemapGeneratorLoader', 'CallBuildSitemap'),1,0);
Function:
function CallBuildSitemap() {
if(GoogleSitemapGeneratorLoader::LoadPlugin()) {
$gs = &GoogleSitemapGenerator::GetInstance();
$gs->BuildSitemap();
}
}
init
action that's breaking your site; rather, it's your Theme or a Plugin that is outputting code that produces a fatal error oninit
. Enable debugging, and report the fatal error that is generated.define('DISABLE_WP_CRON', 'true');
and everything works fine now. Now I have to find an alternative cron manager.