Whoops \ Exception \ ErrorException (E_WARNING)
Cannot modify header information - headers already sent by (output started at /tmp/Waf:2) Whoops\Exception\ErrorException thrown with message "Cannot modify header information - headers already sent by (output started at /tmp/Waf:2)" Stacktrace: #8 Whoops\Exception\ErrorException in /data/home/bxu2404500163/htdocs/app/base/controller/ErrorController.php:11 #7 header in /data/home/bxu2404500163/htdocs/app/base/controller/ErrorController.php:11 #6 app\base\controller\ErrorController:error404 in /data/home/bxu2404500163/htdocs/app/base/hook/AppHook.php:60 #5 app\base\hook\AppHook:appError in /data/home/bxu2404500163/htdocs/framework/base/Hook.php:50 #4 call_user_func_array in /data/home/bxu2404500163/htdocs/framework/base/Hook.php:50 #3 framework\base\Hook:exec in /data/home/bxu2404500163/htdocs/framework/base/Hook.php:34 #2 framework\base\Hook:listen in /data/home/bxu2404500163/htdocs/framework/base/App.php:78 #1 framework\base\App:run in /data/home/bxu2404500163/htdocs/framework/core.php:125 #0 require in /data/home/bxu2404500163/htdocs/index.php:8
Stack frames (9)
8
Whoops\Exception\ErrorException
/app/base/controller/ErrorController.php11
7
header
/app/base/controller/ErrorController.php11
6
app\base\controller\ErrorController error404
/app/base/hook/AppHook.php60
5
app\base\hook\AppHook appError
/framework/base/Hook.php50
4
call_user_func_array
/framework/base/Hook.php50
3
framework\base\Hook exec
/framework/base/Hook.php34
2
framework\base\Hook listen
/framework/base/App.php78
1
framework\base\App run
/framework/core.php125
0
require
/index.php8
/data/home/bxu2404500163/htdocs/app/base/controller/ErrorController.php
<?php
 
namespace app\base\controller;
 
use framework\base\Controller;
 
class ErrorController extends Controller
{
    public function error404($e = null)
    {
        header('HTTP/1.1 404 Not Found');
        header('status: 404 Not Found');
        $this->error($e);
    }
 
    public function error($e = null)
    {
        //关闭调试或者是线上版本,不显示详细错误
        if (false == config('DEBUG') || 'production' == config('ENV')) {
            $home = new \app\home\controller\IndexController();
            $home->error404();
        } else {
            throw $e;
        }
    }
}
 
/data/home/bxu2404500163/htdocs/app/base/controller/ErrorController.php
<?php
 
namespace app\base\controller;
 
use framework\base\Controller;
 
class ErrorController extends Controller
{
    public function error404($e = null)
    {
        header('HTTP/1.1 404 Not Found');
        header('status: 404 Not Found');
        $this->error($e);
    }
 
    public function error($e = null)
    {
        //关闭调试或者是线上版本,不显示详细错误
        if (false == config('DEBUG') || 'production' == config('ENV')) {
            $home = new \app\home\controller\IndexController();
            $home->error404();
        } else {
            throw $e;
        }
    }
}
 
/data/home/bxu2404500163/htdocs/app/base/hook/AppHook.php
                Hook::listen('CheckAdminLang');
            }
        }
 
        $this->startTime = microtime(true);
    }
 
    public function appEnd()
    {
        //echo microtime(true) - $this->startTime ;
    }
 
    public function appError($e)
    {
        if (404 == $e->getCode()) {
            $action = 'error404';
        } else {
            $action = 'error';
        }
        obj('app\base\controller\ErrorController')->$action($e);
    }
 
    public function routeParseUrl($rewriteRule, $rewriteOn)
    {
    }
 
    public function actionBefore($obj, $action)
    {
    }
 
    public function actionAfter($obj, $action)
    {
    }
}
 
/data/home/bxu2404500163/htdocs/framework/base/Hook.php
            return false;
        }
        foreach (self::$tags[$tag] as $class) {
            $result = self::exec($class, $tag, $params);
            if (false === $result) {
                break;
            }
        }
 
        return true;
    }
 
    protected static function exec($class, $method, $params)
    {
        static $objArr = [];
        if (!isset($objArr[$class])) {
            $objArr[$class] = new $class();
        }
 
        return call_user_func_array([$objArr[$class], $method], (array) $params);
    }
}
 
/data/home/bxu2404500163/htdocs/framework/base/Hook.php
            return false;
        }
        foreach (self::$tags[$tag] as $class) {
            $result = self::exec($class, $tag, $params);
            if (false === $result) {
                break;
            }
        }
 
        return true;
    }
 
    protected static function exec($class, $method, $params)
    {
        static $objArr = [];
        if (!isset($objArr[$class])) {
            $objArr[$class] = new $class();
        }
 
        return call_user_func_array([$objArr[$class], $method], (array) $params);
    }
}
 
/data/home/bxu2404500163/htdocs/framework/base/Hook.php
                continue;
            }
 
            $class = substr($file, $pos + 1, -4);
            $class = "\\app\\base\\hook\\{$class}";
 
            $methods = get_class_methods($class);
            foreach ((array) $methods as $method) {
                self::$tags[$method][] = $class;
            }
        }
    }
 
    public static function listen($tag, $params = [], &$result = null)
    {
        if (!isset(self::$tags[$tag])) {
            return false;
        }
        foreach (self::$tags[$tag] as $class) {
            $result = self::exec($class, $tag, $params);
            if (false === $result) {
                break;
            }
        }
 
        return true;
    }
 
    protected static function exec($class, $method, $params)
    {
        static $objArr = [];
        if (!isset($objArr[$class])) {
            $objArr[$class] = new $class();
        }
 
        return call_user_func_array([$objArr[$class], $method], (array) $params);
    }
}
 
/data/home/bxu2404500163/htdocs/framework/base/App.php
            if (!class_exists($controller)) {
                throw new \Exception("Controller '{$controller}' not found", 404);
            }
            $obj = new $controller();
            if (!method_exists($obj, $action)) {
                throw new \Exception("Action '{$controller}::{$action}()' not found", 404);
            }
 
            Hook::listen('actionBefore', [$obj, $action]);
            $obj->$action();
            Hook::listen('actionAfter', [$obj, $action]);
        } catch (\Exception $e) {
            // //关闭调试或者是线上版本,不显示详细错误
            // if (false==config('DEBUG') || 'production' == config('ENV')) {
            //     $home = new \app\home\controller\IndexController();
            //     $home->error404();
            // } else {
            //     throw $e;
            // }
            Hook::listen('appError', [$e]);
        }
 
        Hook::listen('appEnd');
    }
}
 
/data/home/bxu2404500163/htdocs/framework/core.php
                foreach (glob($fileDIR.'*.php') as $file) {
                    $fileList[$fileDIR][] = $file;
                }
            }
 
            $fileBase = $baseDir.str_replace('\\', DIRECTORY_SEPARATOR, $namespace).DIRECTORY_SEPARATOR.$className;
            foreach ($fileList[$fileDIR] as $file) {
                if (false !== stripos($file, $fileBase)) {
                    require $file;
 
                    return true;
                }
            }
        }
    }
 
    return false;
});
 
App::run();
 
/data/home/bxu2404500163/htdocs/index.php
<?php
 
if (version_compare(PHP_VERSION, '5.6.0', '<')) {
    header('Content-Type: text/html; charset=UTF-8');
    echo 'PHP环境不能低于5.6';
    exit;
}
require 'framework/core.php';
 

Environment & details:

Key Value
QLzCG .ppt20231021m1mj
empty
empty
empty
empty
Key Value
DOCUMENT_ROOT /usr/home/bxu2404500163/htdocs
GATEWAY_INTERFACE CGI/1.1
HTTP_ACCEPT */*
HTTP_HOST www.weijuzk.com
HTTP_USER_AGENT Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
PATH /bin:/usr/bin
PHPRC /var/www/php71/hichina_ini/bxu2404500163
QUERY_STRING QLzCG=.ppt20231021m1mj
REDIRECT_STATUS 200
REMOTE_ADDR 52.15.135.63
REMOTE_PORT 60867
REQUEST_METHOD GET
REQUEST_URI /?QLzCG=.ppt20231021m1mj
SCRIPT_FILENAME /usr/home/bxu2404500163/htdocs/index.php
SCRIPT_NAME /index.php
SCRIPT_URI http://www.weijuzk.com/
SCRIPT_URL /
SERVER_ADDR 172.18.123.78
SERVER_ADMIN webmaster@bxu2404500163.my3w.com
SERVER_NAME www.weijuzk.com
SERVER_PORT 80
SERVER_PROTOCOL HTTP/1.1
SERVER_SIGNATURE
SERVER_SOFTWARE Apache
UNIQUE_ID Zjciw6wSepQAAAsIn60AAAAN
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1714889411.2241
REQUEST_TIME 1714889411
empty
0. Whoops\Handler\PrettyPageHandler