在apache/ubuntu上使用PHP 7的Slim应用程序中,我遇到了包含路径的问题。当我的app/routes索引页试图包含位于子目录中的文件时,我在apache error.log中得到了以下内容,但在我看来,路径是正确的:
PHP Warning: include(myapp/production/include.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 33
PHP Warning: include(): Failed opening
我将php7.1更新为php7.2.1 (PHP 7.2.1 (cli)),未生成的laravel如下所示:
(1/1) ErrorException
A non-numeric value encountered
in mpdf.php (line 30648)
at HandleExceptions->handleError(
2,
'A non-numeric value encountered',
'/opt/lampp/htdocs/mysite/vendor/mpdf/mpdf/mpdf.php',
3