coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: BIG on February 18, 2006, 09:39:06 PM

Title: Can't delet album
Post by: BIG on February 18, 2006, 09:39:06 PM
I went to delete an album and this is what I got. Directory 'albums/New_Folder/' is not writable, files can't be deleted

I checked the permissions and even deleted the folder and I go back no pictures and I still can't delete the album even with the folder not being there. I hope I posted in the correct area, if not I am sorry. Would updating to 4.3 fix my issues.
Title: Re: Can't delet album
Post by: Nibbler on February 18, 2006, 09:53:42 PM
No such version as 4.3. Re-create the folder, make sure it is writable and then delete it via Coppermine's interface.
Title: Re: Can't delet album
Post by: BIG on February 18, 2006, 10:16:50 PM
I did that and it did not work, I meant 1.4.3 as I have 1.4.2 right now. I deleted the folder and then went to coopermine  but it would not let me. I can upload photos to the folder can also go delete them but I cant via coppermine.
Title: Re: Can't delet album
Post by: Nibbler on February 18, 2006, 10:23:20 PM
OK then, if you are sure the directory is writable then disable that check in delete.php


if (!is_writable($dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_errors['directory_ro'], htmlspecialchars($dir)), __FILE__, __LINE__);


Change it to

//if (!is_writable($dir)) cpg_die(CRITICAL_ERROR, sprintf($lang_errors['directory_ro'], htmlspecialchars($dir)), __FILE__, __LINE__);


Then you'll need to clean up any stray files manually via FTP.
Title: Re: Can't delet album
Post by: BIG on February 19, 2006, 04:50:24 AM
Thank you for your help. I am am new at this but after I thought about what you said I kinda figured it out. 


What you told me fixed my issue.   Problem Solved.

Thanks again.