Deprecated: Return type of wpCloud\StatelessMedia\Sync\BackgroundSync::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/lib/classes/sync/class-background-sync.php on line 475

Deprecated: Return type of Symfony\Component\Finder\Finder::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Finder.php on line 607

Deprecated: Return type of Symfony\Component\Finder\Finder::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Finder.php on line 676

Deprecated: Return type of Symfony\Component\Finder\Iterator\FileTypeFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php on line 42

Deprecated: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::getChildren() should either be compatible with RecursiveDirectoryIterator::getChildren(): RecursiveDirectoryIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 85

Deprecated: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::rewind() should either be compatible with FilesystemIterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 113

Deprecated: Return type of Symfony\Component\Finder\Iterator\RecursiveDirectoryIterator::current() should either be compatible with FilesystemIterator::current(): SplFileInfo|FilesystemIterator|string, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php on line 61

Deprecated: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 55

Deprecated: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::hasChildren() should either be compatible with RecursiveIterator::hasChildren(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 74

Deprecated: Return type of Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator::getChildren() should either be compatible with RecursiveIterator::getChildren(): ?RecursiveIterator, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php on line 79

Deprecated: Return type of Symfony\Component\Finder\Iterator\FilenameFilterIterator::accept() should either be compatible with FilterIterator::accept(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/FilenameFilterIterator.php on line 28
Cannot modify header information - headers already sent by (output started at /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:21) (500 Internal Server Error)

Symfony Exception

ErrorException

HTTP 500 Internal Server Error

Cannot modify header information - headers already sent by (output started at /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:21)

Exception

ErrorException

  1.          * Any LWS that occurs between field-content MAY be replaced with a
  2.          * single SP before interpreting the field value or forwarding the
  3.          * message downstream.
  4.          */
  5.         $value preg_replace('/\s+/'' '$value);
  6.         header(sprintf('%s: %s'$key$value));
  7.     }
  8.     /**
  9.      * Sends multiple HTTP headers.
  10.      *
  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.          * Any LWS that occurs between field-content MAY be replaced with a
  2.          * single SP before interpreting the field value or forwarding the
  3.          * message downstream.
  4.          */
  5.         $value preg_replace('/\s+/'' '$value);
  6.         header(sprintf('%s: %s'$key$value));
  7.     }
  8.     /**
  9.      * Sends multiple HTTP headers.
  10.      *
WP_REST_Server->send_header() in /app/blog/web/wp/wp-includes/rest-api/class-wp-rest-server.php (line 320)
  1.         if (isset($_GET['_jsonp'])) {
  2.             $jsonp_callback $_GET['_jsonp'];
  3.         }
  4.         $content_type = ($jsonp_callback && $jsonp_enabled) ? 'application/javascript' 'application/json';
  5.         $this->send_header('Content-Type'$content_type.'; charset='.get_option('blog_charset'));
  6.         $this->send_header('X-Robots-Tag''noindex');
  7.         $api_root get_rest_url();
  8.         if (! empty($api_root)) {
  9.             $this->send_header('Link''<'.sanitize_url($api_root).'>; rel="https://api.w.org/"');
WP_REST_Server->serve_request() in /app/blog/web/wp/wp-includes/rest-api.php (line 419)
  1.     // Fire off the request.
  2.     $route untrailingslashit($GLOBALS['wp']->query_vars['rest_route']);
  3.     if (empty($route)) {
  4.         $route '/';
  5.     }
  6.     $server->serve_request($route);
  7.     // We're done.
  8.     exit();
  9. }
rest_api_loaded() in /app/blog/web/wp/wp-includes/class-wp-hook.php (line 318)
  1.                 // Avoid the array_slice() if possible.
  2.                 if ($the_['accepted_args'] == 0) {
  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 (next($this->iterations[$nesting_level]) !== false);
WP_Hook->apply_filters() in /app/blog/web/wp/wp-includes/class-wp-hook.php (line 343)
  1.      * @param  array  $args  Parameters to pass to the callback functions.
  2.      */
  3.     public function do_action($args)
  4.     {
  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 /app/blog/web/wp/wp-includes/plugin.php (line 573)
  1.     if (! isset($wp_filter['all'])) {
  2.         $wp_current_filter[] = $hook_name;
  3.     }
  4.     $wp_filter[$hook_name]->do_action($args);
  5.     array_pop($wp_current_filter);
  6. }
  7. /**
do_action_ref_array() in /app/blog/web/wp/wp-includes/class-wp.php (line 412)
  1.          *
  2.          * @since 2.1.0
  3.          *
  4.          * @param  WP  $wp  Current WordPress environment instance (passed by reference).
  5.          */
  6.         do_action_ref_array('parse_request', [&$this]);
  7.         return true;
  8.     }
  9.     /**
WP->parse_request() in /app/blog/web/wp/wp-includes/class-wp.php (line 800)
  1.      */
  2.     public function main($query_args '')
  3.     {
  4.         $this->init();
  5.         $parsed $this->parse_request($query_args);
  6.         if ($parsed) {
  7.             $this->query_posts();
  8.             $this->handle_404();
  9.             $this->register_globals();
  1.  */
  2. function wp($query_vars '')
  3. {
  4.     global $wp$wp_query$wp_the_query;
  5.     $wp->main($query_vars);
  6.     if (! isset($wp_the_query)) {
  7.         $wp_the_query $wp_query;
  8.     }
  9. }
  1.     // Load the WordPress library.
  2.     require_once __DIR__.'/wp-load.php';
  3.     // Set up the WordPress query.
  4.     wp();
  5.     // Load the theme template.
  6.     require_once ABSPATH.WPINC.'/template-loader.php';
  7. }
require('/app/blog/web/wp/wp-blog-header.php') in /app/blog/web/index.php (line 6)
  1. <?php
  2. /**
  3.  * WordPress View Bootstrapper
  4.  */
  5. define('WP_USE_THEMES'true);
  6. require __DIR__.'/wp/wp-blog-header.php';

Stack Trace

ErrorException
ErrorException:
Cannot modify header information - headers already sent by (output started at /app/blog/web/app/plugins/wp-stateless/vendor/symfony/finder/Iterator/FilenameFilterIterator.php:21)

  at /app/blog/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1802
  at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
     (/app/blog/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
  at Roots\Acorn\Bootstrap\HandleExceptions->handleError()
  at header()
     (/app/blog/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1802)
  at WP_REST_Server->send_header()
     (/app/blog/web/wp/wp-includes/rest-api/class-wp-rest-server.php:320)
  at WP_REST_Server->serve_request()
     (/app/blog/web/wp/wp-includes/rest-api.php:419)
  at rest_api_loaded()
     (/app/blog/web/wp/wp-includes/class-wp-hook.php:318)
  at WP_Hook->apply_filters()
     (/app/blog/web/wp/wp-includes/class-wp-hook.php:343)
  at WP_Hook->do_action()
     (/app/blog/web/wp/wp-includes/plugin.php:573)
  at do_action_ref_array()
     (/app/blog/web/wp/wp-includes/class-wp.php:412)
  at WP->parse_request()
     (/app/blog/web/wp/wp-includes/class-wp.php:800)
  at WP->main()
     (/app/blog/web/wp/wp-includes/functions.php:1369)
  at wp()
     (/app/blog/web/wp/wp-blog-header.php:13)
  at require('/app/blog/web/wp/wp-blog-header.php')
     (/app/blog/web/index.php:6)