ErrorException (E_WARNING)
include_once(/var/www/html/template/cashup.me/index.php): Failed to open stream: No such file or directory ErrorException thrown with message "include_once(/var/www/html/template/cashup.me/index.php): Failed to open stream: No such file or directory" Stacktrace: #2 ErrorException in /var/www/html/index.php:36 #1 include_once in /var/www/html/index.php:36 #0 checkAndRenderFile in /var/www/html/index.php:145
Stack frames (3)
2
ErrorException
/var/www/html/index.php36
1
include_once
/var/www/html/index.php36
0
checkAndRenderFile
/var/www/html/index.php145
/var/www/html/index.php
                echo $content;
            } elseif (in_array('.well-known', explode('/', $url), true) !== false) {
                header('Content-type: ' . util\File::get_mime_type($filename));
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else if(str_contains($url, "app-ads.txt")){
                header("Content-type: text/plain");
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else {
                $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
                $fk_filename = __DIR__ . '/template/' . $_SERVER['HTTP_HOST'];
                if (rtrim($filename, '/') == $fk_filename) {
                    $fk_filename .= '/index.php';
                    ob_start();
                    include_once $fk_filename;
                    $content = ob_get_clean();
                    echo $content;
                    exit();
                }
//                header("Content-type: ".mime_content_type($filename));
                header('Location: /template/' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
//                echo "found {$fk_filename} = {$filename}";
                exit();
            }
            return true;
        }
        return false;
    }
}
if (!function_exists('getScriptName')) {
    function getScriptName()
    {
        $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
        return (!empty($uri)) ? $uri : '/index.php';
    }
/var/www/html/index.php
                echo $content;
            } elseif (in_array('.well-known', explode('/', $url), true) !== false) {
                header('Content-type: ' . util\File::get_mime_type($filename));
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else if(str_contains($url, "app-ads.txt")){
                header("Content-type: text/plain");
                ob_start();
                include $filename;
                $content = ob_get_clean();
                echo $content;
            } else {
                $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
                $fk_filename = __DIR__ . '/template/' . $_SERVER['HTTP_HOST'];
                if (rtrim($filename, '/') == $fk_filename) {
                    $fk_filename .= '/index.php';
                    ob_start();
                    include_once $fk_filename;
                    $content = ob_get_clean();
                    echo $content;
                    exit();
                }
//                header("Content-type: ".mime_content_type($filename));
                header('Location: /template/' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
//                echo "found {$fk_filename} = {$filename}";
                exit();
            }
            return true;
        }
        return false;
    }
}
if (!function_exists('getScriptName')) {
    function getScriptName()
    {
        $uri = explode('?', $_SERVER['REQUEST_URI'] ?? '')[0];
        return (!empty($uri)) ? $uri : '/index.php';
    }
/var/www/html/index.php
    include $filename;
    exit();
}
$url = $_SERVER['HTTP_HOST'] . '/' . getScriptName();
if (LOCALHOST) {
    $url = $allowed_hosts[0] . str_replace(BASE_DIR, '/', getScriptName());
}
 
//Check files in template directory for custom domains
$filename = __DIR__ . '/template/' . $url;
$found = false;
 
$filenames = [
    $filename,
    "{$filename}.php",
    __DIR__ . '/template/' . $_SERVER['HTTP_HOST'] . '/' . CleanUrl::getPartAtIndex(0) . '.php'
];
 
foreach ($filenames as $filename) {
    if (checkAndRenderFile($filename)) {
        $found = true;
        exit();
    }
}
$filename = trim(getScriptName(), '/') . '.php';
if (file_exists($filename)) {
    include $filename;
    exit();
}
if (file_exists(CleanUrl::getPartAtIndex(0) . '.php')) {
    $file = CleanUrl::getPartAtIndex(0);
    $filename = __DIR__ . "/$file.php";
 
    include $filename;
    exit();
}
if (!$found) {
//    header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found');
    $default404File = __DIR__ . '/data/pages/404.php';
    $domain404File = __DIR__ . '/template/' . $_SERVER['HTTP_HOST'] . '/404.php';

Environment & details:

empty
empty
empty
empty
Key Value
lang en
Key Value
HTTP_HOST cashup.me
HTTP_CONNECTION Keep-Alive
HTTP_ACCEPT_ENCODING gzip, br
HTTP_X_FORWARDED_FOR 18.191.211.66
HTTP_CF_RAY 87a68d48cc6d86fe-SJC
HTTP_X_FORWARDED_PROTO https
HTTP_CF_VISITOR {"scheme":"https"}
HTTP_ACCEPT */*
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
HTTP_CF_CONNECTING_IP 18.191.211.66
HTTP_CDN_LOOP cloudflare
HTTP_CF_IPCOUNTRY US
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.59 (Debian) Server at cashup.me Port 80</address>
SERVER_SOFTWARE Apache/2.4.59 (Debian)
SERVER_NAME cashup.me
SERVER_ADDR 45.79.120.32
SERVER_PORT 80
REMOTE_ADDR 172.71.154.12
DOCUMENT_ROOT /var/www/html
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/html/index.php
REMOTE_PORT 62356
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1714134289.1798
REQUEST_TIME 1714134289
empty
0. Whoops\Handler\PrettyPageHandler