ZenphotoCMS Forum
Plugin auto discovery not working - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html)
+--- Thread: Plugin auto discovery not working (/thread-14071.html)



Plugin auto discovery not working - photohacker - 16-10-2025

Zenphoto version 1.6.1
When I add "example.php" and folder "example" to the plugins folder it is not discovered and not shown as available.
"Third party plugins are placed in the plugins folder and are automatically discovered."
I have tried 5 different plugins and none show as available.

TIA
-Ben




Plugin auto discovery not working - acrylian - 17-10-2025

Besides that 1.6.1 is not the current version, is the plugin setup correctly? See the demo plugin for a basic setup:
https://github.com/zenphoto/demo-plugin

If it is what do the logs say?




Plugin auto discovery not working - photohacker - 17-10-2025

FYI

Upgraded to 1.6.8. worked OK until I installed the demo-plugin and then the admin pages went blank. Gallery was still working. Uninstalled it and admin pages were back.

-Ben




Plugin auto discovery not working - acrylian - 17-10-2025

The demo plugin is not really functional and is more a general code template to create an actual custom plugin. We'll look at why it broke the admin though.

What was in the logs regarding that?




Plugin auto discovery not working - acrylian - 17-10-2025

Found it. Some backticks within a comment block were the reason. The repo has been updated.