Gallery module crashes my site

Phoca Gallery modules - modules for Phoca Gallery extension
ellare
Phoca Member
Phoca Member
Posts: 12
Joined: 21 May 2010, 19:52

Gallery module crashes my site

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48386
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery module crashes my site

Post 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
If you find Phoca extensions useful, please support the project
ellare
Phoca Member
Phoca Member
Posts: 12
Joined: 21 May 2010, 19:52

Re: Gallery module crashes my site

Post 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
ellare
Phoca Member
Phoca Member
Posts: 12
Joined: 21 May 2010, 19:52

Re: Gallery module crashes my site

Post 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
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9435
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Gallery module crashes my site

Post by Benno »

Well done! :twisted:
Kind regards,
Benno
Post Reply