Page 1 of 1

Gallery image module 2.7 class PhocaGalleryLibrary not found

Posted: 23 Oct 2010, 17:56
by Thogrum
I have a problem with the Phoca gallery image module 2.7.1
I'm running Joomla 1.5.20 and have following versions installed:

Phoca gallery component 2.7.5
Phoca gallery image module 2.7.1
Phoca gallery plugin 2.7.2
Phoca slideshow plugin 2.7.1
Phoca gallery button 2.7.1

Everything works great on most pages of my website but when I open a page with a form on it that's created with the Breezing Forms component, then I get the following error:

Fatal error: Class 'PhocaGalleryLibrary' not found in /httpdocs/modules/mod_phocagallery_image/mod_phocagallery_image.php on line 38

This happens on all pages that have one of these forms.
When I disable the phoca gallery image module, then the forms load without any problems.

Is there something I could add to the code to make it load the class anyway?
I like the component and module, you did a great job, so I would like to keep them running.

Re: Gallery image module 2.7 class PhocaGalleryLibrary not f

Posted: 27 Oct 2010, 20:43
by Jan
Hi, check your module version again, the 2.7.1 includes this:

Code: Select all

if (! class_exists('PhocaGalleryLoader')) {
    require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocagallery'.DS.'libraries'.DS.'loader.php');
}
which loads the library class ???

Code: Select all

$library 			= &PhocaGalleryLibrary::getLibrary();
Then this should be OK, as the class file is loaded :idea:

Re: Gallery image module 2.7 class PhocaGalleryLibrary not f

Posted: 09 Nov 2010, 12:15
by Thogrum
Hello Jan,

That code is included in the module code. It is the correct version.
I solved this by throwing out the old Breezing Forms component and replacing it with JForms which doesn't have any problem with the Phoca Gallery module.
Thanks for your help. Keep up the good work :D

Re: Gallery image module 2.7 class PhocaGalleryLibrary not f

Posted: 13 Nov 2010, 18:53
by Jan
Ok