Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Tag Manager Plugin breaks Grav

Started by Brad Moore 3 years ago · 6 replies · 313 views
3 years ago

I am using the latest Grav. I have a few plugins installed and running well. Installing the Tag Manager plugin causes a PHP error trying to resolve the location of .../vendors/autoload.php. It seems to be looking for it in the plugin path. I looked at the code and compared it to a well functioning plugin, but could not figure out the issue. I am using the theme Quark with the blog addons from the skeleton package.

Questions? - Is this plugin useful (when it worked)? Does anyone use it now? Is anyone maintaining it (it has not been updated in 3 years)?

Thanks

3 years ago

@bjaz, When posting a question, it is always helpful to:

If you know your stuff, a solution is provided in issue #1...

3 years ago

Thank you. Some excellent points - I will try to post questions with more information in the future. I am not sure why I did not think to look at the repo issues. Excellent point. I am not an expert here, but will look into the Issue #1.
-bjaz

3 years ago

just for the record:
out of curiosity I just installed plugin tag manager and found out, the problem for the mentioned crash is the missing install of aura/autoload.
the solution is to just open a terminal in the plugin directory and then issue this command:

BASH
composer require aura/autoload

which, of course, implies you have composer installed.
after that, the plugin seems to work, see screenshot.
grafik|690x285

..additional note:
of course, a better solution (which eliminates the need to manually issue a composer require command) is to add aura/autoload to the file composer.json, so it will read

TXT
"require": {
    "php": ">=7.1.3",
    "aura/autoload": "^2.0"
  },

in the appropriate section.
maybe I'll create a pull request in the plugin github repo, although there seems to be little hope for this to be merged.

last edited 07/16/23 by Werner Joss
3 years ago

just a note for anyone who wants to use this plugin, here is my fork which contains aura/autoload incl. the necessary vendor folder, so it can be tested without having to fiddle with composer/missing files.
feedback is welcome, and, as stated above, I will then eventually create a pull request to the original author.

3 years ago

Wow. Thanks for the forked Repo and the fix. I downloaded it and installed it and it works great.

3 years ago

ok, fine to see it works for you.
I have now created this pull request for the Plugin author.
let's see if there is any reaction...

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 49 1 week ago
Plugins · by Xavier, 4 weeks ago
2 57 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1184 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 75 2 months ago