Deprecated: Return type of SendGridV3\ReplyTo::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 34

Deprecated: Return type of SendGridV3\ClickTracking::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 70

Deprecated: Return type of SendGridV3\OpenTracking::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 107

Deprecated: Return type of SendGridV3\SubscriptionTracking::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 166

Deprecated: Return type of SendGridV3\Ganalytics::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 249

Deprecated: Return type of SendGridV3\TrackingSettings::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 312

Deprecated: Return type of SendGridV3\BccSettings::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 351

Deprecated: Return type of SendGridV3\BypassListManagement::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 377

Deprecated: Return type of SendGridV3\Footer::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 424

Deprecated: Return type of SendGridV3\SandBoxMode::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 450

Deprecated: Return type of SendGridV3\SpamCheck::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/catena/asktraders_com/wp-content/plugins/sendgrid-email-delivery-simplified/lib/sendgrid/sendgrid-api-v3.php on line 497
session_start(): Session cannot be started after headers have already been sent (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

session_start(): Session cannot be started after headers have already been sent

Exception

ErrorException

  1. add_action'plugins_loaded''spx_newsletters_init' );
  2. function spx_newsletters_start_session() {
  3.     if(!session_id()) {
  4.         session_start();
  5.     }
  6. }
  7. add_action('init''spx_newsletters_start_session'1);
  1.      * @throws \ErrorException
  2.      */
  3.     public function handleError($level$message$file ''$line 0$context = [])
  4.     {
  5.         try {
  6.             parent::handleError($level$message$file$line$context);
  7.         } catch (Throwable $e) {
  8.             if (! apply_filters('acorn/throw_error_exception'true$e)) {
  9.                 return false;
  10.             }
HandleExceptions->handleError()
  1. add_action'plugins_loaded''spx_newsletters_init' );
  2. function spx_newsletters_start_session() {
  3.     if(!session_id()) {
  4.         session_start();
  5.     }
  6. }
  7. add_action('init''spx_newsletters_start_session'1);
spx_newsletters_start_session() in /home/catena/asktraders_com/wp-includes/class-wp-hook.php (line 308)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ( == $the_['accepted_args'] ) {
  3.                     $value call_user_func$the_['function'] );
  4.                 } elseif ( $the_['accepted_args'] >= $num_args ) {
  5.                     $value call_user_func_array$the_['function'], $args );
  6.                 } else {
  7.                     $value call_user_func_array$the_['function'], array_slice$args0, (int) $the_['accepted_args'] ) );
  8.                 }
  9.             }
  10.         } while ( false !== next$this->iterations$nesting_level ] ) );
  1.      *
  2.      * @param array $args Parameters to pass to the callback functions.
  3.      */
  4.     public function do_action$args ) {
  5.         $this->doing_action true;
  6.         $this->apply_filters''$args );
  7.         // If there are recursive calls to the current action, we haven't finished it until we get to the last one.
  8.         if ( ! $this->nesting_level ) {
  9.             $this->doing_action false;
  10.         }
WP_Hook->do_action() in /home/catena/asktraders_com/wp-includes/plugin.php (line 517)
  1.     } elseif ( is_array$arg[0] ) && === count$arg[0] ) && isset( $arg[0][0] ) && is_object$arg[0][0] ) ) {
  2.         // Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
  3.         $arg[0] = $arg[0][0];
  4.     }
  5.     $wp_filter$hook_name ]->do_action$arg );
  6.     array_pop$wp_current_filter );
  7. }
  8. /**
  1.  *
  2.  * If you wish to plug an action once WP is loaded, use the {@see 'wp_loaded'} hook below.
  3.  *
  4.  * @since 1.5.0
  5.  */
  6. do_action'init' );
  7. // Check site status.
  8. if ( is_multisite() ) {
  9.     $file ms_site_check();
  10.     if ( true !== $file ) {
require_once('/home/catena/asktraders_com/wp-settings.php') in /home/catena/asktraders_com/wp-config.php (line 136)
  1. /** Absolute path to the WordPress directory. */
  2. if ( !defined('ABSPATH') )
  3. define('ABSPATH'dirname(__FILE__) . '/');
  4. /** Sets up WordPress vars and included files. */
  5. require_once(ABSPATH 'wp-settings.php');
require_once('/home/catena/asktraders_com/wp-config.php') in /home/catena/asktraders_com/wp-load.php (line 50)
  1.  * If neither set of conditions is true, initiate loading the setup process.
  2.  */
  3. if ( file_existsABSPATH 'wp-config.php' ) ) {
  4.     /** The config file resides in ABSPATH */
  5.     require_once ABSPATH 'wp-config.php';
  6. } elseif ( @file_existsdirnameABSPATH ) . '/wp-config.php' ) && ! @file_existsdirnameABSPATH ) . '/wp-settings.php' ) ) {
  7.     /** The config file resides one level above ABSPATH but is not part of another installation */
  8.     require_once dirnameABSPATH ) . '/wp-config.php';
require_once('/home/catena/asktraders_com/wp-load.php') in /home/catena/asktraders_com/wp-blog-header.php (line 13)
  1. if ( ! isset( $wp_did_header ) ) {
  2.     $wp_did_header true;
  3.     // Load the WordPress library.
  4.     require_once __DIR__ '/wp-load.php';
  5.     // Set up the WordPress query.
  6.     wp();
  7.     // Load the theme template.
require('/home/catena/asktraders_com/wp-blog-header.php') in /home/catena/asktraders_com/index.php (line 17)
  1.  * @var bool
  2.  */
  3. define'WP_USE_THEMES'true );
  4. /** Loads the WordPress Environment and Template */
  5. require __DIR__ '/wp-blog-header.php';

Stack Trace

ErrorException
ErrorException:
session_start(): Session cannot be started after headers have already been sent

  at /home/catena/asktraders_com/wp-content/plugins/spx-newsletters/spx-newsletters.php:32
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/home/catena/asktraders_com/wp-content/themes/asktraders2022/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:55)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
  at session_start()
     (/home/catena/asktraders_com/wp-content/plugins/spx-newsletters/spx-newsletters.php:32)
  at spx_newsletters_start_session()
     (/home/catena/asktraders_com/wp-includes/class-wp-hook.php:308)
  at WP_Hook->apply_filters()
     (/home/catena/asktraders_com/wp-includes/class-wp-hook.php:332)
  at WP_Hook->do_action()
     (/home/catena/asktraders_com/wp-includes/plugin.php:517)
  at do_action()
     (/home/catena/asktraders_com/wp-settings.php:623)
  at require_once('/home/catena/asktraders_com/wp-settings.php')
     (/home/catena/asktraders_com/wp-config.php:136)
  at require_once('/home/catena/asktraders_com/wp-config.php')
     (/home/catena/asktraders_com/wp-load.php:50)
  at require_once('/home/catena/asktraders_com/wp-load.php')
     (/home/catena/asktraders_com/wp-blog-header.php:13)
  at require('/home/catena/asktraders_com/wp-blog-header.php')
     (/home/catena/asktraders_com/index.php:17)