Failed to open vendor/autoload.php (v2022)

hello every body,
i hope you all are doing well
i have a problem.
I installed phpmaker version 2022
I opened a project designed on phpmaker v12
I updated php version 8.1 I installed node js version 20
I installed and started phpmaker v2022 as administrator
as soon as I generate the code everything goes well but towards the end at 100%, I encounter this error (in the genertor window):"Error: Command failed: composer update -n
at checkExecSyncError (node:child_process:885:11)
at execSync (node:child_process:957:15)
at global.Exec (C:\Users\admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:260981)
at global.RunComposerUpdate (C:\Users\admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:266473)
at C:\Users\admin\AppData\Roaming\PHPMaker2022\node_modules@phpmaker\core\phpmaker.js:8:272021
at {"Every time I try to open the application from the web browser, I see these errors appear."Warning: require_once(vendor/autoload.php): failed to open stream: No such file or directory in C:\wamp64\www\ARICAMGPRH-SERVER\ARICAMGPRHV2\index.php on line 24Fatal error: require_once(): Failed opening required ‘vendor/autoload.php’ (include_path=‘.;C:\php\pear’) in C:\wamp64\www\ARICAMGPRH-SERVER\ARICAMGPRHV2\index.php on line 24"I even checked the php.ini but nothing helped.
I don’t know what to do.

You had composer error, you must not ignore it. The last line of the composer message should be:

Generation completed with error(s), please scroll up (if necessary) to check error(s) highlighted in red.

As it suggested you should scroll up to find the exact composer error. You probably had PHP errors related to PHP 8.1 (e.g. missing some PHP extension).

Thank you for your response,
indeed the last line displays the message you showed.
I just showed the posts displayed in red so you can see.I read on this forum a topic relating to a similar problem and to composer… except that I applied practically everything that is asked:
I checked the php version, tracked all the extensions including the “intl”. I just don’t know how to check the version of the extensions and their compatibility with composer.
I use wamp server (version 3.2.6) on my laptop (window 11)I would like if possible to know by where to access these extension files and how to check the said compatibilities, please
I don’t have much experience in this area and this is the first time I’ve encountered this kind of error.thanks in advance

You may read:

  • Composer (Check the required extensions)
  • phpinfo (Which shows all the modules loaded by your PHP. If any is missing, you need to install.)

Thanks for all these leads.
Decidedly without you in this forum I will be lost
Big thanks

Good morning
thank you for the information provided above

  • I checked everything as indicated
  • I noticed 2 extension (oci8_12c, php-sqlsrv-80-ts) which did not exist at all in the list of available php 8.1.0 extensions in my server wamp
  • I scrupulously installed the ones that weren’t installed yet
  • I redid the test and the same error message appeared
    then I noticed in this error message it was also indicated that the php version declared at composer was 5.5, however in my wamp server it was version 8.1.0 that I had activated
  • I uninstalled composer
    by restarting phpmaker v2022 it offered me the installation of composer and I accepted,
    during the installation I chose the directory of php 8.1.0 (actually it was that of 5.5 which was in compser)
    after the installation I redid the test
    the execution went beyond last time, but towards the end, an error message again…except that the latter is different from the former
    There is no longer any mention of composer anywhere, but of something else:

Error: Failed to compile .scss file.The “vendor” folder appeared this time in the root. But there is
more almost all similar error messages:“Deprecated: Return type of PHPMaker2022\ARICAMGPRHV2\Attributes::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\wamp64\www\ARICAMGPRH-SERVER\ARICAMGPRH2\src\Attributes.php on line 29”

After installing those 2 PHP extensions, make sure you have already enabled all of it from php.ini file that used by your web server.For example, I am using Wamp server in my localhost, with PHP v8.2.7 and Apache 2.4.51, and I need to enable that PHP extensions from C:\wamp\bin\php\php8.2.7\phpForApache.ini file. I can see that PHP extensions, too from C:\wamp\bin\apache2.4.51\bin\php.ini file.Then, restart your web server after enabling it from that *php.ini file to apply the changes.

casolerusse wrote:

“Deprecated: Return type of PHPMaker2022\ARICAMGPRHV2\Attributes::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress> the notice in> C:\wamp64\www\ARICAMGPRH-SERVER\ARICAMGPRH2\src\Attributes.php on line> 29”

You are not using the latest version and template of v2022 (i.e. v2022.12), you may click Tools → Update Template to update. You better upgrade to v2023.

Thank you for your help
finally everything seems to be working fine
I made a complete code generation without errors.
For everything to work finally I had to update the version of the template
then select a new theme for my project and everything worked.
but when I connect to the web application, I see that everything is ok except the files which are not uploaded:
an error that appears:"Warning: file_put_contents(): Exclusive locks may only be set for regular files in C:\wamp64\www\ARICAMGPRH-SERVER\ARICAMGPRHV2\src\phpfn.php on line 3188"I created a new project from 0 on the 2022 version and everything works perfectly
I conclude that all these errors mainly come from the fact that I was in the process of migrating a project created in phpmaker 2012 to phpmaker 2022.
Thank you again for this forum without which I would not have succeeded.