database update

Hello,

I think I messed up the database. I added some pics to my album, and did a scan. The new pictures doesn't show up, and the counter in the drop down list of galleries page doesn't increase. I found out that for the new dir I created, an album_files_xxxx.php is created, the contents are correct. But the album_directory.php is not updated. What was wrong? There was no error log message.

Thanks

Well, I think I

Well, I think I unconsciously changed the file owner/permission, so that the www user can't write to the file. The lack of error message is because the logging is disabled (by default I guess). This confused me, since you assign different semantics to the access log and error log checkboxes. Ticking access log box enables it, while ticking error log box disables it. You might want to consider making them consistent, Patrik.

Jiaping

Chmod the files to 666, this

Chmod the files to 666, this should help.

Yes, you're right, Patrik.

Yes, you're right, Patrik. But how can one chmod if he is not the owner or a super user? The album_*.php files are created by the scripts, so their owner is www.

Anyway, my Ubuntu magically changed the owner of the remote file to my actual login name on that machine, at the same time, the permission is set to 644. So this is the reason why the scripts cannot update the album_directory.php file. Now, since I'm the owner, I can chmod.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.