Session cannot be started (wp_cron)
-
Hello, we have this recurring error from your plugin when wp_cron is fired.
session_start(): Session cannot be started after headers have already been sent
…tart called at /code/wp-content/plugins/favorites/app/Bootstrap.php (83)
…sion called at /code/wp-content/plugins/favorites/app/Bootstrap.php (43)
…rites\Bootstrap::init called at /code/wp-includes/class-wp-hook.php (324)
…P_Hook::apply_filters called at /code/wp-includes/class-wp-hook.php (348)
in WP_Hook::do_action called at /code/wp-includes/plugin.php (517)
in do_action called at /code/wp-settings.php (704)
in require_once called at /code/wp-config.php (185)
in require_once called at /code/wp-load.php (50)
in require_once called at /code/wp-cron.php (46)I would think that sessions should not be required by your plugin when cron is running, can you please add a conditional and not initialize a session, in those instances?
The topic ‘Session cannot be started (wp_cron)’ is closed to new replies.