Page 1 of 1

Phoca Gallery Image Module v4.4.0 not working properly

Posted: 27 Jun 2023, 17:12
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

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

Posted: 27 Jun 2023, 18:41
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

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

Posted: 29 Jun 2023, 15:20
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

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

Posted: 29 Jun 2023, 15:51
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

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

Posted: 30 Jun 2023, 07:44
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:

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

Posted: 30 Jun 2023, 10:04
by Benno
Hi,
check the version of Phoca Gallery Plugin. Should be v4.5.4

Kind regards,
Benno

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

Posted: 30 Jun 2023, 11:03
by jagg1010
It is :|

Image

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

Posted: 30 Jun 2023, 16:30
by Benno
Hi,
Are you getting any error messages, e.g. in the JS console?
Can you post the URL?

Kind regards,
Benno

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

Posted: 04 Jul 2023, 07:58
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!

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

Posted: 05 Jul 2023, 18:51
by Jan
OK