Post by neschalk » Thu Jan 21, 2010 10:37 pm

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);

User avatar
Newbie

Posts

Joined
Thu Jan 21, 2010 6:28 am


Post by Daniel » Thu Jan 21, 2010 11:01 pm

I can change it to fread the directory. is glob disabled on your server?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by neschalk » Fri Jan 22, 2010 12:52 am

glob is not disabled, just the glob_brace

User avatar
Newbie

Posts

Joined
Thu Jan 21, 2010 6:28 am


Post by neschalk » Sat Jan 23, 2010 1:12 am

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.)

User avatar
Newbie

Posts

Joined
Thu Jan 21, 2010 6:28 am

Who is online

Users browsing this forum: No registered users and 82 guests