I just upgraded a site from Drupal version 4.6 to 6.2, sequentially, step by step, updating the database after every major version. There are a number of issues regarding the Image module, and too many variables for me to work out the problem:

1. In "Site Configuration / Image" section:
+ the default image path is set to "images"
+ note: the image files for the gallery are in another folder named "site_images"
+ both folders are in the "files" folder - "files" folder is set to 777

2. When I change "default image path" from "images" to "site_images" the value appears to save, but when I navigate away from and back to the page - the value is always set again to "images"
+ note: images file is empty, set to properties 740, and I cannot change the properties on this folder for some reason, either by ftp or file manager
+ I have changed the properties in "site_images" to 777 - ok or not?
+ summary: I do not know why I cannot change the properties on the "images" folder, what the correct value should be (740,777?), or why the Image module re-saves changes to the "default file path" back to "images"

3. In addition and in relation to this: all files in the image gallery - that was working in 4.6 - they are blank... the names of the images are listed in what was previously the image gallery section, but no images display (see: http://portwaikato.com/port_waikato_photo_gallery.html)

4. If I go to taxonomy - there are two entries for "image galleries"
+ one has a vocabulary term for the classification of the original image gallery
+ the other had no vocabulary term
+ I deleted one of the duplicate "image galleries" entries - it re-appeared automatically
+ I added the original vocabulary term used for the gallery to the other duplicate "image galleries" - but I still don't have any images showing up on the pages
+ there are still two listings for "image galleries" under taxonomy

5. If I go to the "image galleries" section in the admin, listed in the admin menu below "user management" - that page is not found

6. If I go to "image galleries" section under "content management" - I can edit the gallery name and so forth without trouble - there are 82 files in "My Images" in the file upload pop up, but it says -
"The directory files/images/temp is not writable"
+ note: I will continue to experiment in this section, maybe I need to upload all the images again and create a new gallery that way following the upgrade?

7. SUMMARY OF ISSUES - Under "site configuration":
+ "image" - cannot change default image path
+ "Image assist, Image attach, Image gallery, Image Toolkit" - working fine / Drupal 6.2
+ "Image Import" - this is red & flagged, likely properties configuration problem related to the "images" folder (value: files/images/import)

8. note: user "admin" has all permissions for Image module

The basic question is: what do I need to do to get the Image Gallery working again following the upgrade with these issues?

Thanks in advance for any help in the matter.

Comments

Hetta’s picture

Did you trawl the issue queue on image upgrading problems before starting your project?
Did you rename your old "image" table before upgrading to image 5.x-2.x (or wherever the new image table is introduced)?

You'll find that
1) a lot of problems have solutions posted in the issue queue;
2) a lot of people haven't moved to drupal 6 yet
3) a lot of people have various problems with image 6
4) a LOT of people have problems upgrading from image 4.x to image 5.x ...

Post your various solutions here, so others won't have to trawl the queue, in case they do a major upgrade like you did.

Thanks, and luck!

typehost’s picture

For reference, I managed to reset the permissions on files/images folder to 755 using this code:

<?php
`chmod -R u=rwx,go=rx files/images`;
?>

Thanks to:

http://www.hmug.org/man/1/chmod.php

I reset all the permissions on "files" to 755 rather than 777 as well....

Deleted one of the duplicate taxonomy listings - lost the saved data in the gallery pages

Haven't actually got the image module working to restore the gallery, but unlocking the file permissions was a major issue and glad that is finally solved.

typehost’s picture

Current Status:

As it stands, there are about 82 files in the content manager listed as "image" type nodes.
None are tagged with the original gallery taxonomy / category term.
All have attachments listed with the original file, preview, and thumbnail images.
The original image files are stored in "files/images".
When I change the original node to update the taxonomy settings, the page loops, and asks for a new image upload.
The page display does not show the attachments as listed.
No images listed on the gallery page.

When I try to add a new image, "create content" as "image" node - I upload the file, but the page loops back again and asks for another file upload. The first upload does not seem to save or isn't recognized.

I think it may still be an error related to permissions... I had to reset the "files" folder again to 777.

I thought about doing a quick install of the gallery2 module as an alternative - fine, but only 2.3 svn version, so that becomes a not quick and quite complex issue.

typehost’s picture

Update:

Reset files and all sub-folders to 777

 <?php
`chmod -R u=rwx,go=rwx files/images`;
?> 

changed image folder from files/images to files/newimages to test

Problems:

1. create content - image:
+ browse for image, select from local hard drive, save as test
+ page returns, image field is highlighted / empty
+ no image saved / no file saved

2. Add attachments to image:
+ same problem, attachments are not submitted or saved

Note:

1. tested attachments with page type of node rather than image
+ attachments working fine

2. tested "image assist" with page create content
+ "click here to add images"
+ pop up window: lists browse images with 82 files in "My Images"
+ 9 pages indexed with numbers, able to navigate between pages, but all pages are empty - no images shown
+ same window: upload new image: browse, attach, etc
+ image file not uploaded or recognized
+ display: "You must upload an image."

typehost’s picture

I think this issue is mostly solved:

You can mark as a duplicate of this thread: http://drupal.org/node/142783

Other Issues Remaining:

1. image galleries link - admin menu --- page not found
solved: delete and activate new menu link in navigation

2. images not appearing in image gallery
+ solved - delete old menu link & re-activate new

I'll probably have to reload all of the images and recreate the gallery after the upload, but all of the technical details are in working order now.

Hetta’s picture

Status: Active » Closed (duplicate)