沃梦达 / 编程问答 / php问题 / 正文

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

Laravel 4: Fatal error: Class #39;PatchworkUtf8Bootup#39; not found in autoload.php(Laravel 4:致命错误:在 autoload.php 中找不到类 PatchworkUtf8Bootup)

本文介绍了Laravel 4:致命错误:在 autoload.php 中找不到类 'PatchworkUtf8Bootup'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将 "cviebrock/image-validator": "1.0.*" 添加到 composer.jsonrequire 部分.之后,我运行 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.

这篇关于Laravel 4:致命错误:在 autoload.php 中找不到类 'PatchworkUtf8Bootup'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Laravel 4:致命错误:在 autoload.php 中找不到类 'PatchworkUtf8Bootup'

基础教程推荐