Now when i generate and view the project i get the following errorFatal error: Interface ‘Psr\Http\Message\RequestFactoryInterface’ not found in C:\xampp\htdocs\sb\vendor\nyholm\psr7\src\Factory\Psr17Factory.php on line 14Has anyone come across this and have any recommendations for me.
You may try to delete the “vendor” folder and composer.json in the project folder and enable “Composer update” in PHPMaker to make Composer run update and create the “vendor” folder again. (Make sure you use the latest version, v2021.0.3, as of today.)
HI all.I have got it working.You can’t do a manual install of composer. You need to:Install composer on windows (Using the windows install file). Then navigate to C:\ProgramData\ComposerSetup\bin and replace the composer.phar with version 1.10.16.
Restart the computer.
Run cmd and enter: Composer clearcache
Open Phpmaker 2021
Navigate to tools, clear template cache.
now regenerate your project with the composer update enabled… (remember to delete the project generation)
I have the same problem:Fatal error: Uncaught Error: Interface ‘Psr\Http\Message\RequestFactoryInterface’ not found in C:\Xampp\htdocs\caleven\vendor\nyholm\psr7\src\Factory\Psr17Factory.php:16using PhpMaker 2022.8.0 on Xampp (PHP Version 7.4.27)Checking composer, I gotC:\Xampp\htdocs\caleven>composer -V
Composer version 2.2.1 2021-12-22 22:21:31C:\Xampp\htdocs\caleven>composer update
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
12 packages you are using are looking for funding.
Use the composer fund command to find out more!C:\Xampp\htdocs\caleven>Checking vendor\composer\autoload_static.php, I just have (lines 152-155)
For unknown reason Composer v2.2.x removes psr/http-factory so the interface ‘Psr\Http\Message\RequestFactoryInterface’ not found.It seems that Composer v2.2.3 has fixed the issue, there is no need to downgrade Composer, you may open a command prompt and update composer itself by entering:composer selfupdate
I recently installed PHPMaker ver2021.0.15 for the first time on my Windows 11 PC and get the same error. Composer is up to date. I have tried just about everything suggested in this post without success. Always get the following errorFatal error: Interface ‘Psr\Http\Message\RequestFactoryInterface’ not found in H:\OneDrive\Veronica\My Documents\inetpub\wwwroot\eduxys.com\httpdocs\reports\prfipr2022\vendor\nyholm\psr7\src\Factory\Psr17Factory.php on line 16.Any suggestions appreciated.
I hit a similar error:
Uncaught Error: Interface “Psr\Http\Message\UriFactoryInterface” not found in /[path]/vendor/nyholm/psr7/src/Factory/Psr17Factory.php
Got it all working now.
I had my project files stored on a mapped drive and couldn’t update composer via CMD there.
Moving the project, updating composer, then regenerating files fixed the issue