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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Search error in FileUploadField Treedropdown SS3


Go to End


825 Views

Avatar
SnowB1

Community Member, 11 Posts

15 January 2015 at 5:52am

Hello all,
I a file upload field that when I use the search in the TreeDropDown I get the following error:

Table 'DatabaseName.folder' doesn't exist,256)

I know that in the Files Table there is a ClassName for Folder which I am guessing it should be looking for. Can anyone point me in the right direction here? Thanks in advance and below is the error trace:

Trace
=====
user_error(Couldn't run query: 
SELECT "ParentID", "ID"
FROM "Folder"
WHERE "ID" in (67,5) 

Table 'DatabaseName.folder' doesn't exist,256)
MySQLDatabase.php:592

MySQLDatabase->databaseError(Couldn't run query: SELECT "ParentID", "ID" FROM "Folder" WHERE "ID" in (67,5) | Table 'DatabaseName.folder' doesn't exist,256)
MySQLDatabase.php:144

MySQLDatabase->query(SELECT "ParentID", "ID" FROM "Folder" WHERE "ID" in (67,5),256)
DB.php:200

DB::query(SELECT "ParentID", "ID" FROM "Folder" WHERE "ID" in (67,5))
TreeDropdownField.php:466

TreeDropdownField->populateIDs()
TreeDropdownField.php:271

TreeDropdownField->tree(SS_HTTPRequest)
RequestHandler.php:288

RequestHandler->handleAction(SS_HTTPRequest,tree)
RequestHandler.php:200

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
GridFieldDetailForm.php:99

GridFieldDetailForm->handleItem(GridField,SS_HTTPRequest)
GridField.php:715

GridField->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
RequestHandler.php:222

RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
Controller.php:153

Controller->handleRequest(SS_HTTPRequest,DataModel)
LeftAndMain.php:441

LeftAndMain->handleRequest(SS_HTTPRequest,DataModel)
AdminRootController.php:93

AdminRootController->handleRequest(SS_HTTPRequest,DataModel)
Director.php:360

Director::handleRequest(SS_HTTPRequest,Session,DataModel)
Director.php:152

Director::direct(/admin/pages/edit/EditForm/field/ProductImages/item/new/ItemEditForm/field/ProdImage/select/Form/field/ParentID/tree,DataModel)
main.php:189