Warning: require_once(vendor/autoload.php): Failed to open stream: No such file or directory

Hi, I am getting this error while generating files,

Error: Command failed: composer update -n --ansi
    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at checkExecSyncError (node:child_process:891:11)
    at execSync (node:child_process:963:15)
    at global.Exec (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:316156)
    at global.RunComposerUpdate (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:325094)
    at C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:335186
    at <anonymous>
    at async main (C:\Users\User\AppData\Roaming\PHPMaker2024\node_modules\@phpmaker\core\phpmaker.js:8:334887) {
  status: 2,
  signal: null,
  output: [ null, null, null ],
  pid: 9636,
  stdout: null,
  stderr: null
}
Node.js v20.17.0
Error: Generation completed with error(s), please scroll up (if necessary) to check error(s).

and when i run code, iam getting this error

Warning: require_once(vendor/autoload.php): Failed to open stream: No such file or directory in C:\xampp\htdocs\aca\index.php on line 24

Fatal error: Uncaught Error: Failed opening required 'vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\aca\index.php:24 Stack trace: #0 {main} thrown in C:\xampp\htdocs\aca\index.php on line 24

Please help me on this

https://discourse.hkvstore.com/t/failed-opening-required-vendor-autoload-php/5218/1

Read Composer. Make sure you have done composer update successfully.

How to do this “Open a command prompt at the project folder and run: composer update.”?
Please explain me clearly.

If you don’t know how, you may simply delete “vendor” folder (if exists) in your project folder and generate all files again. The “composer update” will be run automatically, watch the messages shown in the progress form, you should see the progress of composer update, do not ignore any errors. You can also easily google “php composer update” to find a lot of info.

I have latest version composer, but still i am getting this error. why?

arbei wrote:

If you don’t know how, you may simply delete “vendor” folder (if exists) in your project folder and generate all files again.

Have you already done that? The “vendor” folder is located under the root folder of your generated web application.

I don’t have any vendor folder, i tried once again to generate all files and same error getting at 99%

arbei wrote:

Make sure you have done composer update successfully.> The “composer update” will be run automatically, watch the messages shown in the progress form, you should see the progress of composer update, > do not ignore any errors> .


  1. Make sure you select a writable project folder, e.g. D:\MyProjectFolder, avoid C:\xxx, remote folder, OneDrive, GoogleDrive which you mau not have write permission.
  2. Enable Composer Update when you generate, and generate all files. Do not ignore errors, post the errors you see.
  3. Read Composer again, follow the instructions and test your PC, make sure you have installed Composer and and it is working properly.

Hi,
I did as i understood but no result.

What worked for me was enabling the zip extension in php.ini.
[;extension=zip] → [extension=zip] so delete point comma.

If you are a registered user, you may send your .pmp and .sql files to Support and another more info for checking.

I am not registered user,How to solve this?

To be a registered user of PHPMaker, then you need to purchase PHPMaker.