coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: sfumato on June 02, 2004, 09:53:23 PM

Title: Unable to move etc. problems
Post by: sfumato on June 02, 2004, 09:53:23 PM
Okay,

Yesterday I wrote with completely different problems. I uninstalled and reinstalled CPG just to see what would happen. Now I am getting less errors than before, but I can still not upload. The interesting thing is the error messages I receive now are completely different than yesterday's (before uninstall etc.).

When trying to upload I get the following error:

Impossible to move orange.jpg to albums/userpics/ !

File: /home/bullpenc/public_html/gallery/db_input.php - Line: 259


Warning: move_uploaded_file(): Unable to move '/tmp/phpKPsjFK' to 'albums/userpics/orange.jpg' in /home/bullpenc/public_html/gallery/db_input.php on line 258


The debug script shows this:

USER:

Array
(
   [ID] => 31e5212865f28ca58aff8bf7e4aa9a23
   [am] => 1
)

USER DATA:

Array
(
   
Title: Re: Unable to move etc. problems
Post by: sfumato on June 02, 2004, 10:18:06 PM
PS- I have tried with the appropriate folders CHMODed 777 and 755.

Thanks,

Bryan
Title: Re: Unable to move etc. problems
Post by: Joachim Müller on June 03, 2004, 06:58:56 AM
maybe it's a safe mode issue - try enabling silly_safe_mode (refer to documentation). Maybe you have to create a temporary folder on your webspace...

Gaugau
Title: Re: Unable to move etc. problems
Post by: sfumato on June 03, 2004, 01:56:13 PM
I have set SILLY_SAFE_MODE but am having the same problem.

Where would the tmp folder be or need to be?

Thanks for the help.


Bryan
Title: Re: Unable to move etc. problems
Post by: Joachim Müller on June 03, 2004, 02:44:05 PM
see http://forum.coppermine-gallery.net/index.php?topic=2403.0
Quote from: hyperion on April 30, 2004, 03:35:08 AM
This usually occurs when the server configuration has made each website root.  If the website does not have a /temp or /tmp folder, PHP upload functions cannot work properly.  You are advised to create a /temp or /tmp folder to resolve this issue.  Yahoo Business hosting is a good example of where this configuration is used.
create the tmp folder in the website root

GauGau
Title: Re: Unable to move etc. problems
Post by: sfumato on June 03, 2004, 03:01:01 PM
Thanks for the help, but no dice. I made a tmp folder, but I get the same message:

Impossible to move grierwheel.jpg to albums/userpics/ !

File: /home/bullpenc/public_html/gallery/db_input.php - Line: 259


Warning: move_uploaded_file(): Unable to move '/tmp/phpNZMlIN' to 'albums/userpics/grierwheel.jpg' in /home/bullpenc/public_html/gallery/db_input.php on line 258




Sorry to keep at this, but I know not what I do.

Bryan
Title: Re: Unable to move etc. problems
Post by: sfumato on June 04, 2004, 04:41:37 AM
Anyone got advice?

Bryan
Title: Re: Unable to move etc. problems
Post by: hyperion on June 04, 2004, 04:56:12 AM
Write a basic upload script to test move_uploaded_files ability to get the files out of the tmp folder.  If you have set permissions correctly in Coppermine, then this is a PHP setup problem.  (move_uploaded_files is a built in PHP function)
Title: Re: Unable to move etc. problems
Post by: sfumato on June 04, 2004, 04:40:39 PM
Makes sense. Just wish I knew how to do it. Not really a PHP guru here. I know a little, but just enough to hurt me.

Any advice on writing the test script?


Thanks,

Bryan