I noticed in the image.php file there are still two instances of the following code:
$query = 'SELECT pk FROM cms_module_imagegallery_image WHERE album_pk=? AND order_nr < ? ORDER BY PK DESC LIMIT 0,1;';
If you don't prefix your cms tables with 'cms_', this will cause some wee problems when you come to view the image galleries... Replace with the following:
$query = 'SELECT pk FROM '.cms_db_prefix().'module_imagegallery_image WHERE album_pk=? AND order_nr < ? ORDER BY PK DESC LIMIT 0,1;';
and it'll work fine.
ImageGallery 0.3
Re: ImageGallery 0.3
I'm having a bit of trouble with my install of 0.3. I think it is related to path in PHP but am not sure. I am on a shared server so can't change any of my PHP settings. Can anyone help?
Warning: main(album.php): failed to open stream: No such file or directory in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 20
Warning: main(): Failed opening 'album.php' for inclusion (include_path='') in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 20
Warning: main(util.php): failed to open stream: No such file or directory in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 21
Warning: main(): Failed opening 'util.php' for inclusion (include_path='') in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 21
Warning: main(image.php): failed to open stream: No such file or directory in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 22
Warning: main(): Failed opening 'image.php' for inclusion (include_path='') in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 22
Warning: main(template.php): failed to open stream: No such file or directory in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 23
Warning: main(): Failed opening 'template.php' for inclusion (include_path='') in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 23
Warning: main(SmartyStringResource.php): failed to open stream: No such file or directory in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 24
Warning: main(): Failed opening 'SmartyStringResource.php' for inclusion (include_path='') in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 24
Warning: main(SimpleFileMananager.php): failed to open stream: No such file or directory in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 26
Warning: main(): Failed opening 'SimpleFileMananager.php' for inclusion (include_path='') in /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php:20) in /home/thehoyts/public_html/lib/classes/class.admintheme.inc.php on line 158
Warning: Cannot modify header information - headers already sent by (output started at /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php:20) in /home/thehoyts/public_html/lib/classes/class.admintheme.inc.php on line 161
Warning: Cannot modify header information - headers already sent by (output started at /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php:20) in /home/thehoyts/public_html/lib/classes/class.admintheme.inc.php on line 164
Warning: Cannot modify header information - headers already sent by (output started at /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php:20) in /home/thehoyts/public_html/lib/classes/class.admintheme.inc.php on line 165
Warning: Cannot modify header information - headers already sent by (output started at /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php:20) in /home/thehoyts/public_html/lib/classes/class.admintheme.inc.php on line 168
Warning: Cannot modify header information - headers already sent by (output started at /home/thehoyts/public_html/modules/ImageGallery/ImageGallery.module.php:20) in /home/thehoyts/public_html/lib/classes/class.admintheme.inc.php on line 173