1

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

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

在此处输入图像描述

我该如何解决?

4

1 回答 1

2

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

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

sudo apt-get install php7.0-mbstring

根据您使用的更改上述 CMD 上的 PHP 版本.. 并重新启动您的 apache2。

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

于 2020-09-02T04:59:12.823 回答