DOMPDF在Ubuntu服务器上已弃用?

问题描述 投票:0回答:1

我将Laravel项目放在具有PHP 7.3.1,Apache和MySQL的Ubuntu服务器上。当我运行“ barryvdh / laravel-dompdf”时,出现以下错误:

"Symfony \ Component \ Debug \ Exception \ FatalThrowableError" class is deprecated since Symfony 4.4. 16384

我的“ composer.json”如下:

"require": {
         "php": "> = 7",
         "barryvdh / laravel-dompdf": "^ 0.8.5",
         "fideloper / proxy": "^ 4.0",
         "illuminate / support": "^ 5.5 | ^ 6",
         "kylekatarnls / laravel-carbon-2": "^ 1.0.0",
         "laravel-frontend-presets / argon": "^ 1.0",
         "laravel / framework": "5.8. *",
         "laravel / tinker": "^ 1.0",
         "laravelcollective / html": "^ 5.8",
         "nesbot / carbon": "^ 2.22",
         "spatie / laravel-backup": "^ 6.3"
     },

可能是什么错误?非常感谢]]

我将Laravel项目放在具有PHP 7.3.1,Apache和MySQL的Ubuntu服务器上。当我运行“ barryvdh / laravel-dompdf”时,出现以下错误:“ Symfony \ Component \ Debug \ Exception \ ...

laravel dompdf
1个回答
0
投票

也许您在开发服务器php.ini中有不同的设置,例如(error_reporting = E_ALL&〜E_DEPRECATED)。您可以尝试将error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);放在AppServiceProvider的boot()方法中(取自here)。

© www.soinside.com 2019 - 2024. All rights reserved.