【问题标题】:Failed to Open Stream /vendor/phpoffice/phppresenation/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php无法打开流/vendor/phpoffice/phppresenation/vendor/composer/../symfony/polyfill-mbstring/bootstrap.php
【发布时间】:2020-04-16 04:04:59
【问题描述】:

尝试通过在自定义 /api/libraries/PhpPresentation 目录下包含指向我的供应商目录的自动加载器脚本来运行带有 PHP PowerPoint 生成的 API 会导致警告。

警告: 要求(C:\wamp64\www\projectaim\api\libraries\PhpPresentation\vendor\phpoffice\phppresentation\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php): 无法打开流:中没有这样的文件或目录 C:\wamp64\www\projectaim\api\libraries\PhpPresentation\vendor\phpoffice\phppresentation\vendor\composer\autoload_real.php 在第 70 行

我该如何解决这个问题?

【问题讨论】:

  • 尝试删除您的供应商文件夹并通过运行composer update重新安装它
  • 我应该删除哪个供应商? (见截图)
  • 根删除它
  • 更改到父 (PhpPresentation) 目录,然后删除供应商,然后运行“composer update”再次生成并生成必要的下载文件

标签: php symfony autoload phppresentation


【解决方案1】:

我能够解决这个问题。它需要名为“mbstring”的php扩展

在你的服务器上安装 PHP-mbstring 扩展,如果你在本地使用 M2 而不是在 CMD 下运行..

sudo apt-get install php7.0-mbstring

根据你使用的 CMD 更改 PHP 版本。 并重启你的 apache2。

让我知道它是否适用于任何人......谢谢!

【讨论】:

  • 我对 php 电子表格有同样的问题
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-12-11
  • 1970-01-01
  • 2023-02-17
  • 2016-10-20
  • 1970-01-01
  • 1970-01-01
  • 2015-04-12
相关资源
最近更新 更多