Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Files & images problem


Reply

20 Posts   2579 Views

Avatar
Webdoc

21 January 2010 at 6:21pm Community Member, 332 Posts

[Wed Jan 20 11:42:10 2010] [error] [client some ip......] File does not exist: /home/np29484/domains/rannamajad.ee/public_html/media

Avatar
OwenW

21 January 2010 at 6:29pm Community Member, 45 Posts

OK, from the error log, this directory does not seem to exist..

/home/np29484/domains/rannamajad.ee/public_html/media

But you are sure that it does and that it has the correct permissions?

Also have you modified code to have the assets folder located somewhere else?

Cheers
Owen

Avatar
Webdoc

21 January 2010 at 6:35pm (Last edited: 21 January 2010 6:59pm), Community Member, 332 Posts

but this isnt the right folder in error log strange that it dont show also if i use ?devis=1

the right assets folder is folder assets not media in clean isntall there is not folder named media.
isit possible that the error is because of some earlier script who writed the mod like joomla what uses the media folder for pictures.

if its so how to clean it up.

or the wordpress what was installed there earlier also

Avatar
Webdoc

21 January 2010 at 6:36pm Community Member, 332 Posts

in ftp i dont have the media folder i have only the ss 2.4 alpha 1 files. no modules installed for it.

Avatar
Webdoc

21 January 2010 at 6:48pm Community Member, 332 Posts

after i use the button upload the files the error comes up like in attachment

Attached Files
Avatar
OwenW

21 January 2010 at 7:48pm Community Member, 45 Posts

Try creating a media folder over FTP then see if that solves the problem

Its not quite normal behavior to have the assets sitting in a media folder, but im wondering if its not related to the translation that you have going on..

Also, can you put your system in to dev mode by putting the following in mysite/_config.php to get a bit more information out of silverstripe.

Director::set_environment_type('dev');

Cheers

Avatar
Webdoc

21 January 2010 at 8:05pm Community Member, 332 Posts

[Notice] Undefined variable: fullFilename
POST /admin/assets/UploadForm
Line 204 in /home/np29484/domains/rannamajad.ee/public_html/sapphire/filesystem/Folder.php

Source
195          $file = ereg_replace('[0-9]*(\.[^.]+$)',$i . '\\1', $file);
196          if($oldFile == $file && $i > 2) user_error("Couldn't fix $file with $i", E_USER_ERROR);
197       }
198       
199       if (move_uploaded_file($tmpFile['tmp_name'], "$base/$file")) {
200          // Update with the new image
201          return $this->constructChild(basename($file));
202       } else {
203          if(!file_exists($tmpFile['tmp_name'])) user_error("Folder::addUploadToFolder: '$tmpFile[tmp_name]' doesn't exist", E_USER_ERROR);
204          else user_error("Folder::addUploadToFolder: Couldn't copy '$tmpFile[tmp_name]' to '$fullFilename'", E_USER_ERROR);
205          return false;
206       }
207    }
208    
209
210    //-------------------------------------------------------------------------------------------------
Trace
•Folder->addUploadToFolder(Array)
Line 217 of AssetAdmin.php
•AssetAdmin->doUpload(Array,Form,SS_HTTPRequest)
Line 292 of Form.php
•Form->httpSubmission(SS_HTTPRequest)
Line 135 of RequestHandler.php
•RequestHandler->handleRequest(SS_HTTPRequest)
Line 152 of RequestHandler.php
•RequestHandler->handleRequest(SS_HTTPRequest)
Line 150 of Controller.php
•Controller->handleRequest(SS_HTTPRequest)
Line 282 of Director.php
•Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
•Director::direct(/admin/assets/UploadForm)
Line 122 of main.php

Avatar
Webdoc

21 January 2010 at 8:06pm Community Member, 332 Posts

this is the error