Laravel 4:致命错误:在 autoload.php 中找不到类 'PatchworkUtf8Bootup'

2022-01-21 00:00:00 json php laravel composer-php fatal-error

我将 "cviebrock/image-validator": "1.0.*" 添加到 composer.json 的 require 部分.之后,我运行 composer update,我收到了这个致命错误.

I added "cviebrock/image-validator": "1.0.*" to require section of composer.json. After, I ran composer update, I am getting this Fatal error.

:::错误:::

Fatal error: Class 'PatchworkUtf8Bootup' not found in F:xampphtdocsproject
bootstrapautoload.php on line 46
Script php artisan clear-compiled handling the post-update-cmd event returned wi
th an error



  [RuntimeException]
  Error Output:



update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock]
 [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-
dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [
packagesN]

:::END of ERROR:::

:::END of ERROR:::

:::COMPOSER.JSON 需要部分:::

:::COMPOSER.JSON Require section:::

"require": {
  "intervention/image": "2.*",
  "cviebrock/image-validator": "1.0.*"
},

我需要帮助来纠正这个致命错误.

I need help in rectifying this fatal error.

谢谢 &问候,

Thanks & Regards,

迈克尔·桑玛

推荐答案

这个错误在我看来好像没有安装 patchwork/utf8 包.

This error seems to me like there is no patchwork/utf8 package installed.

在您的供应商文件夹中查看该包是否存在或在您的 composer.json 文件的 require 部分中添加:"patchwork/utf8": "1.1.*" 然后执行 composer更新.

See in your vendor folder whether the package exists or add in the require section in your composer.json file: "patchwork/utf8": "1.1.*" and then do composer update.

相关文章