SQLSTATE[HY000]: General error: 1 no such table: recess_tools_packages
Location: Line 220 of /var/www/recess/recess/lib/recess/database/pdo/SqliteDataSourceProvider.class.php
- 216: }
- 217: }
- 218:
- 219: function getStatementForBuilder(SqlBuilder $builder, $action, PdoDataSource $source) {
- 220: $statement = $source->prepare($builder->$action());
- 221: $arguments = $builder->getPdoArguments();
- 222: foreach($arguments as &$argument) {
- 223: // Begin workaround for PDO's poor numeric binding
- 224: $queryParameter = $argument->getQueryParameter();
- 225: if(is_numeric($queryParameter)) { continue; }
Call Stack
10
PDO->prepare( 'SELECT * FROM recess_tools_packages LIMIT 1 OFFSET 0' )
Arguments Passed In
Type |
Value |
string |
'SELECT * FROM recess_tools_packages LIMIT 1 OFFSET 0' |
Called From
- 216: }
- 217: }
- 218:
- 219: function getStatementForBuilder(SqlBuilder $builder, $action, PdoDataSource $source) {
- 220: $statement = $source->prepare($builder->$action());
- 221: $arguments = $builder->getPdoArguments();
- 222: foreach($arguments as &$argument) {
- 223: // Begin workaround for PDO's poor numeric binding
- 224: $queryParameter = $argument->getQueryParameter();
- 225: if(is_numeric($queryParameter)) { continue; }
9
SqliteDataSourceProvider->getStatementForBuilder( SqlBuilder, 'select', ModelDataSource )
Arguments Passed In
Type |
Value |
SqlBuilder |
SqlBuilder |
string |
'select' |
ModelDataSource |
ModelDataSource |
Called From
- 101: * @param string $className the type to fill from query results.
- 102: * @return array($className)
- 103: */
- 104: function queryForClass(SqlBuilder $builder, $className) {
- 105: $statement = $this->provider->getStatementForBuilder($builder,'select',$this);
- 106: $statement->setFetchMode(PDO::FETCH_CLASS, $className, array());
- 107: $statement->execute();
- 108: return $this->provider->fetchAll($statement);
- 109: }
- 110:
8
PdoDataSource->queryForClass( SqlBuilder, 'RecessReflectorPackage' )
Arguments Passed In
Type |
Value |
SqlBuilder |
SqlBuilder |
string |
'RecessReflectorPackage' |
Called From
- 92: */
- 93: protected function realize() {
- 94: if(!$this->hasResults) {
- 95: unset($this->results);
- 96: $this->results = $this->source->queryForClass($this->sqlBuilder, $this->rowClass);
- 97: $this->hasResults = true;
- 98: }
- 99: }
- 100:
- 101: /**
7
PdoDataSet->realize()
Called From
- 151: /*
- 152: * The following methods are in accordance with the ArrayAccess interface
- 153: */
- 154: function offsetExists($index) {
- 155: if(!$this->hasResults) {$this->realize();}
- 156: return isset($this->results[$index]);
- 157: }
- 158:
- 159: function offsetGet($index) {
- 160: if(!$this->hasResults) {$this->realize();}
6
PdoDataSet->offsetExists( 0 )
Arguments Passed In
Called From
- 177: }
- 178: }
- 179:
- 180: function isEmpty() {
- 181: return !(isset($this[0]) && $this[0] != null);
- 182: // return !isset($this[0]);
- 183: }
- 184:
- 185: /**
- 186: * Return the first item in the PdoDataSet or Null if none exist
5
PdoDataSet->isEmpty()
Called From
- 189: */
- 190: function first() {
- 191: if(!$this->hasResults) {
- 192: $results = $this->range(0,1);
- 193: if(!$results->isEmpty()) {
- 194: return $results[0];
- 195: }
- 196: } else {
- 197: if(!$this->isEmpty()) {
- 198: return $this[0];
4
PdoDataSet->first()
Called From
- 113: /** !Route GET, package/$package */
- 114: function packageInfo ($package) {
- 115: Library::import('recess.apps.tools.models.RecessReflectorPackage');
- 116: $package = new RecessReflectorPackage($package);
- 117: $this->package = $package->find()->first();
- 118:
- 119: }
- 120:
- 121:
- 122: /** !Route GET, class/$fullyQualifiedModel/create */
2
ReflectionMethod->invokeArgs( 'welcome.models' )
Arguments Passed In
Type |
Value |
RecessToolsCodeController |
RecessToolsCodeController |
array |
Array[1] Key | Value | 0 | 'welcome.models' |
|
Called From
- 167: } catch(RecessException $e) {
- 168: throw new RecessException('Error calling method "' . $methodName . '" in "' . get_class($this) . '". ' . $e->getMessage(), array());
- 169: }
- 170:
- 171: $response = $method->invokeArgs($this, $callArguments);
- 172: } else {
- 173: throw new RecessException('Error calling method "' . $methodName . '" in "' . get_class($this) . '". Method does not exist.', array());
- 174: }
- 175:
- 176: if(!$response instanceof Response) {
1
Controller->serve( RecessToolsCodeController, Array )
Arguments Passed In
Type |
Value |
Request |
Request Member | Value | format | 'xhtml' | headers | Array[9] Key | Value | HOST | '127.0.0.1' | USER_AGENT | 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5' | ACCEPT | 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' | ACCEPT_LANGUAGE | 'en-us,en;q=0.5' | ACCEPT_ENCODING | 'gzip,deflate' | ACCEPT_CHARSET | 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' | KEEP_ALIVE | '300' | CONNECTION | 'keep-alive' | REFERER | 'http://127.0.0.1/recess/recess/apps/WelcomeApplication' |
| resource | '/recess/code/package/welcome.models' | resourceParts | Array[4] Key | Value | 0 | 'recess' | 1 | 'code' | 2 | 'package' | 3 | 'welcome.models' |
| method | 'GET' | get | Array[0] | post | Array[0] | put | Array[0] | cookies | Array[0] | meta | Meta Member | Value | app | RecessToolsApplication Member | Value | codeTemplatesDir | '/var/www/recess/recess/lib/recess/apps/tools/templates/' | name | 'Recess Tools' | controllersPrefix | 'recess.apps.tools.controllers.' | modelsPrefix | 'recess.apps.tools.models.' | viewsDir | '/var/www/recess/recess/lib/recess/apps/tools/views/' | routingPrefix | 'recess/' |
| controllerMethod | 'packageInfo' | controllerMethodArguments | Array[1] Key | Value | package | 'welcome.models' |
| useAssociativeArguments | 1 |
| username | | password | |
|
Called From
- 37:
- 38: // $controller = $pluggedPolicy->getControllerFor($request, $routing);
- 39: $controller = $pluggedPolicy->getControllerFor($request, $apps, $routes);
- 40:
- 41: $response = $controller->serve($request);
- 42:
- 43: $view = $pluggedPolicy->getViewFor($response);
- 44:
- 45: ob_start();
- 46:
0
Recess::main( Request )
Arguments Passed In
Type |
Value |
Request |
Request Member | Value | format | 'xhtml' | headers | Array[9] Key | Value | HOST | '127.0.0.1' | USER_AGENT | 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.5) Gecko/2008121623 Ubuntu/8.10 (intrepid) Firefox/3.0.5' | ACCEPT | 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' | ACCEPT_LANGUAGE | 'en-us,en;q=0.5' | ACCEPT_ENCODING | 'gzip,deflate' | ACCEPT_CHARSET | 'ISO-8859-1,utf-8;q=0.7,*;q=0.7' | KEEP_ALIVE | '300' | CONNECTION | 'keep-alive' | REFERER | 'http://127.0.0.1/recess/recess/apps/WelcomeApplication' |
| resource | '/recess/code/package/welcome.models' | resourceParts | Array[4] Key | Value | 0 | 'recess' | 1 | 'code' | 2 | 'package' | 3 | 'welcome.models' |
| method | 'GET' | get | Array[0] | post | Array[0] | put | Array[0] | cookies | Array[0] | meta | Meta Member | Value | app | RecessToolsApplication Member | Value | codeTemplatesDir | '/var/www/recess/recess/lib/recess/apps/tools/templates/' | name | 'Recess Tools' | controllersPrefix | 'recess.apps.tools.controllers.' | modelsPrefix | 'recess.apps.tools.models.' | viewsDir | '/var/www/recess/recess/lib/recess/apps/tools/views/' | routingPrefix | 'recess/' |
| controllerMethod | 'packageInfo' | controllerMethodArguments | Array[1] Key | Value | package | 'welcome.models' |
| useAssociativeArguments | 1 |
| username | | password | |
|
DefaultPolicy |
DefaultPolicy |
array |
Array[2] Key | Value | 0 | RecessToolsApplication Member | Value | codeTemplatesDir | '/var/www/recess/recess/lib/recess/apps/tools/templates/' | name | 'Recess Tools' | controllersPrefix | 'recess.apps.tools.controllers.' | modelsPrefix | 'recess.apps.tools.models.' | viewsDir | '/var/www/recess/recess/lib/recess/apps/tools/views/' | routingPrefix | 'recess/' |
| 1 | WelcomeApplication Member | Value | name | 'Welcome to Recess' | controllersPrefix | 'welcome.controllers.' | modelsPrefix | 'welcome.models.' | viewsDir | '/var/www/recess/apps/welcome/views/' | routingPrefix | '/' |
|
|
RtNode |
RtNode |
array |
Array[0] |
Called From
- 18:Library::import('recess.http.Environment');
- 19:Library::import('recess.Recess');
- 20:
- 21:// Entry point to Recess!
- 22:Recess::main(Environment::getRawRequest(), RecessConf::$policy, RecessConf::$applications, RecessConf::getRoutes(), RecessConf::$plugins);
- 23:
- 24:// RecessConf follows...
- 25:
- 26:abstract class RecessConf {
- 27: