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.

E-Commerce Modules /

Discuss about the various e-commerce modules available:
Ecommerce, SS Shop, SilverCart and SwipeStripe
Alternatively, have a look the shared mailinglist.

Moderators: martimiz, Nicolaas, Sean, Ed, frankmullenger, biapar, Willr, Ingo, Jedateach, swaiba

SQLMap Error when accessing Store in the admin


Go to End


2 Posts   1471 Views

Avatar
jbryner

Community Member, 15 Posts

28 July 2011 at 8:16am

I just installed the ecommerce and payment modules (v0.7.0 and 0.3 respectively) and when I navigate to the Store tab in the admin (/admin/store) I get the following error.

[User Error] SQLMap query could not retrieve className
GET /admin/store/

Line 78 in /home/wtcitvt/public_html/sapphire/core/model/SQLMap.php

Source

69 	protected function genItems() {
70 		if(!isset($this->items)) {
71 			$this->items = new DataObjectSet();
72 			$items = $this->query->execute();	
73 			
74 			foreach($items as $item) {
75 				$className = isset($item['RecordClassName'])  ? $item['RecordClassName'] :  $item['ClassName'];
76 
77 				if(!$className) {
78 					user_error('SQLMap query could not retrieve className', E_USER_ERROR);
79 				}
80 				
81 				$this->items->push(new $className($item));
82 			}
83 		}
84 	}
Trace

SQLMap query could not retrieve className 
Line 78 of SQLMap.php
SQLMap->genItems() 
Line 52 of SQLMap.php
SQLMap->getIterator() 
Line 150 of DropdownField.php
DropdownField->Field() 
Line 369 of ViewableData.php
ViewableData->obj(Field,,,) 
Line 446 of ViewableData.php
ViewableData->XML_val(Field) 
Line 409 of FormField.php
FormField->FieldHolder() 
Line 369 of ViewableData.php
ViewableData->obj(FieldHolder,,,1) 
Line 446 of ViewableData.php
ViewableData->XML_val(FieldHolder,,1) 
Line 77 of .cache.sapphire.templates.Includes.Form.ss
include(/tmp/silverstripe-cache-home-wtcitvt-public_html/.cache.sapphire.templates.Includes.Form.ss) 
Line 420 of SSViewer.php
SSViewer->process(Form) 
Line 342 of ViewableData.php
ViewableData->renderWith(Array) 
Line 1108 of Form.php
Form->forTemplate() 
Line 447 of ViewableData.php
ViewableData->XML_val(SearchForm,,1) 
Line 31 of .cache.cms.templates.ModelSidebar.ss
include(/tmp/silverstripe-cache-home-wtcitvt-public_html/.cache.cms.templates.ModelSidebar.ss) 
Line 420 of SSViewer.php
SSViewer->process(StoreAdmin_CollectionController) 
Line 342 of ViewableData.php
ViewableData->renderWith(ModelSidebar) 
Line 387 of ModelAdmin.php
ModelAdmin_CollectionController->getModelSidebar() 
Line 258 of ModelAdmin.php
ModelAdmin->getModelForms() 
Line 112 of ViewableData.php
ViewableData->__get(ModelForms) 
Line 371 of ViewableData.php
ViewableData->obj(ModelForms) 
Line 24 of .cache.cms.templates.Includes.ModelAdmin_left.ss
include(/tmp/silverstripe-cache-home-wtcitvt-public_html/.cache.cms.templates.Includes.ModelAdmin_left.ss) 
Line 420 of SSViewer.php
SSViewer->process(StoreAdmin) 
Line 342 of ViewableData.php
ViewableData->renderWith(Array) 
Line 488 of LeftAndMain.php
LeftAndMain->Left() 
Line 369 of ViewableData.php
ViewableData->obj(Left,,,1) 
Line 446 of ViewableData.php
ViewableData->XML_val(Left,,1) 
Line 59 of .cache.cms.templates.LeftAndMain.ss
include(/tmp/silverstripe-cache-home-wtcitvt-public_html/.cache.cms.templates.LeftAndMain.ss) 
Line 420 of SSViewer.php
SSViewer->process(StoreAdmin) 
Line 202 of Controller.php
Controller->handleAction(SS_HTTPRequest) 
Line 143 of RequestHandler.php
RequestHandler->handleRequest(SS_HTTPRequest) 
Line 147 of Controller.php
Controller->handleRequest(SS_HTTPRequest) 
Line 282 of Director.php
Director::handleRequest(SS_HTTPRequest,Session) 
Line 125 of Director.php
Director::direct(/admin/store/) 
Line 127 of main.php

Avatar
jbryner

Community Member, 15 Posts

28 July 2011 at 8:36am

Just FYI, I have tried the following:

- Clearing the /tmp Silverstripe cache on the server
- Remove both ecommerce and payment modules, /dev/build?flush=1, reinstalled and re-dev/build?flush=1

I'm stuck!