Whoops \ Exception \ ErrorException (E_WARNING)
file_get_contents(storage/images/cache/vende-se-linda-chacara-1-010-m-de-terreno-no-bairro-chacara-guanabara-na-cidade-de-guararema-sp-24-galery-1649858551-1600x1200-1ba5732a.jpg): failed to open stream: No such file or directory Whoops\Exception\ErrorException thrown with message "file_get_contents(storage/images/cache/vende-se-linda-chacara-1-010-m-de-terreno-no-bairro-chacara-guanabara-na-cidade-de-guararema-sp-24-galery-1649858551-1600x1200-1ba5732a.jpg): failed to open stream: No such file or directory" Stacktrace: #8 Whoops\Exception\ErrorException in /home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php:178 #7 file_get_contents in /home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php:178 #6 WideImage\WideImage:loadFromFile in /home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php:167 #5 call_user_func in /home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php:167 #4 WideImage\WideImage:load in /home/digitalv8/public_html/source/Controller/Space/Watermarks.php:19 #3 Source\Controller\Space\Watermarks:renderImage in /home/digitalv8/public_html/vendor/coffeecode/router/src/Dispatch.php:143 #2 CoffeeCode\Router\Dispatch:execute in /home/digitalv8/public_html/vendor/coffeecode/router/src/Dispatch.php:123 #1 CoffeeCode\Router\Dispatch:dispatch in /home/digitalv8/public_html/spaces.php:290 #0 require in /home/digitalv8/public_html/spaces/imperioimobiliaria/index.php:1
Stack frames (9)
8
Whoops\Exception\ErrorException
/vendor/smottt/wideimage/lib/WideImage/WideImage.php178
7
file_get_contents
/vendor/smottt/wideimage/lib/WideImage/WideImage.php178
6
WideImage\WideImage loadFromFile
/vendor/smottt/wideimage/lib/WideImage/WideImage.php167
5
call_user_func
/vendor/smottt/wideimage/lib/WideImage/WideImage.php167
4
WideImage\WideImage load
/source/Controller/Space/Watermarks.php19
3
Source\Controller\Space\Watermarks renderImage
/vendor/coffeecode/router/src/Dispatch.php143
2
CoffeeCode\Router\Dispatch execute
/vendor/coffeecode/router/src/Dispatch.php123
1
CoffeeCode\Router\Dispatch dispatch
/spaces.php290
0
require
/spaces/imperioimobiliaria/index.php1
/home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php
            $predictedSourceType = 'Upload';
        }
        
        // Otherwise, must be a file or an URL
        if (!$predictedSourceType) {
            $predictedSourceType = 'File';
        }
        
        return call_user_func(array(__CLASS__, 'loadFrom' . $predictedSourceType), $source);
    }

    /**
     * Create and load an image from a file or URL. The image format is auto-detected.
     * 
     * @param string $uri File or url
     * @return \WideImage\Image|\WideImage\PaletteImage|\WideImage\TrueColorImage
     */
    public static function loadFromFile($uri)
    {
        $data   = file_get_contents($uri);
        $handle = @imagecreatefromstring($data);
        
        if (!static::isValidImageHandle($handle)) {
            try {
                // try to find a mapper first
                $mapper = MapperFactory::selectMapper($uri);
                
                if ($mapper) {
                    $handle = $mapper->load($uri);
                }
            } catch (UnsupportedFormatException $e) {
                // mapper not found
            }
            
            // try all custom mappers
            if (!static::isValidImageHandle($handle)) {
                $custom_mappers = MapperFactory::getCustomMappers();
                
                foreach ($custom_mappers as $mime_type => $mapper_class) {
                    $mapper = MapperFactory::selectMapper(null, $mime_type);
/home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php
            $predictedSourceType = 'Upload';
        }
        
        // Otherwise, must be a file or an URL
        if (!$predictedSourceType) {
            $predictedSourceType = 'File';
        }
        
        return call_user_func(array(__CLASS__, 'loadFrom' . $predictedSourceType), $source);
    }

    /**
     * Create and load an image from a file or URL. The image format is auto-detected.
     * 
     * @param string $uri File or url
     * @return \WideImage\Image|\WideImage\PaletteImage|\WideImage\TrueColorImage
     */
    public static function loadFromFile($uri)
    {
        $data   = file_get_contents($uri);
        $handle = @imagecreatefromstring($data);
        
        if (!static::isValidImageHandle($handle)) {
            try {
                // try to find a mapper first
                $mapper = MapperFactory::selectMapper($uri);
                
                if ($mapper) {
                    $handle = $mapper->load($uri);
                }
            } catch (UnsupportedFormatException $e) {
                // mapper not found
            }
            
            // try all custom mappers
            if (!static::isValidImageHandle($handle)) {
                $custom_mappers = MapperFactory::getCustomMappers();
                
                foreach ($custom_mappers as $mime_type => $mapper_class) {
                    $mapper = MapperFactory::selectMapper(null, $mime_type);
/home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php
            
            for ($i = 0; $i < $maxlen; $i++) {
                if (ord($source[$i]) < 32) {
                    $predictedSourceType = 'String';
                    break;
                }
            }
        }
        
        // Uploaded image (array uploads not supported)
        if (isset($_FILES[$source]) && isset($_FILES[$source]['tmp_name'])) {
            $predictedSourceType = 'Upload';
        }
        
        // Otherwise, must be a file or an URL
        if (!$predictedSourceType) {
            $predictedSourceType = 'File';
        }
        
        return call_user_func(array(__CLASS__, 'loadFrom' . $predictedSourceType), $source);
    }

    /**
     * Create and load an image from a file or URL. The image format is auto-detected.
     * 
     * @param string $uri File or url
     * @return \WideImage\Image|\WideImage\PaletteImage|\WideImage\TrueColorImage
     */
    public static function loadFromFile($uri)
    {
        $data   = file_get_contents($uri);
        $handle = @imagecreatefromstring($data);
        
        if (!static::isValidImageHandle($handle)) {
            try {
                // try to find a mapper first
                $mapper = MapperFactory::selectMapper($uri);
                
                if ($mapper) {
                    $handle = $mapper->load($uri);
/home/digitalv8/public_html/vendor/smottt/wideimage/lib/WideImage/WideImage.php
            
            for ($i = 0; $i < $maxlen; $i++) {
                if (ord($source[$i]) < 32) {
                    $predictedSourceType = 'String';
                    break;
                }
            }
        }
        
        // Uploaded image (array uploads not supported)
        if (isset($_FILES[$source]) && isset($_FILES[$source]['tmp_name'])) {
            $predictedSourceType = 'Upload';
        }
        
        // Otherwise, must be a file or an URL
        if (!$predictedSourceType) {
            $predictedSourceType = 'File';
        }
        
        return call_user_func(array(__CLASS__, 'loadFrom' . $predictedSourceType), $source);
    }

    /**
     * Create and load an image from a file or URL. The image format is auto-detected.
     * 
     * @param string $uri File or url
     * @return \WideImage\Image|\WideImage\PaletteImage|\WideImage\TrueColorImage
     */
    public static function loadFromFile($uri)
    {
        $data   = file_get_contents($uri);
        $handle = @imagecreatefromstring($data);
        
        if (!static::isValidImageHandle($handle)) {
            try {
                // try to find a mapper first
                $mapper = MapperFactory::selectMapper($uri);
                
                if ($mapper) {
                    $handle = $mapper->load($uri);
/home/digitalv8/public_html/source/Controller/Space/Watermarks.php
<?php


namespace Source\Controller\Space;


namespace Source\Controller\Space;

use WideImage\WideImage;

class Watermarks
{
    public function renderImage(array $data): void
    {
        $image = base64_decode($data['image']);
        $imagem_logo = CONF_UPLOAD_DIR . '/watermarks.png';

        $logo = WideImage::load($imagem_logo);
        $img = WideImage::load($image);

        $resized = $logo->resize(300, 100);

        header('content-type: image/jpeg');
//        $img->merge($resized, 'right', 'bottom', 30)->output('jpg');
        $img->merge($resized, 'center', 'center', 100)->output('jpg');
    }
}
/home/digitalv8/public_html/vendor/coffeecode/router/src/Dispatch.php
    }
 
    /**
     * @return bool
     */
    private function execute()
    {
        if ($this->route) {
            if (is_callable($this->route['handler'])) {
                call_user_func($this->route['handler'], ($this->route['data'] ?? []));
                return true;
            }
 
            $controller = $this->route['handler'];
            $method = $this->route['action'];
 
            if (class_exists($controller)) {
                $newController = new $controller($this);
                if (method_exists($controller, $method)) {
                    $newController->$method(($this->route['data'] ?? []));
                    return true;
                }
 
                $this->error = self::METHOD_NOT_ALLOWED;
                return false;
            }
 
            $this->error = self::BAD_REQUEST;
            return false;
        }
 
        $this->error = self::NOT_FOUND;
        return false;
    }
 
    /**
     * httpMethod form spoofing
     */
    protected function formSpoofing(): void
    {
/home/digitalv8/public_html/vendor/coffeecode/router/src/Dispatch.php
    }
 
    /**
     * @return bool
     */
    public function dispatch(): bool
    {
        if (empty($this->routes) || empty($this->routes[$this->httpMethod])) {
            $this->error = self::NOT_IMPLEMENTED;
            return false;
        }
 
        $this->route = null;
        foreach ($this->routes[$this->httpMethod] as $key => $route) {
            if (preg_match("~^" . $key . "$~", $this->patch, $found)) {
                $this->route = $route;
            }
        }
 
        return $this->execute();
    }
 
    /**
     * @return bool
     */
    private function execute()
    {
        if ($this->route) {
            if (is_callable($this->route['handler'])) {
                call_user_func($this->route['handler'], ($this->route['data'] ?? []));
                return true;
            }
 
            $controller = $this->route['handler'];
            $method = $this->route['action'];
 
            if (class_exists($controller)) {
                $newController = new $controller($this);
                if (method_exists($controller, $method)) {
                    $newController->$method(($this->route['data'] ?? []));
/home/digitalv8/public_html/spaces.php
        }
    }
}
 
/**
 * INTEGRATION ROUTES
 */
$route->namespace("Source\Controller\Space\Integration");
$route->group(null);
 
//mercadolire
$route->get("/postar/meli/{imobiID}", "Meli@publicAds","meli.publicAds");
$route->get("/integration/meli/auth", "Meli@auth", "meli.auth");
$route->post("/usuario/mercadolivre", "Meli@userMeli","meli.userMeli");
 
/**
 * SEND ROUTE
 */
 
$route->dispatch();
 
 
/**
 * Flash MSG
 */
if ($_SERVER['REQUEST_METHOD'] != "POST" && $flash = flash()) {
    echo $viewFlash = (new View(__DIR__ . "/shared/views/"))->render("flash", ['flash' => $flash]);
}
 
/**
 * ERROR REDIRECT
 */
if ($route->error()) {
//    var_dump($route->error());
    //$route->redirect("/ops/{$route->error()}");
 
    header("HTTP/1.1 404 Not Found");
    (new \Source\Controller\Space\Web\Home($route))->error(['errcode'=>$route->error()]);
}
 
/home/digitalv8/public_html/spaces/imperioimobiliaria/index.php
<?php require '../../spaces.php'; ?>

Environment & details:

Key Value
route /img/c3RvcmFnZS9pbWFnZXMvY2FjaGUvdmVuZGUtc2UtbGluZGEtY2hhY2FyYS0xLTAxMC1tLWRlLXRlcnJlbm8tbm8tYmFpcnJvLWNoYWNhcmEtZ3VhbmFiYXJhLW5hLWNpZGFkZS1kZS1ndWFyYXJlbWEtc3AtMjQtZ2FsZXJ5LTE2NDk4NTg1NTEtMTYwMHgxMjAwLTFiYTU3MzJhLmpwZw==
empty
empty
empty
empty
Key Value
PATH /usr/local/bin:/bin:/usr/bin
HTTP_ACCEPT */*
HTTP_ACCEPT_ENCODING gzip, br
HTTP_HOST www.imperiosantaisabel.com.br
HTTP_USER_AGENT claudebot
HTTP_X_FORWARDED_FOR 3.237.91.98
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
HTTP_CF_RAY 86b6cbcbeb8b827e-IAD
HTTP_X_FORWARDED_PROTO https
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_CF_CONNECTING_IP 3.237.91.98
DOCUMENT_ROOT /home/digitalv8/public_html/spaces/imperioimobiliaria
REMOTE_ADDR 3.237.91.98
REMOTE_PORT 39794
SERVER_ADDR 170.81.42.111
SERVER_NAME www.imperiosantaisabel.com.br
SERVER_ADMIN [email protected]
SERVER_PORT 443
REQUEST_SCHEME https
REQUEST_URI /img/c3RvcmFnZS9pbWFnZXMvY2FjaGUvdmVuZGUtc2UtbGluZGEtY2hhY2FyYS0xLTAxMC1tLWRlLXRlcnJlbm8tbm8tYmFpcnJvLWNoYWNhcmEtZ3VhbmFiYXJhLW5hLWNpZGFkZS1kZS1ndWFyYXJlbWEtc3AtMjQtZ2FsZXJ5LTE2NDk4NTg1NTEtMTYwMHgxMjAwLTFiYTU3MzJhLmpwZw==
REDIRECT_URL /img/c3RvcmFnZS9pbWFnZXMvY2FjaGUvdmVuZGUtc2UtbGluZGEtY2hhY2FyYS0xLTAxMC1tLWRlLXRlcnJlbm8tbm8tYmFpcnJvLWNoYWNhcmEtZ3VhbmFiYXJhLW5hLWNpZGFkZS1kZS1ndWFyYXJlbWEtc3AtMjQtZ2FsZXJ5LTE2NDk4NTg1NTEtMTYwMHgxMjAwLTFiYTU3MzJhLmpwZw==
REDIRECT_REQUEST_METHOD GET
PROXY_REMOTE_ADDR 172.70.174.195
HTTPS on
REDIRECT_STATUS 200
X_SPDY HTTP2
SSL_PROTOCOL TLSv1.3
SSL_CIPHER TLS_AES_128_GCM_SHA256
SSL_CIPHER_USEKEYSIZE 128
SSL_CIPHER_ALGKEYSIZE 128
SCRIPT_FILENAME /home/digitalv8/public_html/spaces/imperioimobiliaria/index.php
QUERY_STRING route=/img/c3RvcmFnZS9pbWFnZXMvY2FjaGUvdmVuZGUtc2UtbGluZGEtY2hhY2FyYS0xLTAxMC1tLWRlLXRlcnJlbm8tbm8tYmFpcnJvLWNoYWNhcmEtZ3VhbmFiYXJhLW5hLWNpZGFkZS1kZS1ndWFyYXJlbWEtc3AtMjQtZ2FsZXJ5LTE2NDk4NTg1NTEtMTYwMHgxMjAwLTFiYTU3MzJhLmpwZw==
SCRIPT_URI https://www.imperiosantaisabel.com.br/img/c3RvcmFnZS9pbWFnZXMvY2FjaGUvdmVuZGUtc2UtbGluZGEtY2hhY2FyYS0xLTAxMC1tLWRlLXRlcnJlbm8tbm8tYmFpcnJvLWNoYWNhcmEtZ3VhbmFiYXJhLW5hLWNpZGFkZS1kZS1ndWFyYXJlbWEtc3AtMjQtZ2FsZXJ5LTE2NDk4NTg1NTEtMTYwMHgxMjAwLTFiYTU3MzJhLmpwZw==
SCRIPT_URL /img/c3RvcmFnZS9pbWFnZXMvY2FjaGUvdmVuZGUtc2UtbGluZGEtY2hhY2FyYS0xLTAxMC1tLWRlLXRlcnJlbm8tbm8tYmFpcnJvLWNoYWNhcmEtZ3VhbmFiYXJhLW5hLWNpZGFkZS1kZS1ndWFyYXJlbWEtc3AtMjQtZ2FsZXJ5LTE2NDk4NTg1NTEtMTYwMHgxMjAwLTFiYTU3MzJhLmpwZw==
SCRIPT_NAME /index.php
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE LiteSpeed
REQUEST_METHOD GET
X-LSCACHE on
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711620267,2539
REQUEST_TIME 1711620267
Key Value
PATH /usr/local/bin:/bin:/usr/bin
0. Whoops\Handler\PrettyPageHandler