FriendsOfCake/cakephp-upload

CakePHP 4 Upload Plugin

RonnyCuba opened this issue · 0 comments

Greetings. I'm new in CakePHP

I'm following a trainer course, and now, I start learning about this Plugin. Unfortunately, I'm behind a companion proxy, and I not able to use Composer. So, I downloaded the zip project and put it in plugins folder as upload.

Then in terminal I put cake plugin load upload and all went fine.

When I refresh my website appear this:

Fatal error: Uncaught Cake\Core\Exception\MissingPluginException: Plugin upload could not be found. in C:\laragon\www\restaurant\vendor\cakephp\cakephp\src\Core\PluginCollection.php:143 Stack trace: #0 C:\laragon\www\restaurant\vendor\cakephp\cakephp\src\Core\PluginCollection.php(248): Cake\Core\PluginCollection->findPath('upload') #1 C:\laragon\www\restaurant\vendor\cakephp\cakephp\src\Http\BaseApplication.php(128): Cake\Core\PluginCollection->create('upload', Array) #2 C:\laragon\www\restaurant\src\Application.php(47): Cake\Http\BaseApplication->addPlugin('upload') #3 C:\laragon\www\restaurant\vendor\cakephp\cakephp\src\Http\Server.php(109): App\Application->bootstrap() #4 C:\laragon\www\restaurant\vendor\cakephp\cakephp\src\Http\Server.php(79): Cake\Http\Server->bootstrap() #5 C:\laragon\www\restaurant\webroot\index.php(40): Cake\Http\Server->run() #6 {main} thrown in C:\laragon\www\restaurant\vendor\cakephp\cakephp\src\Core\PluginCollection.php on line 143

In Application.php appear this public function bootstrap(): void
{
$this->addPlugin('upload');

If I remove this line, all go normally.

Please, how I can install this plugin manually on Cakephp 4??

Thanks in advance