Well yes. I have downloaded it via zip.
I want to create a plugin so when I follow the tutorial I get into the second part (bin/plugin devtools new-plugin).
Then i fill all the informations they asking me to and after the plugin is successfully created console prints run composer update.
From now on Admin page is not working.
But the composer error is showing even before those steps.
Okay… I did what you said and I am able to use composer in other than root directories. In root directory it is showing me still the same error and after installation of new own plugin admin page shows error 500.
When I typed composer update in directory grav/user/plugins/test it wrote:
root@server: …/user/plugins/test# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Warning from https://packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
In RuleSetGenerator.php line 286:
“continue” targeting switch is equivalent to “break”. Did you mean to use “continue 2”?
After installation of Grav 1.7.7 problem still occurs.
The only change is when I navigate myself into the new plugin directory and use a command composer update, composer works normally. BUT admin site still has a problem with autoload after that.
did you check if the vendor/autoload.php created by composer is there ?
another hint: you seem to run composer as root, which is bad.
if you do so, you should do chown -R www-data * afterwards (and maybe even flx file/dir permissions).
plus, did you update composer ?
(run composer selfupdate)
I came across this thread whilst setting up grav and starting to look at writing a blueprint / plugin .
I installed the latest current version 1.7.6 and the devtools plugin.
I had the same issue on how it broke the site after running devtools new-plugin …
vendor / autoload.php had not been created, so I try to run the composer update and saw the error about running it in the plugin directory ( fails due to can only be run from grav root )
Again composer selfupdate didnt work, so I went to the composer site and downloaded and updated the composer (working on windows) and viola it finally ran and configured the plugin and stopped the error.
So the error seems to be because of composer incompatibility, so possibility it may need to checked out by the dev team.
Which way is the correct way to run composer update , I am not sure as advised in the post, running it from the plugin directory or not, I am not that clever to say lol !