Gallery: 'showlatest' shows no images
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Gallery: 'showlatest' shows no images
Hi all!
I've used Gallery on a couple of different sites, and think its a great module!
Only this time i'd like to make use of the action="showlatest" variable, but no matter what I try it always says 'Gallery 0 images', although there are images in the gallery and i've visited them as well as in the admin section and on the site itself. I've also tried 'showrandom' and 'showlatestdir' but they won't work neither.
I've also tried it on some existing websites which use the module and are on the same host but they also won't show the latest images. Could the problem be with the host?
If anybody could help that would be much appreciated,
Thnks
I've used Gallery on a couple of different sites, and think its a great module!
Only this time i'd like to make use of the action="showlatest" variable, but no matter what I try it always says 'Gallery 0 images', although there are images in the gallery and i've visited them as well as in the admin section and on the site itself. I've also tried 'showrandom' and 'showlatestdir' but they won't work neither.
I've also tried it on some existing websites which use the module and are on the same host but they also won't show the latest images. Could the problem be with the host?
If anybody could help that would be much appreciated,
Thnks
Re: Gallery: 'showlatest' shows no images
I haven't used that feature yet, but my first thought would be to make sure the template it uses for that option is bug free.
You can also create a new template used just for debugging by doing something like this:
{foreach from=$images item=image name=galleryimg}
<pre>{$image|@print_r}</pre>
{/foreach}
If you get data listed, then it might just be a template error preventing the display.
You can also create a new template used just for debugging by doing something like this:
{foreach from=$images item=image name=galleryimg}
<pre>{$image|@print_r}</pre>
{/foreach}
If you get data listed, then it might just be a template error preventing the display.
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
Re: Gallery: 'showlatest' shows no images
Just tested and works for me:
Gallery itself has only sub galleries containing photos, so it does (as described in help) find photos from sub galleries.
CMSMS 1.11.9
Gallery 1.6.1
Code: Select all
{Gallery action="showlatest" number=1}
CMSMS 1.11.9
Gallery 1.6.1
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Re: Gallery: 'showlatest' shows no images
Hi, thanks for the response. Still no luck here.
I've tried the code from Johnny B but it gives me nothing.
Also, when adding a new subgallery it asks for the new directory name and on that screen the upload button is gone. Then when I hit save it gives me the error "Updating the gallery failed.", it refreshes and the directory name input is gone and upload buttons are back. Could this have anything to do with me not being able to use the "showlatest" variable? The normal gallery works like a charm.
Using CMSMS 1.11.10 and Gallery 1.6.1
I've tried the code from Johnny B but it gives me nothing.
Also, when adding a new subgallery it asks for the new directory name and on that screen the upload button is gone. Then when I hit save it gives me the error "Updating the gallery failed.", it refreshes and the directory name input is gone and upload buttons are back. Could this have anything to do with me not being able to use the "showlatest" variable? The normal gallery works like a charm.
Using CMSMS 1.11.10 and Gallery 1.6.1
Re: Gallery: 'showlatest' shows no images
Please read this
Is this a fresh install?
How was it uploaded? By ftp?
What about your system info and installed modules?
TBH, it appears to be a corrupted files type of issue, but hard to tell from what you posted...
Is this a fresh install?
How was it uploaded? By ftp?
What about your system info and installed modules?
TBH, it appears to be a corrupted files type of issue, but hard to tell from what you posted...
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Re: Gallery: 'showlatest' shows no images
Hi, sorry about that.
I did a fresh install, twice actually. And also tried it on an existing site running gallery. All uploaded via ftp.
Running these modules:
[list]
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.4
MenuManager: 1.8.6
MicroTiny: 1.2.6
ModuleManager: 1.5.5
News: 2.14.2
Search: 1.7.11
ThemeManager: 1.1.8
CGSimpleSmarty: 1.7.1
CGExtensions: 1.38.1
CGBlog: 1.10.3
CGSmartImage: 1.15
CGCalendar: 1.13.3
Gallery: 1.6.1
[/list]
But it also didn't work on a fresh install without extra modules.
Config Information:
[list]
php_memory_limit:
process_whole_template:
max_upload_size: 50000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true[/list]
Php Information:
[list]
phpversion: 5.3.3
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 50M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)[/list]
Server Information:
[list]
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 4.1.21
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
[/list]
I did a fresh install, twice actually. And also tried it on an existing site running gallery. All uploaded via ftp.
Running these modules:
[list]
CMSMailer: 5.2.2
CMSPrinting: 1.0.5
FileManager: 1.4.4
MenuManager: 1.8.6
MicroTiny: 1.2.6
ModuleManager: 1.5.5
News: 2.14.2
Search: 1.7.11
ThemeManager: 1.1.8
CGSimpleSmarty: 1.7.1
CGExtensions: 1.38.1
CGBlog: 1.10.3
CGSmartImage: 1.15
CGCalendar: 1.13.3
Gallery: 1.6.1
[/list]
But it also didn't work on a fresh install without extra modules.
Config Information:
[list]
php_memory_limit:
process_whole_template:
max_upload_size: 50000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true[/list]
Php Information:
[list]
phpversion: 5.3.3
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 8192
memory_limit: 128M
max_execution_time: 30
output_buffering: On
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 32M
upload_max_filesize: 50M
session_save_path: /tmp (0777)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)[/list]
Server Information:
[list]
Server Api: cgi-fcgi
Server Db Type: MySQL (mysqli)
Server Db Version: 4.1.21
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable
Server Time Diff: No filesystem time difference found
[/list]
Re: Gallery: 'showlatest' shows no images
RappScallion wrote:I've also tried it on some existing websites which use the module and are on the same host but they also won't show the latest images. Could the problem be with the host?
RappScallion wrote:Also, when adding a new subgallery it asks for the new directory name and on that screen the upload button is gone. Then when I hit save it gives me the error "Updating the gallery failed.", it refreshes and the directory name input is gone and upload buttons are back. Could this have anything to do with me not being able to use the "showlatest" variable? The normal gallery works like a charm.
With the the given info, and given the equal behavior on all sites on the same host, either there is a file permission issue or Open Basedir restrictions may be in effect. BTW why do you use ftp to upload modules? Can't you use Module Manager for some reason or is it your option?RappScallion wrote:All uploaded via ftp.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Re: Gallery: 'showlatest' shows no images
Oh no I do use the Module Manager, thought you meant how I upload CMSMS
Is it possible for me to fix those permissions and/or restrictions myself or is it better to search for a different host?

Is it possible for me to fix those permissions and/or restrictions myself or is it better to search for a different host?
Re: Gallery: 'showlatest' shows no images
If you have access to (error) log files of apache, they could help.
It could well be a mod_security issue and those should appear in the apache error logs.
I've also seen strange behavior on some hosts where the /module/Gallery directory had too HIGH permissions (then needed to change 777 to 755 recursively).
It could well be a mod_security issue and those should appear in the apache error logs.
I've also seen strange behavior on some hosts where the /module/Gallery directory had too HIGH permissions (then needed to change 777 to 755 recursively).
Re: Gallery: 'showlatest' shows no images
Depends... Some host allow for some control on the part of user regarding settings, and these come in a few flavors:RappScallion wrote:Is it possible for me to fix those permissions and/or restrictions myself or is it better to search for a different host?
- - through CPanel (or the equivalent control/admin panel);
- - by using a directive on .htaccess;
- - by using a custom php.ini on the site (or domain/sub-domain) root with just the settings you need to override;
Regarding permissions it's easier: you can set them either through ftp or file manager. If for some reason doing it via ftp doesn't work it may have to be done by php (file manager on cpanel for instance) - meaning there are some other server settings that affect ownership too.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Gallery: 'showlatest' shows no images
If you have shell access / SSH you can chmod them
cd /full/path/to/www
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
cd /full/path/to/www
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Re: Gallery: 'showlatest' shows no images
Hi guys, thanks for all the help. Much appreciated!
I'm googling my ass off right now searching for what to do with php.ini and htacces. Could you maybe give me a hint on what to search for? I'm not an expert with these things but have used them both in the past.
I have also chmoded the directory a couple of times from 777 to 755 and back via ftp with no results, and I don't have acces to SSH.
The phpinfo file gives a "no value" for open_basedir. I'm guessing this is good right? I've changed something with php.ini and open_basedir but that messed the whole site up a bit.
I'm googling my ass off right now searching for what to do with php.ini and htacces. Could you maybe give me a hint on what to search for? I'm not an expert with these things but have used them both in the past.
I have also chmoded the directory a couple of times from 777 to 755 and back via ftp with no results, and I don't have acces to SSH.
The phpinfo file gives a "no value" for open_basedir. I'm guessing this is good right? I've changed something with php.ini and open_basedir but that messed the whole site up a bit.
Re: Gallery: 'showlatest' shows no images
You're focusing on the permissions now. I'm not sure that is the problem.
I don't think 'showlatest' has something to do with permissions (as those files are already uploaded etc).
I don't think 'showlatest' has something to do with permissions (as those files are already uploaded etc).