15 replies [Last post]
ad_w00000's picture
Offline
Joined: 01/03/2008
Juice: 21
Was this information Helpful?

Hi to everyone!
got a problem...
I am new to drupal. have been using it for about 4 weeks.
I have Tried to solve the problem without troubling you guys
but I don't know where else to turn. Is it ubercart or
imagecache,image api or image field.

I am having trouble uploading images in the products of
ubercart. Sometimes there is a thumbnail in the image block.
but when previewing or submitting it goes blank but the space
is there. or sometimes it just gives up and doesn't bother to
upload the image at all.

Here is the setup...

MySQL database 5.0.15
PHP 5.2.3
Unicode library PHP Mbstring Extension
Web server Apache

clean install Drupal 5.5

Content Construction Kit (CCK) 5.x-1.6-1

ImageAPI 5.x-1.x-dev (2007-Dec-29)
Recommended version: 5.x-1.0-beta (2007-Dec-28)

ImageCache 5.x-2.0-beta

ImageField 5.x-2.0-rc2

JQuery Update 5.x-1.0

TAPIr 5.x-1.4

Token 5.x-1.x-dev (2007-Dec-17)
Recommended version: 5.x-1.9 (2007-Oct-17)

Ubercart 5.x-1.0-alpha8
Includes: Product, Payment, Test Gateway, Importer, Cart

Links, Order, Roles, Cart, Shipping Quotes, Weight quote,

Store, Catalog
Up to date

uBrowser 5.x-1.2

Update status 5.x-2.0

Workflow-ng 5.x-2.x-dev (2007-Dec-30)

filesystem temp folder is "/upload_tmp"
Download method:
Public - files are available using HTTP directly
File system path: files
clean urls enabled
input format: Full html
theme: garland
there are't any error message in the log files.

I tried
-clear cache in database tables using imagecache
-updated the modules as you can see above.
-deleted the .htaccess file in the 'files' directory, and let

Drupal re-create it
-Disabled thickbox
-set the file dir to 777 as well as everything else in there

Imagecahe doesn't creat dirs.

Please help
Thanx

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: imagecache imagfield imageapi not sure which. problem with u

I haven't heard about imageapi before, but looking at the project page, it sounds like it might be causing conflicts in the way imagecache is working.

Try adding a directory under files called "ubercart_images" and setting the permissions to 777 as well. I keep trying to make it not required but it keeps coming back.

ad_w00000's picture
Offline
Joined: 01/03/2008
Juice: 21
Re: Re: imagecache imagfield imageapi not sure which. problem wi

yeap there is the ubercart_images dir in files dir.
imageapi is part of the new version of imagecache.
but i still get the same problem with the old imagecache too.

cobrasound's picture
Offline
Joined: 08/07/2007
Juice: 157
Imagecache not working

Hi Lyle,

I've tried everything that has been mentioned and that I can think of trying to get imagecache to work on my production system. I'm at a loss after HOURS of troubleshooting. There has GOT to be a better way to troubleshoot imagecache problems.

I've setup Ubercart several times and have for the most part had no trouble. When I do have trouble, nothing short of a complete re-install seems to fix imagecache. Unfortunately I do NOT want to have to re-install my production system.

Any other things to try that you or the community could recommend would be greatly appreciated. Here is a link to an example page showing the thumbnails aren't getting created, http://cobrasound.com/YorkvilleNX55P

Today I have again checked:
1. The apache server directives
2. the .htaccess file
3. File uploads, imagecache, caching, and any other settings inside drupal itself that I could think of
4. File permissions and ownership on the file system
5. Upgrading to Beta2 of Ubercart

Nothing I did has fixed the issue. Everything works great on the development box, imagecache just refuses to create the sub-directories and files on the production box.

Thank you,

Jeff

cobrasound's picture
Offline
Joined: 08/07/2007
Juice: 157
Re: Imagecache not working

I think I finally figured it out,

Check the .htaccess file located inside of your files/ directory. Mine now looks like:

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
#Options None
Options FollowSymlinks
<IfModule mod_rewrite.c>
#  RewriteEngine off
</IfModule>
likehell's picture
Offline
Joined: 01/30/2008
Juice: 18
.htaccess

Modding the .htaccess in the files directory (as per cobrasounds post) seems to have resolved this issue also

zmove's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 1192
Re: .htaccess

I had this kind of problem on a new site I develop. To resolve it, I deletes the entire files folder, and create it again, and it.... works....

jessicakoh's picture
Offline
Joined: 05/11/2008
Juice: 27
Re: Re: Imagecache not working

Thank you so much, cobrasound.

I have been on this problem for 2 hours.

Somehow, this .htaccess in files was overwritten by other .htaccess.

Thanks again.

docmartin's picture
Offline
Joined: 05/19/2008
Juice: 2
Imagecache working after store admin and images configured

Maybe good for a laugh; or might help one or two people

I'd used ubercart before; but messed up, deleting photos.

Trying to put images back, found that I was having various problems - even after working thro imagecache troubleshooting, trying things like htaccess changes, found that images were being uploaded, but imagecache apparently doing nothing (no messages in error logs)

Tried uninstalling 5x-2.x imagecache, installing 5x-1.x, but error w thickbox (a site stopping error; had to delete imagecache).
Back to imagecache 5x-2; then thought I might have another look at the handbook (! - yeah, imagine, actually reading a manual, at least partly). Here, on install page, recommended module versions seem a bit dated; wasn't sure about these, so I read on, re products, noticed about site administration and images.

I clicked on site administration link, and at the bottom was a message, something like not being configured to use imagecache for images. I clicked on a link here, got message saying "Product image support has been automatically configured by Ubercart."
- and imagecache indeed working when I tried an upload.

Update: found imagecache wasn't resizing images - even thumbnails full size. Had a look at imageache config, and no settings/actions there for uc_thumbnail etc. I added some widths here (so image proportions would remain same, no cropping), and this worked - inc for full size images in thickbox.
I'm not real keen on full size images going into files; would rather into files/products , or even into files/products/prodsa etc. Not sure how, but as yet, the store's tiny so no big deal!

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Imagecache working after store admin and images configured

The filepath for the product images is set on the CCK Image field for the products. You can find the Field settings under Content management > Content types.

m37all1ca's picture
Offline
Joined: 01/20/2008
Juice: 9
ad_w00000, I had similar

ad_w00000,

I had similar problems and found the solution based on some of the comments in drupal.org's imagecache module issues page. Take a look at my solution at http://drupal.org/node/139229 and see if it fixes your problem. My problem is in the .htaccess file in the "files" folder. I did not know until today that the files folder ALSO have its own .htaccess file!

Hope this helps.

ad_w00000's picture
Offline
Joined: 01/03/2008
Juice: 21
thanx but i do have like

thanx
but i do have like sujested in http://drupal.org/node/139229

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006
Options None
Options +FollowSymLinks

its illogical as sometimes it works and sometimes just doesn't.

zmove's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 1192
Re: imagecache imagfield imageapi not sure which. problem with u

Did you try to use non beta imagecache and does it works ?

ad_w00000's picture
Offline
Joined: 01/03/2008
Juice: 21
thanks zmove yes tried the

thanks zmove
yes tried the non beta version.
I think once something interferes with imagecache in some way. its completely stops to write the folders in imagecache folder. eg enabling caching in performance or updating token. when flushing the cache also it just gives up writing to imagecache folder. permission set to 777 just incase. it just stops writing to image cache. sometimes it writes the htaccess file in files. sometimes doesn't. I only use imagecache with ubercart.
I wish i knew how to program so i know how imagecache and ubercart are linked. is it ubercart that causes the problem or imagecache.

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
Ad, Have you tried

Ad,

Have you tried uninstalling imagecache & imagefield and using the 1.x-dev versions? It seems when I was trying install Ubercart from the package I built, anything from the 2.x branch would not get images working after completing installation. However, I can get images working right out of the box with the 1.x-dev versions. Unfortunately, I do know that much about these modules to better troubleshoot what's going on.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

likehell's picture
Offline
Joined: 01/30/2008
Juice: 18
Possible Fix?

As of this morning, the following has fixed the issues and ubercart is now saving files properly.
I can only hope that my wife and family still remember me when I leave this room...

I was also having all of these problems. I tried making the directories by hand and setting the permissions to 777. No luck. The trick for me was under "File system" admin settings. Make sure that the files are set to "public" AND the temporary directory is "tmp" with no slashes (by default it is "/tmp")

The solution was originally reported here:
http://drupal.org/node/166848