Page 1 of 1

Images and filemanager on solaris

Posted: Thu Jan 21, 2010 10:37 pm
by neschalk
This problem is related to the image's not showing up in the file manager. The images upload just fine and creating folders works too. Seems possible that creating the list of images to display doesn't work on Solaris systems because the glob_brace flag is used. normally this shouldn't be a problem, but solaris systems just don't have it. (don't know why.)

is there a way to produce the array without glob_brace? or possibly just a replacement line to look for all files to make sure I'm not missing something else?

filemanager.php (line 84)

$files = glob(rtrim($directory, '/') . '/*.{jpg,jpeg,png,gif}', GLOB_BRACE);

Re: Images and filemanager on solaris

Posted: Thu Jan 21, 2010 11:01 pm
by Daniel
I can change it to fread the directory. is glob disabled on your server?

Re: Images and filemanager on solaris

Posted: Fri Jan 22, 2010 12:52 am
by neschalk
glob is not disabled, just the glob_brace

Re: Images and filemanager on solaris

Posted: Sat Jan 23, 2010 1:12 am
by neschalk
from: http://forum.opencart.com/viewtopic.php ... lob#p47495
Daniel wrote:
neschalk wrote:Problem still exists on this end. Seems images upload just fine. getting them to display is more the issue at this point. I've traced this back to the glob_brace flag not working on solaris.

filemanager.php (line 84)

$files = glob(rtrim($directory, '/') . '/*.{jpg,jpeg,png,gif}', GLOB_BRACE);

is there a way to produce the array without glob_brace? or possibly just a replacement line to look for all files to make sure I'm not missing something else?
The braces will be fixed in the next version.
Thanks Daniel (still playing around with the php here.)