Kashyap Kotak
Kashyap Kotak

Reputation: 1938

File ./vendor/autoload.php missing or not readable in phpmyadmin

This question is different from: https://stackoverflow.com/questions/36150377/missing-vendor-autoload-php
I want to contribute to phpmyadmin. I cloned the github repo in my machine using Github Desktop software. I copied the downloaded files in xampp so that I can run phpmyadmin. But when I launch the phpmyadmin page, this error occurs:

File ./vendor/autoload.php missing or not readable.
Most likely you did not run Composer to install library files.

Where can I get that file? I saw something that uses composer create-project command but I don't get that where should I type that command?
I also downloaded phpmyadmin from their website and copy pasted in xampp directory and it worked well. It didn't give any such error.
What should I do?

Upvotes: 4

Views: 13293

Answers (2)

keven santos
keven santos

Reputation: 1

When you download or clone phpMyadmin it's missing the vendor folder, which is installed by Composer.

Open the phpMyadmin folder and run the composer install command. This will download and install third party dependencies and generate the vendor/autoload.php file.

Upvotes: -1

DeeBee
DeeBee

Reputation: 319

This changed as of v4.7.0 https://www.phpmyadmin.net/files/4.7.0/

Starting with this version, phpMyAdmin uses Composer to manage PHP library dependencies while under development. Users downloading the official source distribution will not notice a difference, however users of the git repository should refer to https://docs.phpmyadmin.net/en/latest/setup.html#installing-from-git for details.

Here's the change PR for those interested: github.com/phpmyadmin/phpmyadmin/pull/11976

Upvotes: 4

Related Questions