Kategorije

Pošaljite upit

Previous
Next

VISIO TIM

Specijalizirani distributer proizvođača ABB u području energetike, industrijske automatizacije i zgradarstva. Najbolja online ponuda sa preko 120 000 proizvoda za isporuku odmah. Jednostavna pretraga.

Novosti

Izdvojeni proizvodi

Whoops! There was an error.
Laminas \ HttpHandlerRunner \ Exception \ EmitterException
Output has been emitted previously; cannot emit response Laminas\HttpHandlerRunner\Exception\EmitterException thrown with message "Output has been emitted previously; cannot emit response" Stacktrace: #9 Laminas\HttpHandlerRunner\Exception\EmitterException in /home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php:20 #8 Laminas\HttpHandlerRunner\Exception\EmitterException:forOutputSent in /home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php:42 #7 Laminas\HttpHandlerRunner\Emitter\SapiEmitter:assertNoPreviousOutput in /home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php:21 #6 Laminas\HttpHandlerRunner\Emitter\SapiEmitter:emit in /home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Emitter/EmitterStack.php:37 #5 Laminas\HttpHandlerRunner\Emitter\EmitterStack:emit in /home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php:82 #4 Laminas\HttpHandlerRunner\RequestHandlerRunner:run in /home/web/visio/vendor/mezzio/mezzio/src/Application.php:68 #3 Mezzio\Application:run in /home/web/visio/public/wp-config.php:22 #2 require_once in /home/web/visio/public/wp/wp-load.php:55 #1 require_once in /home/web/visio/public/wp/wp-blog-header.php:13 #0 require in /home/web/visio/public/index.php:18
Stack frames (10)
9
Laminas\HttpHandlerRunner\Exception\EmitterException
/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php20
8
Laminas\HttpHandlerRunner\Exception\EmitterException forOutputSent
/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php42
7
Laminas\HttpHandlerRunner\Emitter\SapiEmitter assertNoPreviousOutput
/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php21
6
Laminas\HttpHandlerRunner\Emitter\SapiEmitter emit
/vendor/laminas/laminas-httphandlerrunner/src/Emitter/EmitterStack.php37
5
Laminas\HttpHandlerRunner\Emitter\EmitterStack emit
/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php82
4
Laminas\HttpHandlerRunner\RequestHandlerRunner run
/vendor/mezzio/mezzio/src/Application.php68
3
Mezzio\Application run
/public/wp-config.php22
2
require_once
/public/wp/wp-load.php55
1
require_once
/public/wp/wp-blog-header.php13
0
require
/public/index.php18
/home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Exception/EmitterException.php
<?php
 
declare(strict_types=1);
 
namespace Laminas\HttpHandlerRunner\Exception;
 
use RuntimeException;
 
use function sprintf;
 
class EmitterException extends RuntimeException implements ExceptionInterface
{
    public static function forHeadersSent(string $filename, int $line): self
    {
        return new self(sprintf('Unable to emit response; headers already sent in %s:%d', $filename, $line));
    }
 
    public static function forOutputSent(): self
    {
        return new self('Output has been emitted previously; cannot emit response');
    }
}
 
/home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitterTrait.php
    /**
     * Checks to see if content has previously been sent.
     *
     * If either headers have been sent or the output buffer contains content,
     * raises an exception.
     *
     * @throws EmitterException If headers have already been sent.
     * @throws EmitterException If output is present in the output buffer.
     */
    private function assertNoPreviousOutput(): void
    {
        $filename = null;
        $line     = null;
        if ($this->headersSent($filename, $line)) {
            assert(is_string($filename) && is_int($line));
            throw EmitterException::forHeadersSent($filename, $line);
        }
 
        if (ob_get_level() > 0 && ob_get_length() > 0) {
            throw EmitterException::forOutputSent();
        }
    }
 
    /**
     * Emit the status line.
     *
     * Emits the status line using the protocol version and status code from
     * the response; if a reason phrase is available, it, too, is emitted.
     *
     * It is important to mention that this method should be called after
     * `emitHeaders()` in order to prevent PHP from changing the status code of
     * the emitted response.
     *
     * @see \Laminas\HttpHandlerRunner\Emitter\SapiEmitterTrait::emitHeaders()
     */
    private function emitStatusLine(ResponseInterface $response): void
    {
        $reasonPhrase = $response->getReasonPhrase();
        $statusCode   = $response->getStatusCode();
 
/home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Emitter/SapiEmitter.php
 
declare(strict_types=1);
 
namespace Laminas\HttpHandlerRunner\Emitter;
 
use Psr\Http\Message\ResponseInterface;
 
class SapiEmitter implements EmitterInterface
{
    use SapiEmitterTrait;
 
    /**
     * Emits a response for a PHP SAPI environment.
     *
     * Emits the status line and headers via the header() function, and the
     * body content via the output buffer.
     */
    public function emit(ResponseInterface $response): bool
    {
        $this->assertNoPreviousOutput();
 
        $this->emitHeaders($response);
        $this->emitStatusLine($response);
        $this->emitBody($response);
 
        return true;
    }
 
    /**
     * Emit the message body.
     */
    private function emitBody(ResponseInterface $response): void
    {
        echo $response->getBody();
    }
}
 
/home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/Emitter/EmitterStack.php
 * true value will short-circuit iteration.
 *
 * @template-extends SplStack<EmitterInterface>
 */
class EmitterStack extends SplStack implements EmitterInterface
{
    /**
     * Emit a response
     *
     * Loops through the stack, calling emit() on each; any that return a
     * boolean true value will short-circuit, skipping any remaining emitters
     * in the stack.
     *
     * As such, return a boolean false value from an emitter to indicate it
     * cannot emit the response, allowing the next emitter to try.
     */
    public function emit(ResponseInterface $response): bool
    {
        foreach ($this as $emitter) {
            if (false !== $emitter->emit($response)) {
                return true;
            }
        }
 
        return false;
    }
 
    /**
     * Set an emitter on the stack by index.
     *
     * @param int $index
     * @param EmitterInterface $emitter
     * @return void
     * @throws Exception\InvalidEmitterException If not an EmitterInterface instance.
     */
    #[ReturnTypeWillChange]
    public function offsetSet($index, $emitter)
    {
        /** @psalm-suppress RedundantConditionGivenDocblockType */
        $this->validateEmitter($emitter);
/home/web/visio/vendor/laminas/laminas-httphandlerrunner/src/RequestHandlerRunner.php
        $this->handler = $handler;
        $this->emitter = $emitter;
 
        $this->serverRequestFactory                = $serverRequestFactory;
        $this->serverRequestErrorResponseGenerator = $serverRequestErrorResponseGenerator;
    }
 
    public function run(): void
    {
        try {
            $request = ($this->serverRequestFactory)();
        } catch (Throwable $e) {
            // Error in generating the request
            $this->emitMarshalServerRequestException($e);
            return;
        }
 
        $response = $this->handler->handle($request);
 
        $this->emitter->emit($response);
    }
 
    private function emitMarshalServerRequestException(Throwable $exception): void
    {
        $response = ($this->serverRequestErrorResponseGenerator)($exception);
        $this->emitter->emit($response);
    }
}
 
/home/web/visio/vendor/mezzio/mezzio/src/Application.php
        return $this->pipeline->handle($request);
    }
 
    /**
     * Proxies to composed pipeline to process.
     * {@inheritDocs}
     */
    public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
    {
        return $this->pipeline->process($request, $handler);
    }
 
    /**
     * Run the application.
     *
     * Proxies to the RequestHandlerRunner::run() method.
     */
    public function run(): void
    {
        $this->runner->run();
    }
 
    /**
     * Pipe middleware to the pipeline.
     *
     * If two arguments are present, they are passed to pipe(), after first
     * passing the second argument to the factory's prepare() method.
     *
     * If only one argument is presented, it is passed to the factory prepare()
     * method.
     *
     * The resulting middleware, in both cases, is piped to the pipeline.
     *
     * @param string|array|callable|MiddlewareInterface|RequestHandlerInterface $middlewareOrPath
     *     Either the middleware to pipe, or the path to segregate the $middleware
     *     by, via a PathMiddlewareDecorator.
     * @param null|string|array|callable|MiddlewareInterface|RequestHandlerInterface $middleware
     *     If present, middleware or request handler to segregate by the path
     *     specified in $middlewareOrPath.
     */
/home/web/visio/public/wp-config.php
 
namespace Inti\Wp;
 
use Mezzio\Application;
use function defined;
 
chdir(dirname(__DIR__));
require dirname(__DIR__) . '/vendor/autoload.php';
 
$container = include 'config/container.php';
define('GATH_WHOLESALE', true);
define('DISABLE_TZ_REGISTER', true);
 
if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
    $_SERVER['HTTPS'] = 'on';
}
 
/** @var Application $app */
$app = $container->get(Application::class);
$app->run();
 
if (defined('WP_USE_THEMES')) {
    exit;
}
 
/home/web/visio/public/wp/wp-load.php
    error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
}
 
/*
 * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
 * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
 * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
 * and /blog/ is WordPress(b).
 *
 * If neither set of conditions is true, initiate loading the setup process.
 */
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
 
    /** The config file resides in ABSPATH */
    require_once ABSPATH . 'wp-config.php';
 
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
 
    /** The config file resides one level above ABSPATH but is not part of another installation */
    require_once dirname( ABSPATH ) . '/wp-config.php';
 
} else {
 
    // A config file doesn't exist.
 
    define( 'WPINC', 'wp-includes' );
    require_once ABSPATH . WPINC . '/load.php';
 
    // Standardize $_SERVER variables across setups.
    wp_fix_server_vars();
 
    require_once ABSPATH . WPINC . '/functions.php';
 
    $path = wp_guess_url() . '/wp-admin/setup-config.php';
 
    /*
     * We're going to redirect to setup-config.php. While this shouldn't result
     * in an infinite loop, that's a silly thing to assume, don't you think? If
     * we're traveling in circles, our last-ditch effort is "Need more help?"
     */
/home/web/visio/public/wp/wp-blog-header.php
<?php
/**
 * Loads the WordPress environment and template.
 *
 * @package WordPress
 */
 
if ( ! isset( $wp_did_header ) ) {
 
    $wp_did_header = true;
 
    // 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';
 
}
 
/home/web/visio/public/index.php
<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */
 
/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );
chdir(dirname(__DIR__));
 
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp/wp-blog-header.php';
 

Environment & details:

Key Value
HTTP Method GET
URI https://visio-tim.hr/
Script /index.php
Headers Array ( [connection] => Array ( [0] => Keep-Alive ) [host] => Array ( [0] => visio-tim.hr ) [accept-encoding] => Array ( [0] => br,gzip ) [if-modified-since] => Array ( [0] => Tue, 18 Feb 2025 04:06:26 GMT ) [accept-language] => Array ( [0] => en-US,en;q=0.5 ) [accept] => Array ( [0] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 ) [user-agent] => Array ( [0] => CCBot/2.0 (https://commoncrawl.org/faq/) ) )
Cookies Array ( )
Attributes Array ( )
Query String Arguments Array ( )
Body Params Array ( )
empty
empty
empty
empty
empty
Key Value
SERVER_SOFTWARE nginx/1.22.1
REQUEST_URI /
USER web
HOME /home/web
HTTP_CONNECTION Keep-Alive
HTTP_HOST visio-tim.hr
HTTP_ACCEPT_ENCODING br,gzip
HTTP_IF_MODIFIED_SINCE Tue, 18 Feb 2025 04:06:26 GMT
HTTP_ACCEPT_LANGUAGE en-US,en;q=0.5
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_USER_AGENT CCBot/2.0 (https://commoncrawl.org/faq/)
SCRIPT_FILENAME /home/web/visio/public/index.php
REDIRECT_STATUS 200
SERVER_NAME visio-tim.hr
SERVER_PORT 443
SERVER_ADDR 172.30.62.174
REMOTE_USER
REMOTE_PORT 49758
REMOTE_ADDR 18.97.9.169
GATEWAY_INTERFACE CGI/1.1
HTTPS on
REQUEST_SCHEME https
SERVER_PROTOCOL HTTP/1.1
DOCUMENT_ROOT /home/web/visio/public
DOCUMENT_URI /index.php
SCRIPT_NAME /index.php
CONTENT_LENGTH
CONTENT_TYPE
REQUEST_METHOD GET
QUERY_STRING
FCGI_ROLE RESPONDER
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1742648829.5471
REQUEST_TIME 1742648829
empty
0. Whoops\Handler\PrettyPageHandler