Hi, Phoca Gallery Random Image displays the detail image in Phoca Gallery Component, so it needs a component Itemid, Component Itemid is created only in case there is some menu link to component...
If SEF is enabled and:
there is a menu link to component view - categories or category view, then the module will find this menu link and will use it because of getting all the parameters from the module, if not then there is a problem with creating menu link if SEF is enabled (if SEF is disabled, everything is ok)
e.g.:
/media/videos/3-video/detail/6-greyfilmreel?tmpl=component (SUCCESS)
URL in Random Module: /component/phocagallery/3-video/detail/6-greyfilmreel?tmpl=component&detail=0&buttons=1(FAIL)
this should be not created: /component/phocagallery/ ... but this should be created: /media/videos/ in case Phoca Gallery Module find the menu link of component
so, it should be:
/media/videos/3-video/detail/6-greyfilmreel?tmpl=component (SUCCESS)
URL in Random Module: /media/videos/3-video/detail/6-greyfilmreel?tmpl=component&detail=0&buttons=1(FAIL)
It should take the link from: categories view menu link or category view menu link ... in this case, e.g. module find the Itemid of menu link to categories view and add this Itemid to the link which is created in module... then JRoute method should take the settings from found menu link
see demo:
https://www.phoca.cz/phocagallery/demo/ ... it allways take the menu link URL but why it doesn't work on some servers, still no idea
Jan