Ticket #1299 (closed defect: fixed)

Opened 18 months ago

Last modified 3 months ago

Error on creating assets folder/file in files and images in cms

Reported by: mandrew Owned by: aoneil
Priority: minor Milestone:
Component: CMS - Files and Images section Version: 2.0
Severity: low effort / impact Keywords:
Cc: Hours:

Description

If assets directory doesn't exist then this error appears - error should be clear about what has happenend (in this case there is no assets directory).

Error adding folder 500//ERROR:Error 2: mkdir() [function.mkdir]: No such file or directory At l517 in /sites/dev.silverstripe.com/mandrew/testproject/cms/code/AssetAdmin.php mkdir(../assets/NewFolder) line 517 of AssetAdmin?.php

AssetAdmin?->addfolder(Array) line 130 of Controller.php

Controller->run(Array) line 48 of Director.php

Director::direct(/admin/assets/addfolder) line 102 of main.php

Change History

follow-up: ↓ 2   Changed 18 months ago by mandrew

Notice: Trying to get property of non-object in /sites/dev.silverstripe.com/mandrew/testproject/cms/code/AssetTableField.php on line 19

- this is also what happens when you delete and then create a folder just after

in reply to: ↑ 1 ; follow-up: ↓ 3   Changed 18 months ago by mandrew

Replying to mandrew:

Notice: Trying to get property of non-object in /sites/dev.silverstripe.com/mandrew/testproject/cms/code/AssetTableField.php on line 19 - this is also what happens when you delete and then create a folder just after

If you do a flush=1 after getting this error, then it goes away.

in reply to: ↑ 2   Changed 18 months ago by mandrew

Replying to mandrew:

Replying to mandrew:

Notice: Trying to get property of non-object in /sites/dev.silverstripe.com/mandrew/testproject/cms/code/AssetTableField.php on line 19 - this is also what happens when you delete and then create a folder just after

If you do a flush=1 after getting this error, then it goes away.

CLick a folder first, then clear your cache, then flush...

  Changed 17 months ago by aoneil

  • milestone SS CMS 2.0.2 deleted

  Changed 17 months ago by aoneil

  • priority changed from critical to minor
  • severity changed from medium effort / impact to low effort / impact

  Changed 3 months ago by sminnee

  • status changed from new to closed
  • harvest_task set to (Unknown)
  • invoice_sent set to 0
  • resolution set to fixed

This was fixed a long time ago.

Note: See TracTickets for help on using tickets.