FutureProcessing / glpi-webhook

GNU Affero General Public License v3.0
7 stars 4 forks source link

The subscription form doesn't appear anywhere #1

Closed heizac closed 2 years ago

heizac commented 2 years ago

Maybe I added the plugin in a wrong way (cuz there's /glpi/plugins/ and /glpi/files/_plugins i'm not sure where it should go, since there are plugin's folders in both these places) but I couldn't find the subscription form. The fpwebhook folder's permissions are the same as the other folders.

Something that I find strange is that a tab with the plugin's name was added in the Self-Service profile and not in the Super-Admin profile. When I go to the tab Plugins > FP Webhook I can see this: Screenshot1 I have no idea what I can do with this index.

And when I go to the configuration page of the plugin in the Super-Admin profile it only shows this: Screenshot 2021-12-10 at 11-35-25 GLPI - TITLE

Self-Service tabs: Screenshot from 2021-12-10 11-43-24 Super-Admin tabs: Screenshot from 2021-12-10 11-41-53

mikron-ia commented 2 years ago

The plugin directory should go only into the plugins/ directory. Please remove the files/_plugins/ copy.

The first image you posted is the configuration page and this is the correct behavior. As for the subscription list, after activating the plugin, you should be seeing this in menu (as the Super-Admin):

image

If you do, the Webhook subscriptions position will lead you to the list of subscriptions. You can also try to access the list manually under [your GLPI host address]/plugins/fpwebhook/front/subscription.php.

If you don't see that link, please provide more details on your installation (first and foremost, please list other plugins you have installed, since plugins are known to interfere with each other and sometimes break because of that) so this issue can be debugged.

heizac commented 2 years ago

Ok, I removed the copy from files/_plugins/ and left it only at plugins/

I get it that the index page should appear like that, but shouldn't it be somewhere else? I mean, the Self-Service profile can see that just clicking on Plugin and then FP Webhook, as you can see in the third image of my first post (Self-Service tabs). It doesn't make sense to me that any of that should appear on the Self-Service profile, but that's one thing, the other and more important is that I can't see the subscription page anywhere.

I tried to access manually, as Super-Admin: (and also, that's the other plugins I have. Do they all have the right permissions? I wonder if the owner and group should be www-data instead of root) Screenshot from 2021-12-13 08-30-34

The way I installed fpwebhook was simply downloading the plugin, unziping it and moving it to the /plugins folder. Then I enabled it at GLPI.

I think I'm gonna remove it all and try again from scratch. I'm kinda new to GLPI, so there's a lot of things I don't know how they should behave.

CoferFerro commented 2 years ago

Same problem ....

mikron-ia commented 2 years ago

Since I am unable to reproduce the issue, I reworked the piece that might be the possible reason. If you're willing to test the potential solution, please use the installation-fix branch from #2.

heizac commented 2 years ago

Ok, now I can see that page, but there's no Save button so I couldn't manage to save anything. And it doesn't appear to be saving anything just by getting out of the page. Am I missing something here or a button is really missing?

Screenshot from 2021-12-20 11-13-21

mikron-ia commented 2 years ago

Thank you for the verification! As for the button, exiting w/o saving does not save anything and this is the intended appearance: image so you should be seeing the Add button. Investigation on this is in progress.

mikron-ia commented 2 years ago

Since the missing button is a separate issue from the subscription list & form availability, I'm closing this issue since the availability issue is resolved. The problem should no longer exist in the next minor release.