![]() |
|
register plugin with colorbox plugin NOT activated - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: register plugin with colorbox plugin NOT activated (/thread-8179.html) |
register plugin with colorbox plugin NOT activated - gjr - 2011-01-29 Seems to throw up a fatal error: Fatal error: Call to a member function getCurrentTheme() on a non-object in /home/.../public_html/.../zp-core/zp-extensions/colorbox.php on line 20 when I activate colorbox plugin seems to be ok. Am I missing something? zenpage theme, latest release register plugin with colorbox plugin NOT activated - sbillard - 2011-01-29 Can you be a bit more specific? What exactly is the circumstance where this error occurs? register plugin with colorbox plugin NOT activated - gjr - 2011-01-29 Sorry, here are the circumstances: Colorbox plugin NOT enabled; 1.4.0.1, Zenpage theme register plugin with colorbox plugin NOT activated - sbillard - 2011-01-29 Hmm. I cannot reproduce this. Nor does it really make any sense. If the colorbox plugin is not enabled, then it should not be loaded, so could not throw any errors. If you can reproduce the failure, please look in your database "options" table and find the option for register plugin with colorbox plugin NOT activated - gjr - 2011-01-30 Yeah - I know it doesn't make any sense, weird. I can reproduce it, and the value in the database is 0. I will try to investigate further. I cannot figure out why colorbox.php would be called, unless it was being forced by another plugin, but I cannot find it anywhere in register_user.php. Is there any place where colorbox is force loaded, say in the admin files or something? I noticed the register_user.php loads some admin files. Also, why would this error even be happening, the error in colorbox.php is: ` $_zp_gallery->getCurrentTheme() ` why would this be throwing a fatal error? register plugin with colorbox plugin NOT activated - sbillard - 2011-01-30 colorbox is force loaded in admin-globals.php, but then the OFFSET_PATH define should be non-zero, so that code should not be invoked. But I guess if somewhere the admin-globals are bein loaded without that define set it could be the problem. On the otherhand, your description indicates that this is happening on the front-end. In that case, the $_zp_gallery variable should also be defined. This could be avoided by changing that bit of code to first create its own copy af a gallery object, then using that copy. But still would like to know how this is happening, specially since I did not reproduce it. [edit] register plugin with colorbox plugin NOT activated - gjr - 2011-02-01 Thank you sbillard. Your edits in the nightly has solved my issue. |