Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(error.html): failed to open stream: Permission denied' in /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php:188 Stack trace: #0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/home/www/demo6...', 188, Array) #1 /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php(188): file_put_contents('error.html', '<!DOCTYPE html>...') #2 /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\PDOException)) #3 /home/www/demo6.tp-shop.cn/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\PDOException)) #4 [internal function]: think\Error::appException(Object(think\exception\PDOException)) #5 {main} thrown in /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php on line 188

Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'file_put_contents(): open_basedir restriction in effect. File(error.html) is not within the allowed path(s): (/home/www/demo6.tp-shop.cn/:/tmp/)' in /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php:188 Stack trace: #0 [internal function]: think\Error::appError(2, 'file_put_conten...', '/home/www/demo6...', 188, Array) #1 /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php(188): file_put_contents('error.html', '<!DOCTYPE html>...') #2 /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php(96): think\exception\Handle->convertExceptionToResponse(Object(think\exception\ErrorException)) #3 /home/www/demo6.tp-shop.cn/thinkphp/library/think/Error.php(53): think\exception\Handle->render(Object(think\exception\ErrorException)) #4 /home/www/demo6.tp-shop.cn/thinkphp/library/think/Error.php(90): think\Error::appException(Object(think\exception\ErrorException)) #5 [internal function]: think\Error::ap in /home/www/demo6.tp-shop.cn/thinkphp/library/think/exception/Handle.php on line 188