rasmusbergpalm / jslate

Write your dashboards in pure html/js

Home Page:jslate.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Jslate table

marktjones opened this issue · comments

I've followed the installation instructions up to the point 'open up localhost/jslate/users/add'.

At first it showed an error asking me to create the controller jslate_controller containing:

class JslateController extends AppController {

var $name = 'Jslate';
}

?>

Reloading the page after this i get the following error:

"Error: Database table jslates for model Jslate was not found.

Notice: If you want to customize this error message, create app/views/errors/missing_table.ctp"

There's no reference to the jslate table in run app/config/schema/jSlate.sql. Here's the error dump. Any idea what I've done wrong?

1 0.0007 646368 {main}( ) ../index.php:0

2 0.0099 2013432 Dispatcher->dispatch( $url = ???, $additionalParams = ??? ) ../index.php:83

3 0.0132 2164408 Dispatcher->_invoke( $controller = class JslateController { public $name = 'Jslate'; public $layout = 'clean'; public $components = array (0 => 'RequestHandler', 1 => 'Session', 2 => 'Auth', 3 => 'Security'); public $helpers = array (0 => 'Form', 1 => 'Html', 2 => 'Javascript', 3 => 'Time', 4 => 'Session'); public $here = '/jslate/users/add'; public $webroot = '/'; public $action = 'users'; public $uses = FALSE; public $params = array ('controller' => 'jslate', 'action' => 'users', 'named' => array (...), 'pass' => array (...), 'plugin' => NULL, 'form' => array (...), 'url' => array (...)); public $data = NULL; public $paginate = array ('limit' => 20, 'page' => 1); public $viewPath = 'jslate'; public $layoutPath = NULL; public $viewVars = array (); public $modelNames = array (0 => 'Jslate'); public $base = ''; public $autoRender = TRUE; public $autoLayout = TRUE; public $Component = class Component { public $__controllerVars = array (...); public $_loaded = array (...); public $_primary = array (...); public $__settings = array (...) }; public $view = 'View'; public $ext = '.ctp'; public $output = NULL; public $plugin = NULL; public $cacheAction = FALSE; public $persistModel = FALSE; public $passedArgs = array (0 => 'add'); public $scaffold = FALSE; public $methods = array (); public $modelClass = 'Jslate'; public $modelKey = 'jslate'; public $validationErrors = NULL; public $__httpCodes = NULL; public $RequestHandler = class RequestHandlerComponent { public $ajaxLayout = 'ajax'; public $enabled = TRUE; public $__responseTypeSet = NULL; public $params = array (...); public $__requestContent = array (...); public $mobileUA = array (...); public $__acceptTypes = array (...); public $__renderType = NULL; public $ext = NULL; public $__typesInitialized = FALSE }; public $Session = class SessionComponent { public $__active = TRUE; public $__bare = 0; public $valid = FALSE; public $error = FALSE; public $_userAgent = '4a144e481e1ff1bbc9d0b5c561dee411'; public $path = '/'; public $lastError = NULL; public $security = 'medium'; public $time = 1366025143; public $sessionTime = 1625225143; public $cookieLifeTime = FALSE; public $watchKeys = array (...); public $id = NULL; public $host = 'jslate.localhost'; public $timeout = NULL; public $enabled = TRUE }; public $Auth = class AuthComponent { public $_loggedIn = FALSE; public $components = array (...); public $authenticate = NULL; public $authorize = FALSE; public $ajaxLogin = NULL; public $flashElement = 'default'; public $userModel = 'User'; public $userScope = array (...); public $fields = array (...); public $sessionKey = NULL; public $actionPath = NULL; public $loginAction = NULL; public $loginRedirect = NULL; public $logoutRedirect = NULL; public $object = NULL; public $loginError = NULL; public $authError = NULL; public $autoRedirect = TRUE; public $allowedActions = array (...); public $actionMap = array (...); public $data = array (...); public $params = array (...); public $_methods = array (...); public $enabled = TRUE; public $Session = class SessionComponent { ... }; public $RequestHandler = class RequestHandlerComponent { ... } }; public $Security = class SecurityComponent { public $blackHoleCallback = NULL; public $requirePost = array (...); public $requireGet = array (...); public $requirePut = array (...); public $requireDelete = array (...); public $requireSecure = array (...); public $requireAuth = array (...); public $requireLogin = array (...); public $loginOptions = array (...); public $loginUsers = array (...); public $allowedControllers = array (...); public $allowedActions = array (...); public $disabledFields = array (...); public $validatePost = TRUE; public $components = array (...); public $_action = NULL; public $enabled = TRUE; public $RequestHandler = class RequestHandlerComponent { ... }; public $Session = class SessionComponent { ... } } }, $params = array ('controller' => 'jslate', 'action' => 'users', 'named' => array (), 'pass' => array (0 => 'add'), 'plugin' => NULL, 'form' => array (), 'url' => array ('url' => 'jslate/users/add')) ) ../dispatcher.php:171

4 0.0132 2164488 Controller->constructClasses( ) ../dispatcher.php:186

5 0.0148 2431056 Controller->loadModel( $modelClass = 'Jslate', $id = 'add' ) ../controller.php:493

6 0.0149 2433208 ClassRegistry->init( $class = array ('class' => 'Jslate', 'alias' => 'Jslate', 'id' => 'add'), $type = ??? ) ../controller.php:637

7 0.0194 3276352 Model->__construct( $id = array ('class' => 'Jslate', 'alias' => 'Jslate', 'id' => 'add', 'name' => 'Jslate'), $table = ???, $ds = ??? ) ../class_registry.php:150

8 0.0213 3836016 Model->setSource( $tableName = 'jslates' ) ../model.php:474

9 0.0230 3870000 Object->cakeError( $method = 'missingTable', $messages = array (0 => array ('className' => 'Jslate', 'table' => 'jslates', 'code' => 500)) ) ../model.php:774

10 0.0233 3930200 ErrorHandler->__construct( $method = 'missingTable', $messages = array (0 => array ('className' => 'Jslate', 'table' => 'jslates', 'code' => 500)) ) ../object.php:201

11 0.0367 5631984 Object->_stop( $status = ??? ) ../error.php:126

12 0.0374 5433888 Debugger->handleError( $code = 2, $description = 'Unknown: open(/var/lib/php/session/sess_k6pllo6h69md2cdn926rotogk5, O_RDWR) failed: No such file or directory (2)', $file = 'Unknown', $line = 0, $context = NULL ) ../debugger.php:0

The installation instructions assume you install jslate in a directory 'jslate' on your webroot.
If you install it directly to the webroot just go to localhost/users/add and so on