Hi

Firstly - total newbie on here and with drupal so please go easy on me and explain in simple terms (really simple!)

Ok so i have installed UC following an install of all stated modules required for image display before installing UC, and followed the correct install methods - to my knowledge.... as stated here:

http://drupal.org/project/ubercart

Now i have enabled in the correct way, i think, all the modules required for image display and UC states:
''Product image support has been automatically configured by Ubercart.''

So as far as i can tell i have done everything i need to use images.... So....

Why aernt the images displaying on a product?

Site is http://www.nipponnishikigoi.com/

I have only uploaded one product - do i need to upload more before this happens?
Im really confused now and need some support on this one!
Do i need to download the latest version of UC to overcome this? - I have clicked on the link btw and nothing happened? :-S

I have configured the permissions as they need to be as well... i think

As you can probably tell im new to this :-)
Thanks in advance...

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aschiwi’s picture

Hi nipponkoi,

So you have CCK, imagefield and imagecache installed? And the status message for "image" says "Product image support has been automatically configured by Ubercart."?

You could check if "image" is checked on /admin/store/settings/products/edit/fields.

Can you please go to /admin/store/settings/products/edit, on that page it will say "Product image widget:" - are there image widgets there and are they enabled? If not, install and enable Lightbox2 and then enable the widget for it.

Also upload a couple of images to your product, it looks pretty nice. The imagefield and imagecache preset is created automatically by Ubercart.

Good luck and have fun =)
Anja

kentjames1980’s picture

Status: Active » Closed (fixed)

Hi Anja =)

Thanks for your help!

I have discovered that it is a problem with Image Cache, it requires clean URL's which i cant activate as i cannot change our current shared server settings - i am in the process of upgrading the server to enable clean urls and therefore images!

Thanks for your help anyway !
James

kentjames1980’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Active
FileSize
56 KB
41.17 KB
31.53 KB

=(

Well, i have been a long way around this and seems not to have worked, yet.....

OK so now have clean URL's enabled and working, and all the correct modules installed and enabled.

BUT....

No images are showing still on my ubercart? =( - look and see : http://www.nipponnishikigoi.com/node/2

I have then gone to edit and seen that: 'An image thumbnail was not able to be created.'

Am i missing something here? Or is something not set up correctly - cos im going mad over a lack of a picture!

I have attached a few screen shots - one shows the image cache basics - if anyone can figure this out please do!

Remember im still a newbee at this so go easy on me!
Someone help pleaseeeeeeeeeeeee

splash112’s picture

How about image api?
Any problems on /admin/reports/status?

kentjames1980’s picture

Hey splash

By viewing ImageAPI through route of admin/settings/imageapi its states:

"ImageAPI
The ImageAPI GD2 module is the only enabled image toolkit. Drupal will use it for resizing, cropping and other image manipulations."

And clicking on configure shows :

"ImageAPI
JPEG quality: 75%
Define the image quality for JPEG manipulations. Ranges from 0 to 100. Higher values mean better image quality, but bigger files."

Image toolkit says

"Image toolkit
The GD toolkit is installed and working properly."

Status reports everything ok?

Thanks for your help so far!

aschiwi’s picture

That's strange - the image is in the code, it just isn't found in the specified path. The path to the image in node/2 is http://www.nipponnishikigoi.com/sites/default/files/imagecache/product/J.... Try to go to http://www.nipponnishikigoi.com/sites/default/files/imagecache/product/J... to see what happens. Instead of a "Page not found" I see your front page. Maybe you have a weird redirect setting in your .htaccess? Check your roots .htaccess and also check the .htaccess file in sites/default/files. Also check if the image actually exists in that path, but I'm pretty sure it does.

splash112’s picture

Hi,

Could you check your files directory (with FTP) to see if your original images are stored there?

kentjames1980’s picture

FileSize
3.88 KB

OK...

Having read through a book i bought last week i saw that it lists 'Image' as a contributed module for Ubercart?

I have since installed this module and have managed to upload a picture of the product as an Image:

http://www.nipponnishikigoi.com/node/4

This image is diplayed on the path:

http://www.nipponnishikigoi.com/sites/default/files/images/JUL09OTK_0.jpg

Now since doing this (uploading and enabling the module) i can now view the thumbnail during the edit of a product?

On the ftp side of things i have the image located in:

/sites/default/files/imagefield_thumbs/JUL09OTK.jpg

/sites/default/files/images/JUL09OTK_0.jpg

/sites/default/files/images/JUL09OTK_0.thumbnail.jpg

Which of these is relating to the product and why isnt any image showing on the product =S

htaccess file is attached as a text file - i havent changed anything apart from the line which reads:
php_value memory_limit 96M

Thanks for your help so far with this guys!

James =)

aschiwi’s picture

Hey James,

please try to answer our questions, otherwise it's harder to help you =)
Also you seem to have deleted node/2, but I think it would be nice to have a real example page we can look at to try and figure this out.

The most important questions was if http://www.nipponnishikigoi.com/sites/default/files/imagecache/product/J... actually exists (check with FTP). If you have deleted your node/2, this image might have also been deleted so why don't you create a new product, upload an image and check the image path (with Firebug). Then check (via FTP) if that image exists.

kentjames1980’s picture

Anja

Oops sorry moving too fast forgot to say its now located at http://www.nipponnishikigoi.com/node/5

And no there is no file located at /sites/default/files/imagecache/products - there is no products directory - should i try creating one via ftp?

Will keep node/5 as sample product to work from now =)

kentjames1980’s picture

additional info -

when viewing edit product the thumbnail that is shown is from the path:

http://www.nipponnishikigoi.com/sites/default/files/imagefield_thumbs/JU...

Should this read /sites/default/files/imagecache/products? and if so how do u change the path settings?

Cant create a directory in /sites/default/files/imagecache via ftp - it states:

"Response: 550 products: Permission denied
Command: MKD /httpdocs/sites/default/files/imagecache/products
Response: 550 /httpdocs/sites/default/files/imagecache/products: Permission denied"

Permisions for /sites/default/files/imagecache is 775?

Has the issues got anything to do with the fact that drupal is installed in a subdirectory? (/httpdocs) i cant see how it would tho as everything else is working and its is all contained within the /httpdocs folder?

aschiwi’s picture

hey nipponkoi,

if you can't create a folder manually then your Drupal installation will have similar problems. Permissions sometimes aren't enough, they're just for access restrictions. See if you can create folders elsewhere (like in sites/all). Check the root and owner of the files folder. If you're not on your own server and you're not familar with changing root and owner of folders you should try to contact your hosting provider, I'm sure they can help.

To answer your questions:
"Should this read /sites/default/files/imagecache/products? and if so how do u change the path settings?"
No the path is fine imo.

"Has the issues got anything to do with the fact that drupal is installed in a subdirectory? (/httpdocs)"
On servers /httpdocs is usually the root folder so I'm not sure if that's really a subdirectory. I think you should first try to solve the issue of creating folders, but if you're sure it's a subdirectory you should check and edit your .htaccess file. Look out for the following line:

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal

Don't be afraid of it, just read the text - I think it's understandable. A modified version of this paragraph would look like this:

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  RewriteBase /httpdocs
kentjames1980’s picture

FileSize
128.82 KB

Heya

OK so a few developments and findings - probably more confusing - maybe its just me =)

> I have mananged to create manually and set to 777 the required files as per the image cache:
cart, product, product_full, product_list, uc_thumbnail, uc_category
The user of these files is james1980

> Now i have attached the following screenshot which shows the users of
nipponnishikigoi.com / httpdocs / sites / default / files which shows apache as user of imagefield_thumbs and images?

There seems to be some confusion in the script as far as i can see as why would UC create and image in imagefield_thumbs when it should be in uc_thumbnail? Why isnt it following the cache presets that UC automatically sets up upon pressing the set up images for UC?

Part of me wonders if i should disable the modules and start over and see if it UC configures itself around the files i created as per the image cache requirements witin / httpdocs / sites / default / files?

Oh and tried the RewriteBase /httpdocs but it just locked me out so i think it wasnt required?

Thanks for your help
=)

rszrama - Ryan if your reading this and think you can configure it from logging into the site let me know and i will pm you the login details - im lost now! =)

aschiwi’s picture

Yeah I guess you should try to reinstall. Maybe it's already an option to use devel module's reinstallation.
By the way, you should also try and create an imagecache preset for an imagefield in a non ubercart content type and see if that works. This will help you figure out whether this is an imagecache issue or an ubercart issue.

kentjames1980’s picture

Started over - will try install from scratch with less modules installed initially

kentjames1980’s picture

Status: Active » Closed (fixed)
kentjames1980’s picture

Anja - Just to let you know it was down to one little setting in filesystem - you have to click the radio button to private to force the automatic creation of the image cache files

Download method:
Public - files are available using HTTP directly.
> Private - files are transferred by Drupal.

For anyone having trouble enabling the images on UC please take note of this!
It is critical for the images to be generated - Why isnt it in a setup readme???

Anyone all sorted now =)

aschiwi’s picture

Hey nipponkoi,

Glad to hear you got this working! I have this working with download method set to public, though - so it's not actually a requirement. I wonder why it was necessary for you.