Announcement

  •  » Beta testing
  •  » 12.0.0beta2 Some help with not installable plugins

#1 2021-08-21 13:35:47

kolloid
Member
2021-08-17
6

12.0.0beta2 Some help with not installable plugins

Hello,

I have been bit once recently with plugins than do not load for whatever reason, in my case wrong folder permissions.
So I modifed slightly a couple of piwigo files related to plugin loading in my local copy to detect the more obvious of these problems and now I feel better.

Now I get a log of every plugin loaded on my Firefox developer console. I also save this info on a logfile, in case I'm not debugging locally:

[2021-08-21T13:03:19+02:00] ./plugins/language_switch Plugin accepted

[2021-08-21T13:03:19+02:00] ./plugins/NoWay Warning: not readable file or folder

[2021-08-21T13:03:19+02:00] ./plugins/PWG_Stuffs Plugin accepted

[2021-08-21T13:03:19+02:00] ./plugins/NoWay2 Warning: main.inc.php file not readable in plugin folder

[2021-08-21T13:03:19+02:00] ./plugins/ContactForm Plugin accepted

[2021-08-21T13:03:19+02:00] ./plugins/Incomplete Warning: main.inc.php file missing in plugin folder

and so on.

It's just a few lines of code really, but I find it useful. I will share the code if some Piwigo developer finds it useful for integrating in the distribution.
Tom

Offline

 
  •  » Beta testing
  •  » 12.0.0beta2 Some help with not installable plugins

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact