21295 Posts in 5734 Topics by 2602 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1050 Views |
-
Fatal Error when attempting to upload

27 January 2009 at 1:05pm
Migrated site form local development machine, to webhost (quadrahost.com.au - suggested webhost) and am unable to upload files using asset admin. Ive checked the permissions on assets folder (and subfolders) and they allow the correct permissions. Turned on dev mode which reports the following error:
FATAL ERROR: copy(/hsphere/local/home/over50/overfifty.com.au/assets/SilverStripeLogo.png): failed to open stream: Permission denied
At line 232 in /hsphere/local/home/over50/overfifty.com.au/sapphire/filesystem/Folder.phpcopy(/var/tmp//silverstripe-cache-hsphere-local-home-over50-overfifty.com.au/SilverStripeLogo.png,/hsphere/local/home/over50/overfifty.com.au/assets/SilverStripeLogo.png)
line 232 of Folder.phpFolder->addUploadToFolder(Array)
line 200 of AssetAdmin.phpAssetAdmin->doUpload(Array,Form)
line 238 of Controller.phpController->run(Array)
line 104 of Director.phpDirector::direct(admin/assets/index/0)
line 158 of main.phpContext
Debug (Debug::showError() in line 180 of Debug.php)tmpFile =
name = SilverStripeLogo.png
type = image/png
tmp_name = /var/tmp//silverstripe-cache-hsphere-local-home-over50-overfifty.com.au/SilverStripeLogo.png
error = 0
size = 12162
base = /hsphere/local/home/over50/overfifty.com.au
file = assets/SilverStripeLogo.pngFATAL ERROR: File::loadUploaded: Couldn't copy '/var/tmp//silverstripe-cache-hsphere-local-home-over50-overfifty.com.au/SilverStripeLogo.png' to 'assets/SilverStripeLogo.png'
At line 236 in /hsphere/local/home/over50/overfifty.com.au/sapphire/filesystem/Folder.phpuser_error(File::loadUploaded: Couldn't copy '/var/tmp//silverstripe-cache-hsphere-local-home-over50-overfifty.com.au/SilverStripeLogo.png' to 'assets/SilverStripeLogo.png',256)
line 236 of Folder.phpFolder->addUploadToFolder(Array)
line 200 of AssetAdmin.phpAssetAdmin->doUpload(Array,Form)
line 238 of Controller.phpController->run(Array)
line 104 of Director.phpDirector::direct(admin/assets/index/0)
line 158 of main.phpContext
Debug (Debug::showError() in line 180 of Debug.php)tmpFile =
name = SilverStripeLogo.png
type = image/png
tmp_name = /var/tmp//silverstripe-cache-hsphere-local-home-over50-overfifty.com.au/SilverStripeLogo.png
error = 0
size = 12162
base = /hsphere/local/home/over50/overfifty.com.au
file = assets/SilverStripeLogo.png -
Re: Fatal Error when attempting to upload

28 January 2009 at 5:51am
Give permissions to the folder (chmod 777) and make sure the main user on the web server has owner privileges
| 1050 Views | ||
|
Page:
1
|
Go to Top |

