You are not logged in.
#1 2008-09-15 15:42:06
- doomfox
- New member
- Registered: 2008-09-15
- Posts: 3
album data file missing
Hi,
thank you for this wonderful gallery.
I have a little problem. I followed all your instructions to install the component and changed permissions to 777 but when I'm trying to create a new album the system send me the message "Album data file missing" So, I cannot upload images, change description, etc.
I looked in my server (SSH) to see the owner and permissions and the new folder of the new album doesn't have 777 and the owner is root. In the ftp the data file idutgallerydata.txt is missing.
What should I do?
Thank you
doom
(I have all the component translated to Spanish if you want it)
Offline
2008-09-15 15:42:06
- Advert
#2 2008-09-17 05:11:05
- idut
- Administrator
- Registered: 2007-08-11
- Posts: 108
Re: album data file missing
When it says your data file is missing, click on the red text and it will create the data file if possible.
It is possible that your server isn't keeping the permissions on the new folders you've created so the folder is being created then being set to 644. You could try changing the permissions of the folder to 777 through FTP.
Offline
#3 2008-10-08 14:05:32
- doomfox
- New member
- Registered: 2008-09-15
- Posts: 3
Re: album data file missing
Hi again,
the problem is that the admin create the folder using the user apache and chmod 700. I would like that people using the admin not connect through ftp. The perfect way is by the admin.
(sorry the english)
lots of thanks
Offline
#4 2008-10-08 14:24:24
- doomfox
- New member
- Registered: 2008-09-15
- Posts: 3
Re: album data file missing
Is possible that it doesn't work in PHP5?
Offline
#5 2008-10-09 08:56:10
- idut
- Administrator
- Registered: 2007-08-11
- Posts: 108
Re: album data file missing
The gallery works in both PHP4 and PHP5 fine.
The problem is that your server is setup to have the default permissions as 700. You could either try to change the default to 755 to edit the admin.php file to include a php CHMOD command to change the permission of the file right after it has been uploaded.
Good luck
Offline
#6 2008-10-21 10:39:00
- tirlinsh
- New member
- Registered: 2008-10-21
- Posts: 4
Re: album data file missing
Hi!
I have the same problem , when I create new gallery , it shows me : " Could not create an idutgallerydata.txt data file in the ./galleryimages/my-gallery directory. This album will therefore not support descriptions or comments ".
The problem is , that when i try to chmod the new created directory (directory that is created when i create new gallery - my-gallery) , my ftp server say's that i dont have permissions to to that and shows me :" 550 my-gallery: Operation not permitted. "
But when i create the directory manually , I have all permissions to change chmod to 777 and i can do everything i want.
So , how can it be , that when the directory is created with these gallery script , I cant chmod the directory and I cant even upload anything in that directory ???
Maybe I have to add that php CHMOD command to change the permission of the file right after it has been uploaded? Could you please tell me where i need to put that command ?
Last edited by tirlinsh (2008-10-21 10:40:35)
Offline
#7 2008-10-23 08:30:11
- idut
- Administrator
- Registered: 2007-08-11
- Posts: 108
Re: album data file missing
If your main images folder is set to 777 you shouldn't have any problems.
YOu could try this: on line 704 replace if (@mkdir($IG_CONFIG['imagedir'].$dir)) { with if (@mkdir($IG_CONFIG['imagedir'].$dir,777)) {
On line 706 replace if (@mkdir($IG_CONFIG['thumbdir'].$dir)) { with if (@mkdir($IG_CONFIG['thumbdir'].$dir,777)) {
That might work. Sometimes there are problems with the ownership. Things created using php have can have the ownership of "Apache" and things uploaded using FTP have ownership of the username. I've seen this on some servers. It might be worth looking into this with your host.
Offline
#8 2008-10-23 10:34:22
- tirlinsh
- New member
- Registered: 2008-10-21
- Posts: 4
Re: album data file missing
Unfortunately it wont help , and main images folder is allready 777.
Looks like there's problem with ownership. I've allready noticed some things in my Host Admin Panel's File Manager ...
Offline
#9 2008-10-23 10:35:21
- tirlinsh
- New member
- Registered: 2008-10-21
- Posts: 4
Re: album data file missing
Unfortunately it wont help , and main images folder is allready 777.
Looks like there's problem with ownership. I've allready noticed some things in my Host Admin Panel's File Manager ...
Offline
#10 2009-02-26 14:40:14
- peter
- New member
- Registered: 2009-02-26
- Posts: 1
Re: album data file missing
Hello IDUT and everyone else,
I have the same problem, after surfing and trying I came on this:
The prvider where the site is stationed the PHP safe mode management: No
This is (I THINK) the problem is. So why the setting is NO.
I didn't write them, because of the following storie:
http://bugs.php.net/bug.php?id=15928
If this isn't true, and anyone knows what the problem is, please tel me!
(sorry for my english, I am Dutch)
Offline
