* Any LWS that occurs between field-content MAY be replaced with a * single SP before interpreting the field value or forwarding the * message downstream. */ $value = preg_replace( '/\s+/', ' ', $value ); header( sprintf( '%s: %s', $key, $value ) ); } /** * Sends multiple HTTP headers. * * @throws \ErrorException */ public function handleError($level, $message, $file = '', $line = 0, $context = []) { try { parent::handleError($level, $message, $file, $line, $context); } catch (Throwable $e) { if (! apply_filters('acorn/throw_error_exception', true, $e)) { return false; } * Any LWS that occurs between field-content MAY be replaced with a * single SP before interpreting the field value or forwarding the * message downstream. */ $value = preg_replace( '/\s+/', ' ', $value ); header( sprintf( '%s: %s', $key, $value ) ); } /** * Sends multiple HTTP headers. * if ( isset( $_GET['_jsonp'] ) ) { $jsonp_callback = $_GET['_jsonp']; } $content_type = ( $jsonp_callback && $jsonp_enabled ) ? 'application/javascript' : 'application/json'; $this->send_header( 'Content-Type', $content_type . '; charset=' . get_option( 'blog_charset' ) ); $this->send_header( 'X-Robots-Tag', 'noindex' ); $api_root = get_rest_url(); if ( ! empty( $api_root ) ) { $this->send_header( 'Link', '<' . sanitize_url( $api_root ) . '>; rel="https://api.w.org/"' ); // Fire off the request. $route = untrailingslashit( $GLOBALS['wp']->query_vars['rest_route'] ); if ( empty( $route ) ) { $route = '/'; } $server->serve_request( $route ); // We're done. die();} // Avoid the array_slice() if possible. if ( 0 === $the_['accepted_args'] ) { $value = call_user_func( $the_['function'] ); } elseif ( $the_['accepted_args'] >= $num_args ) { $value = call_user_func_array( $the_['function'], $args ); } else { $value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) ); } } } while ( false !== next( $this->iterations[ $nesting_level ] ) ); * * @param array $args Parameters to pass to the callback functions. */ public function do_action( $args ) { $this->doing_action = true; $this->apply_filters( '', $args ); // If there are recursive calls to the current action, we haven't finished it until we get to the last one. if ( ! $this->nesting_level ) { $this->doing_action = false; } if ( ! isset( $wp_filter['all'] ) ) { $wp_current_filter[] = $hook_name; } $wp_filter[ $hook_name ]->do_action( $args ); array_pop( $wp_current_filter );}/** * * @since 2.1.0 * * @param WP $wp Current WordPress environment instance (passed by reference). */ do_action_ref_array( 'parse_request', array( &$this ) ); return true; } /** * @param string|array $query_args Passed to parse_request(). */ public function main( $query_args = '' ) { $this->init(); $parsed = $this->parse_request( $query_args ); if ( $parsed ) { $this->query_posts(); $this->handle_404(); $this->register_globals(); * @param string|array $query_vars Default WP_Query arguments. */function wp( $query_vars = '' ) { global $wp, $wp_query, $wp_the_query; $wp->main( $query_vars ); if ( ! isset( $wp_the_query ) ) { $wp_the_query = $wp_query; }} // Load the WordPress library. require_once __DIR__ . '/wp-load.php'; // Set up the WordPress query. wp(); // Load the theme template. require_once ABSPATH . WPINC . '/template-loader.php';}<?php/** * WordPress View Bootstrapper */define('WP_USE_THEMES', true);require __DIR__ . '/wp/wp-blog-header.php';|
ErrorException
|
|---|
ErrorException:
Cannot modify header information - headers already sent by (output started at /www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/app/mu-plugins/wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php:416)
at /www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1896
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/app/mu-plugins/wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php:416)', '/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/rest-api/class-wp-rest-server.php', 1896, array())
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/vendor/roots/acorn/src/Roots/Acorn/Bootstrap/HandleExceptions.php:54)
at Roots\Acorn\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/app/mu-plugins/wordpress-seo/vendor_prefixed/league/oauth2-client/src/Provider/AbstractProvider.php:416)', '/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/rest-api/class-wp-rest-server.php', 1896)
at header('Content-Type: application/json; charset=UTF-8')
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/rest-api/class-wp-rest-server.php:1896)
at WP_REST_Server->send_header('Content-Type', 'application/json; charset=UTF-8')
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/rest-api/class-wp-rest-server.php:318)
at WP_REST_Server->serve_request('/')
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/rest-api.php:459)
at rest_api_loaded(object(WP))
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/class-wp-hook.php:324)
at WP_Hook->apply_filters('', array(object(WP)))
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/class-wp-hook.php:348)
at WP_Hook->do_action(array(object(WP)))
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/plugin.php:565)
at do_action_ref_array('parse_request', array(object(WP)))
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/class-wp.php:418)
at WP->parse_request('')
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/class-wp.php:818)
at WP->main('')
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-includes/functions.php:1342)
at wp()
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-blog-header.php:16)
at require('/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/wp/wp-blog-header.php')
(/www/htdocs/w01f841b/kwartier-106.tinydevbox.org/web/index.php:6)
|