Post by monkey » Fri Jan 22, 2010 1:14 pm

hey... I got exactly the same problem here.....

I use winxp......(that shouldn't affect....for your reference anyway), OpenCart 1.40 (fresh install), IE8 (no compatability), PHP 5.2.0......
everything doesn't work on image manager...
can't show images in "data" folder, everything like upload, delete doesn't works....

Error appears on the bottom left corner in IE8 like this:
(appologize for that's chinese)
網頁錯誤詳細資料

使用者代理程式: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6.3; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
時間戳記: Fri, 22 Jan 2010 05:10:56 UTC


訊息: Expected identifier, string or number
行: 131
字元: 4
程式碼: 0
URI: (blablabla......)/admin/index.php?route=common/filemanager&field=image
But when I tried to check that out usign Google Chrome....
image manager works fine as usual....

still figuring out what had happened..... =)

Newbie

Posts

Joined
Fri Jan 22, 2010 1:03 pm

Post by monkey » Fri Jan 22, 2010 1:16 pm

Sorry... php version should be 5.2.10... =P

Newbie

Posts

Joined
Fri Jan 22, 2010 1:03 pm

Post by Daniel » Fri Jan 22, 2010 5:31 pm

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.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by OSWorX » Fri Jan 22, 2010 5:43 pm

see: http://at.php.net/manual/en/function.glob.php

Note: This function isn't available on some systems (e.g. old Sun OS).

Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

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

I've already posted that in another thread joomx. Thanks.

since this thread is more for people who are having problems with file permissions. If your uploads are working, but images are not showing up, (particularly if the directories are showing.) then Solaris may be the culprit.

Daniel, thanks for looking into this. I'll add your response to the other thread too.

http://forum.opencart.com/viewtopic.php?f=20&t=9818

User avatar
Newbie

Posts

Joined
Thu Jan 21, 2010 6:28 am


Post by sverno » Sat Jan 23, 2010 6:40 am

Sorry if this is a dumb question but what is the fix for this (if any)? If we need to wait for the next version release, how long until this is available?

I'm having the problem where I open Image Manager and no images shows up and when I click to upload an image nothing happens. I've verified permissions on all the files and directories and still having the problem.

Newbie

Posts

Joined
Sat Jan 23, 2010 6:38 am

Post by Daniel » Sat Jan 23, 2010 7:01 am

I think you are using an old server. ask your host if they have disabled the glob function?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by sverno » Sat Jan 23, 2010 8:01 am

I asked my host (ipage) and they're unsure of what/where the glob function is needed to be enabled. Do you have further information on this so I can pass along?

Newbie

Posts

Joined
Sat Jan 23, 2010 6:38 am

Post by sverno » Sat Jan 23, 2010 10:03 am

Ok - I tried this in Google Chrome and was able to access file manager (view and upload images) just fine.

I enabled 'Display notification about every script error' within IE7 and the following was reported when I tried to access file manager within IE7:

Line: 131
Char: 4
Error: Expected identifier, string or number
Code: 0
URL: http://www.mattresetcbrea.com/admin/ind ... ield=image

Any ideas on what may be causing this problem in IE7?

Newbie

Posts

Joined
Sat Jan 23, 2010 6:38 am

Post by Jen » Mon Jan 25, 2010 1:06 am

Hi,
My image manager won't work. Can't see images. Can someone please give me guidelines to getting this sorted out? I have tried above but it didn't work.

Appreciate any ideas or suggestions.

Jen
Newbie

Posts

Joined
Mon Jan 25, 2010 1:02 am

Post by daysgonebyantiques » Mon Jan 25, 2010 7:38 am

My image manager *was* working and all of a sudden this evening it isn't. I get the message 'image upload successful' (or something along that line) but the newly-uploaded image does not show up in the image manager for me to add to my product.

So looking at some of the messages on this thread, my host might have changed something with the way PHP works on their servers?

Why was the image upoad process changed anyway? It was working just fine before and with 1.4 it seems as if an extra step was added....

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!


Active Member

Posts

Joined
Sun Dec 13, 2009 10:02 pm


Post by OrBeX » Mon Jan 25, 2010 10:43 pm

Hi all,

having the same image problems as mentioned by so many, I tried to fix it.

For now the solution that works for me is the following:

find the file [root of site]/system/helper/image.php

Look for the line : $image->save(DIR_IMAGE . $new_image);
It was line 25 in my case.

Change into:
$image->save(DIR_IMAGE . $new_image);
chmod(DIR_IMAGE . $new_image, 0777);

This works for me, it is not guaranteed to work for everyone.

If U R Confused, U R Not Paying Attention !
- www.clsystems.nl -


Newbie

Posts

Joined
Thu Jan 21, 2010 7:57 pm

Post by OSWorX » Tue Jan 26, 2010 5:00 am

OrBeX wrote:chmod(DIR_IMAGE . $new_image, 0777);
Normally, 0755 should be enough, otherwise with 0777 everybody can write to this file!
It depends also on a correct configured server - for images should 0644 normally also good.
A quote article can be found here: http://en.wikipedia.org/wiki/Chmod and here the complete tutorial for chmod: http://catcode.com/teachmod/index.html

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by Daniel » Tue Jan 26, 2010 5:20 am

daysgonebyantiques wrote:My image manager *was* working and all of a sudden this evening it isn't. I get the message 'image upload successful' (or something along that line) but the newly-uploaded image does not show up in the image manager for me to add to my product.

So looking at some of the messages on this thread, my host might have changed something with the way PHP works on their servers?

Why was the image upoad process changed anyway? It was working just fine before and with 1.4 it seems as if an extra step was added....
do you not preffer to be able to manage your images and store them in sperate folders?

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by i2Paq » Tue Jan 26, 2010 6:35 am

Daniel wrote: do you not preffer to be able to manage your images and store them in sperate folders?
I know I do.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by daysgonebyantiques » Tue Jan 26, 2010 8:06 am

Honestly I'd like to be able to just download the darned images from my SD card and be done with it. :) One request I might would make is to not have to go to a separate tab to add any images beyond the first, but that's another thing.

Daniel, i2--I am very sorry for sounding ungrateful...I'm just frustrated because things were working fine before and they were working OK just after I upgraded to 1.4 and then all of a sudden I couldn't add images anymore. I checked with my host and no changes were made on their servers with regard to PHP in over a month, well before I started to have problems. So maybe it's a file permission thing? If so that's fine but I just don't understand how permissions could just all of a sudden could change. It's just a quirk I have, I have a need to understand why something happens. ::)

Opencart is a *fantastic* alternative to the other systems I've tried, and believe me I've tried most of them. :) I can't contribute any actual modules or anything but I definitely am going to contribute $$ and I've also referred several colleagues to Opencart in the hopes that they will use it and contribute as well.

So check my file permissions on the image folder?

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!


Active Member

Posts

Joined
Sun Dec 13, 2009 10:02 pm


Post by daysgonebyantiques » Tue Jan 26, 2010 10:28 am

OK I was able to upload and use a new logo banner but when it comes to adding a product I can try to upload a picture until the cows come home and it will *not* show up in the image manager for me to be able to add it to my product. So at this point I'm kind of stuck and can't go any further with my store. Sigh.

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!


Active Member

Posts

Joined
Sun Dec 13, 2009 10:02 pm


Post by OSWorX » Tue Jan 26, 2010 2:35 pm

Daniel wrote:do you not preffer to be able to manage your images and store them in sperate folders?
That should be left finally at the admins (website/store owners) opinion.
But the standard setting should work without any interaction - end users do not want to define very much settings or do not have that knowledge.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by doubleatheman » Tue Jan 26, 2010 2:37 pm

OrBeX wrote:Hi all,

having the same image problems as mentioned by so many, I tried to fix it.

For now the solution that works for me is the following:

find the file [root of site]/system/helper/image.php

Look for the line : $image->save(DIR_IMAGE . $new_image);
It was line 25 in my case.

Change into:
$image->save(DIR_IMAGE . $new_image);
chmod(DIR_IMAGE . $new_image, 0777);

This works for me, it is not guaranteed to work for everyone.
I have ipage.com hosting also, This did not work for me.

I get "Warning: Please select a file!" sometimes, and other times i get
"Sucess: Your file has been uploaded"

Ive been using open cart for a few hours now (yeah I'm new, but I picked it right up, no crazy learning curve), I like how clean the interface is! keep it up!

I hope I can add images soon :)

I tried to upload images to the directory manually, but it seems you have to use the uploader tool to be able to see images within opencart?

Newbie

Posts

Joined
Tue Jan 26, 2010 2:25 pm

Post by daysgonebyantiques » Tue Jan 26, 2010 7:49 pm

Oh my goodness, I might be on to something!

I'm looking in my /image/data directory and the images that I've been trying to upload all have a .JPG extension, not .jpg. The system seems to be reading the pictures with the upper-case .JPG extension as text/generic instead of image/generic--and I'm guessing that's why the image manager doesn't know what to do with them?

So maybe it's my camera making the extension .JPG? How do I make it do a lower-case extension so I don't have to change the extension before uploading the image with the image manager?

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!


Active Member

Posts

Joined
Sun Dec 13, 2009 10:02 pm

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 145 guests