Page 1 of 1

Gallery module crashes my site

Posted: 21 May 2010, 19:59
by ellare
i just installed module 2.7.1 and when i enable it - i get this error

Fatal error: Class 'PhocaGalleryRoute' not found in /home/kiddsl5/public_html/usasolarpower.com/joomla17/modules/mod_phocagallery_image/mod_phocagallery_image.php on line 607


line 607 of the PHP reads:
$siteLink = JRoute::_(PhocaGalleryRoute::getImageRoute($valueImages->id, $valueImages->catid, $valueImages->alias, $valueImages->catalias, 'detail', $suffix ));

i also have the component installed and working. just the module won't work.

suggestions?
LrG

Re: Gallery module crashes my site

Posted: 21 May 2010, 22:45
by Jan
Hi, there is no Phoca Gallery Random Image with version 2.7.1

There is only Phoca Gallery Image Module 2.7.1

and it loads the class:

Code: Select all

if (! class_exists('PhocaGalleryLoader')) {
    require_once( JPATH_ADMINISTRATOR.DS.'components'.DS.'com_phocagallery'.DS.'libraries'.DS.'loader.php');
}
phocagalleryimport('phocagallery.path.path');
phocagalleryimport('phocagallery.path.route');
:idea:

See:
viewtopic.php?f=1&t=9225&p=38546#p38546

Jan

Re: Gallery module crashes my site

Posted: 21 May 2010, 23:12
by ellare
I did not see a forum for "Phoca Gallery Image Module 2.7.1"

I don't follow your comments about "it loads this class" - PGIM 2.7.1 loads the class or the other Random Image module loads the class?

what does laoding the class have to do with my "route not being found" error?

The forum discussion you listed has "gallery" mispelled which makes it difficult in finding answers in the forum.

And the dicussion in that forum didn't answer the questions as to why/what to do.

What do I need to do to get this module working and avoid a site crash like the individual in the forum went thru?

Thanks
LrG

Re: Gallery module crashes my site

Posted: 24 May 2010, 18:56
by ellare
SOLVED!!
apparently my component was version 2.6.2 and not the latest 2.7.1.

I downloaded 2.7.1 from Phoca site and installed and it all works great now!

extensions.joomla.org is offering the 2.6.2 version - so beware!

Thanks!
LrG

Re: Gallery module crashes my site

Posted: 24 May 2010, 22:37
by Benno
Well done! :twisted:
Kind regards,
Benno