Phoca Gallery Image Module v4.4.0 not working properly

Phoca Gallery - image gallery extension
jagg1010
Phoca Member
Phoca Member
Posts: 36
Joined: 22 Nov 2021, 02:18

Phoca Gallery Image Module v4.4.0 not working properly

Post by jagg1010 »

Hi,

I've installed mod_phocagallery_image_v4.4.0 (using Joomla v4.3.2 and Phoca Gallery v4.5.3) but when I try to open the module I'm getting this error(s).

Is the Phoca Gallery module not yet ready for Joomla4 / PHP 8.2?

Image
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9689
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by Benno »

Hi,
Is the Phoca Gallery module not yet ready for Joomla4 / PHP 8.2?
Yes, that's right. Jan has written an article on this topic: How to display Phoca Gallery Images in module position with help of Phoca Gallery Plugin.

Kind regards,
Benno
jagg1010
Phoca Member
Phoca Member
Posts: 36
Joined: 22 Nov 2021, 02:18

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by jagg1010 »

The plugin would be more than enough but I don't succeed with the plugin code here ;)

What I want is to display 9 random images (doesn't matter which category).

Problems
1) I only can select ONE category where the images came from (random from all categories isn't possible, is it)?
2) I ended up with this plugin code "phocagallery view=category-masonry|categoryid=5|limitcount=9|imagerandom=1" but although I've set imagerandom=1 the 9 images which are displayed are always the same
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9689
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by Benno »

Hi,
the correct syntax for the Phoca Gallery Plugin for J4 for random is: imageordering=9
Perhaps you should install the current Phoca Gallery Button Plugin to create valid code and to see which parameters currently exist for the Phoca Gallery Plugin for J4 and which do not.
See images:

Image

Image

Image

Kind regards,
Benno
jagg1010
Phoca Member
Phoca Member
Posts: 36
Joined: 22 Nov 2021, 02:18

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by jagg1010 »

Thanks again - with that button I end up with something like

Code: Select all

{phocagallery view=category-masonry|categoryid=5|limitstart=0|limitcount=17|max=9|imageordering=9}
but I can refresh the site 100x times - the 9 displayed images are always the same (and not random) :!: :idea:
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9689
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by Benno »

Hi,
check the version of Phoca Gallery Plugin. Should be v4.5.4

Kind regards,
Benno
jagg1010
Phoca Member
Phoca Member
Posts: 36
Joined: 22 Nov 2021, 02:18

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by jagg1010 »

It is :|

Image
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9689
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by Benno »

Hi,
Are you getting any error messages, e.g. in the JS console?
Can you post the URL?

Kind regards,
Benno
jagg1010
Phoca Member
Phoca Member
Posts: 36
Joined: 22 Nov 2021, 02:18

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by jagg1010 »

Ok, I think I found the problem. If I have System caching ON in joomla global config the pictures are always the same. When I disable the system cache everything is ok - the pictures are random.

Can I only disable the caching for this plugin/modul or is this not possible?

Update: found it in module settings - set cache to 'no cache' in the custom module and now the pictures are random. Thanks for your help!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48689
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Gallery Image Module v4.4.0 not working properly

Post by Jan »

OK
If you find Phoca extensions useful, please support the project
Post Reply