Image Module: undefined variables with missing images
Posted: 11 Oct 2011, 10:11
Hi there,
first off thanks for the great Phoca gallery, I really appreciate all the hard work that has gone into it! I'm using the gallery on my 1.7 installation and it works great. I now wanted to try the "Phoca Gallery Image Module", but that seems not to work at the moment, at least for me; when "Module Type" "default" is configured, it shows the following warning for me:
16 times
and no images. If I remove the variable as function parameter in that line (I thought I can try, since the function PhocaGalleryAccess::getUserRight called there has a default parameter there anyway), it will show borders for where the images should be, but no images.
When switching to "Mosaic" module type, I get another problem:
5 times (the number of images configured to be shown)
And also no pictures are shown (haven't tried to fix that case yet, since the problem seems to come from the fact that it doesn't find the images somehow...
Does anybody have an idea what's wrong here? Have I maybe configured the phoca gallery wrong somehow? When using the component itself, though, all images show just fine and I have no problems whatsoever.
In addition, I'd actually like to have pictures of subcategories shown, not only pictures in a category... since I have users adding categories themselves, and I wanted to use this module to show the newest pictures -> so I don't want to choose the subcategory to show the pictures from beforehand, but let them be chosen from the newest subcategory in a main category - is that possible?
first off thanks for the great Phoca gallery, I really appreciate all the hard work that has gone into it! I'm using the gallery on my 1.7 installation and it works great. I now wanted to try the "Phoca Gallery Image Module", but that seems not to work at the moment, at least for me; when "Module Type" "default" is configured, it shows the following warning for me:
Code: Select all
Notice: Undefined variable: display_access_category in modules/mod_phocagallery_image/mod_phocagallery_image.php on line 488
and no images. If I remove the variable as function parameter in that line (I thought I can try, since the function PhocaGalleryAccess::getUserRight called there has a default parameter there anyway), it will show borders for where the images should be, but no images.
When switching to "Mosaic" module type, I get another problem:
Code: Select all
Notice: Undefined variable: imageOrigWidth in modules/mod_phocagallery_image/mod_phocagallery_image.php on line 747
Notice: Undefined variable: imageOrigWidth in modules/mod_phocagallery_image/mod_phocagallery_image.php on line 777
Notice: Undefined variable: imageOrigHeight in modules/mod_phocagallery_image/mod_phocagallery_image.php on line 777
And also no pictures are shown (haven't tried to fix that case yet, since the problem seems to come from the fact that it doesn't find the images somehow...
Does anybody have an idea what's wrong here? Have I maybe configured the phoca gallery wrong somehow? When using the component itself, though, all images show just fine and I have no problems whatsoever.
In addition, I'd actually like to have pictures of subcategories shown, not only pictures in a category... since I have users adding categories themselves, and I wanted to use this module to show the newest pictures -> so I don't want to choose the subcategory to show the pictures from beforehand, but let them be chosen from the newest subcategory in a main category - is that possible?