Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 8th, 2010  |  syntax: None  |  size: 5.93 KB  |  hits: 91  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [User Error] Couldn't run query: SELECT `ImageGalleryItem`.*, `MyImageGalleryItem`.*, `ImageGalleryItem`.ID, if(`ImageGalleryItem`.ClassName,`ImageGalleryItem`.ClassName,'ImageGalleryItem') AS RecordClassName FROM `ImageGalleryItem` LEFT JOIN `MyImageGalleryItem` ON `MyImageGalleryItem`.ID = `ImageGalleryItem`.ID WHERE ((AlbumID='4') AND (`ImageGalleryPageID` = '18')) ORDER BY SortOrder ASC LIMIT 0,10 Table 'ss_mysite.myimagegalleryitem' doesn't exist
  2. GET /Briselda/admin
  3.  
  4. Line 401 in C:\wamp\www\Briselda\sapphire\core\model\MySQLDatabase.php
  5. Source
  6.  
  7. 392     }
  8. 393    
  9. 394     function databaseError($msg, $errorLevel = E_USER_ERROR) {
  10. 395             // try to extract and format query
  11. 396             if(preg_match('/Couldn\'t run query: ([^\|]*)\|\s*(.*)/', $msg, $matches)) {
  12. 397                     $formatter = new SQLFormatter();
  13. 398                     $msg = "Couldn't run query: \n" . $formatter->formatPlain($matches[1]) . "\n\n" . $matches[2];
  14. 399             }
  15. 400            
  16. 401             user_error($msg, $errorLevel);
  17. 402     }
  18. 403 }
  19. 404
  20. 405 /**
  21. 406  * A result-set from a MySQL database.
  22. 407  * @package sapphire
  23.  
  24. Trace
  25.  
  26.     * Couldn't run query: SELECT `ImageGalleryItem`.*, `MyImageGalleryItem`.*, `ImageGalleryItem`.ID, if(`ImageGalleryItem`.ClassName,`ImageGalleryItem`.ClassName,'ImageGalleryItem') AS RecordClassName FROM `ImageGalleryItem` LEFT JOIN `MyImageGalleryItem` ON `MyImageGalleryItem`.ID = `ImageGalleryItem`.ID WHERE ((AlbumID='4') AND (`ImageGalleryPageID` = '18')) ORDER BY SortOrder ASC LIMIT 0,10 Table 'ss_mysite.myimagegalleryitem' doesn't exist
  27.       Line 401 of MySQLDatabase.php
  28.     * MySQLDatabase->databaseError(Couldn't run query: SELECT `ImageGalleryItem`.*, `MyImageGalleryItem`.*, `ImageGalleryItem`.ID, if(`ImageGalleryItem`.ClassName,`ImageGalleryItem`.ClassName,'ImageGalleryItem') AS RecordClassName FROM `ImageGalleryItem` LEFT JOIN `MyImageGalleryItem` ON `MyImageGalleryItem`.ID = `ImageGalleryItem`.ID WHERE ((AlbumID='4') AND (`ImageGalleryPageID` = '18')) ORDER BY SortOrder ASC LIMIT 0,10 | Table 'ss_mysite.myimagegalleryitem' doesn't exist,256)
  29.       Line 102 of MySQLDatabase.php
  30.     * MySQLDatabase->query(SELECT `ImageGalleryItem`.*, `MyImageGalleryItem`.*, `ImageGalleryItem`.ID, if(`ImageGalleryItem`.ClassName,`ImageGalleryItem`.ClassName,'ImageGalleryItem') AS RecordClassName FROM `ImageGalleryItem` LEFT JOIN `MyImageGalleryItem` ON `MyImageGalleryItem`.ID = `ImageGalleryItem`.ID WHERE ((AlbumID='4') AND (`ImageGalleryPageID` = '18')) ORDER BY SortOrder ASC LIMIT 0,10,256)
  31.       Line 120 of DB.php
  32.     * DB::query(SELECT `ImageGalleryItem`.*, `MyImageGalleryItem`.*, `ImageGalleryItem`.ID, if(`ImageGalleryItem`.ClassName,`ImageGalleryItem`.ClassName,'ImageGalleryItem') AS RecordClassName FROM `ImageGalleryItem` LEFT JOIN `MyImageGalleryItem` ON `MyImageGalleryItem`.ID = `ImageGalleryItem`.ID WHERE ((AlbumID='4') AND (`ImageGalleryPageID` = '18')) ORDER BY SortOrder ASC LIMIT 0,10)
  33.       Line 426 of SQLQuery.php
  34.     * SQLQuery->execute()
  35.       Line 421 of TableListField.php
  36.     * TableListField->sourceItems()
  37.       Line 265 of ComplexTableField.php
  38.     * ComplexTableField->FieldHolder()
  39.     * call_user_func_array(Array,Array)
  40.       Line 408 of ViewableData.php
  41.     * ViewableData->XML_val(FieldHolder,,1)
  42.       Line 74 of .cacheC..wamp.www.Briselda.sapphire.templates.TabSetFieldHolder.ss
  43.     * include(C:\Windows\Temp\silverstripe-cacheC--wamp-www-Briselda\.cacheC..wamp.www.Briselda.sapphire.templates.TabSetFieldHolder.ss)
  44.       Line 357 of SSViewer.php
  45.     * SSViewer->process(TabSet)
  46.       Line 773 of ViewableData.php
  47.     * ViewableData->renderWith(TabSetFieldHolder)
  48.       Line 62 of TabSet.php
  49.     * TabSet->FieldHolder()
  50.     * call_user_func_array(Array,Array)
  51.       Line 408 of ViewableData.php
  52.     * ViewableData->XML_val(FieldHolder,,1)
  53.       Line 59 of .cacheC..wamp.www.Briselda.sapphire.templates.TabSetFieldHolder.ss
  54.     * include(C:\Windows\Temp\silverstripe-cacheC--wamp-www-Briselda\.cacheC..wamp.www.Briselda.sapphire.templates.TabSetFieldHolder.ss)
  55.       Line 357 of SSViewer.php
  56.     * SSViewer->process(TabSet)
  57.       Line 773 of ViewableData.php
  58.     * ViewableData->renderWith(TabSetFieldHolder)
  59.       Line 62 of TabSet.php
  60.     * TabSet->FieldHolder()
  61.     * call_user_func_array(Array,Array)
  62.       Line 408 of ViewableData.php
  63.     * ViewableData->XML_val(FieldHolder,,1)
  64.       Line 70 of .cacheC..wamp.www.Briselda.sapphire.templates.Includes.Form.ss
  65.     * include(C:\Windows\Temp\silverstripe-cacheC--wamp-www-Briselda\.cacheC..wamp.www.Briselda.sapphire.templates.Includes.Form.ss)
  66.       Line 357 of SSViewer.php
  67.     * SSViewer->process(Form)
  68.       Line 773 of ViewableData.php
  69.     * ViewableData->renderWith(Array)
  70.       Line 982 of Form.php
  71.     * Form->forTemplate()
  72.       Line 424 of ViewableData.php
  73.     * ViewableData->XML_val(EditForm,,1)
  74.       Line 14 of .cacheC..wamp.www.Briselda.cms.templates.Includes.CMSMain_right.ss
  75.     * include(C:\Windows\Temp\silverstripe-cacheC--wamp-www-Briselda\.cacheC..wamp.www.Briselda.cms.templates.Includes.CMSMain_right.ss)
  76.       Line 357 of SSViewer.php
  77.     * SSViewer->process(CMSMain)
  78.       Line 773 of ViewableData.php
  79.     * ViewableData->renderWith(Array)
  80.       Line 452 of LeftAndMain.php
  81.     * LeftAndMain->Right()
  82.     * call_user_func_array(Array,Array)
  83.       Line 408 of ViewableData.php
  84.     * ViewableData->XML_val(Right,,1)
  85.       Line 71 of .cacheC..wamp.www.Briselda.cms.templates.LeftAndMain.ss
  86.     * include(C:\Windows\Temp\silverstripe-cacheC--wamp-www-Briselda\.cacheC..wamp.www.Briselda.cms.templates.LeftAndMain.ss)
  87.       Line 357 of SSViewer.php
  88.     * SSViewer->process(CMSMain)
  89.       Line 172 of Controller.php
  90.     * Controller->handleAction(HTTPRequest)
  91.       Line 129 of RequestHandler.php
  92.     * RequestHandler->handleRequest(HTTPRequest)
  93.       Line 119 of Controller.php
  94.     * Controller->handleRequest(HTTPRequest)
  95.       Line 280 of Director.php
  96.     * Director::handleRequest(HTTPRequest,Session)
  97.       Line 121 of Director.php
  98.     * Director::direct(/admin)
  99.       Line 118 of main.php