[Warning] file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/php_upload/phpB0kuxe) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/smhhome/chroot_bind/php/php5/usr/local/lib/php/)
POST /admin/EditForm/field/Albums/item/16/DetailForm/field/CoverImage/EditFileForm
Line 141 in /smhhome/e-web/ea/0a/austrackcampers.com/public/www/sapphire/filesystem/Upload.php
Source
132 } else if (strpos($relativeFilePath, '_') !== false) {
133 $relativeFilePath = ereg_replace('_([^_]+$)', '_'.$i, $relativeFilePath);
134 } else {
135 $relativeFilePath .= "_$i";
136 }
137 if($oldFilePath == $relativeFilePath && $i > 2) user_error("Couldn't fix $relativeFilePath with $i tries", E_USER_ERROR);
138 }
139 $value = "/smhhome/e-web/ea/0a/austrackcampers.com/public/www/silverstripe-cache/";
140
141 if(file_exists($tmpFile['tmp_name']) && copy($tmpFile['tmp_name'], "$base/$relativeFilePath")) {
142 $this->file->ParentID = $parentFolder->ID;
143 // This is to prevent it from trying to rename the file
144 $this->file->Name = basename($relativeFilePath);
145 $this->file->write();
146 return true;
147 } else {
Trace
* file_exists(/tmp/php_upload/phpB0kuxe)
Line 141 of Upload.php
* Upload->load(Array,Uploads)
Line 162 of Upload.php
* Upload->loadIntoFile(Array,Image,Uploads)
Line 178 of FileIFrameField.php
* FileIFrameField->save(Array,Form,SS_HTTPRequest)
Line 296 of Form.php
* Form->httpSubmission(SS_HTTPRequest)
Line 134 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
* RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
* Controller->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
* Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
* Director::direct(/admin/EditForm/field/Albums/item/16/DetailForm/field/CoverImage/EditFileForm)
Line 127 of main.php