coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Sean Morgan on January 25, 2007, 01:17:08 AM

Title: Save Config. / Critical Error
Post by: Sean Morgan on January 25, 2007, 01:17:08 AM
I have two problems and I drastically need help please! 

1) I keep getting the error below when I try to upload pics.

----
Critical error
Destination directory albums/userpics/ is not writable by the script !
----


2) In 'Config' menu, it won't let me 'save new configuration'.



Coppermine photogallery location: http://www.greatbasin-dw.com/photogallery

edited out by Stramm: Admin account



I've tried using both Internet Explorer and Mozilla Firefox with unfortunately the same results.  I don't know if it is the version that I have, or what is the problem. I've had so many problems with using the coppermine photogallery that it is very frustrating.  Can anyone give me some tips to stay ahead of the problems?

Thanks in advance if anyone can help me!
Title: Re: Save Config. / Critical Error
Post by: Sean Morgan on January 26, 2007, 04:24:05 AM
nobody knows?
Title: Re: Save Config. / Critical Error
Post by: kegobeer on January 26, 2007, 04:40:27 AM
Have you checked the permissions?  If Coppermine can't write to the directory, that means it doesn't have permission.  If you are on a Linux host, you can CHMOD the albums directory to 777 (or whatever your host allows).  You should review the documentation and the FAQs, as permissions are discussed in those places.
Title: Re: Save Config. / Critical Error
Post by: Stramm on January 26, 2007, 06:54:47 AM
Never post admin accounts. This can be used to take over your server

Is your box running on save mode? If so
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe
Title: Re: Save Config. / Critical Error
Post by: Sean Morgan on January 30, 2007, 01:15:14 AM
Nope, neither of those helped.

"albums", "albums/userpics", "include" directories are all 0777 permissions.

Yes, I believe it is in safe mode? Below is the contents of "config.inc.php"

<?php

    define('SILLY_SAFE_MODE', 1 ) ;

    $CONFIG['dbserver'] = 'localhost' ;
    $CONFIG['dbuser'  ] = 'greatbas_copp1' ;
    $CONFIG['dbpass'  ] = '*********' ;
    $CONFIG['dbname'  ] = 'greatbas_copp1'   ;

    $CONFIG['TABLE_PREFIX'] = 'cpg_' ;
   
?>
Title: Re: Save Config. / Critical Error
Post by: Sean Morgan on January 30, 2007, 01:16:18 AM
and still can't upload new pics and save new configuration.
Title: Re: Save Config. / Critical Error
Post by: Joachim Müller on January 30, 2007, 07:50:27 AM
Whoah - never post sensitive details like your mySQL data on a public board! Attackers could use it to mess up your site, install backdoors and other bad stuff. I edited out the password entry in your above posting. You should nevertheless change your mySQL password and make the changes in include/config.inc.php
Title: Re: Save Config. / Critical Error
Post by: eajoven on May 31, 2007, 09:17:17 AM
Wow! Muchas Gracias!

Thank you!

This is what i'm looking for!

My page moved to a new webhost provider and suddenly was unable to upload pics like admin or registered user.

Just add the silly safe mod to my congig doc and everythig was ok.

Just to say thak you after a few hours looking for the right solution.

Great Script, Great support team.