Error: An Internal Error Has Occurred.
try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_results = $query;
array()
$table = $this->fullTableName($model);
$fields = false;
$cols = $this->_execute('SHOW FULL COLUMNS FROM ' . $table);
if (!$cols) {
'SHOW FULL COLUMNS FROM `visioncomics_prod`.`comic_languages`'
$db = $this->getDataSource();
$db->cacheSources = ($this->cacheSources && $db->cacheSources);
if (method_exists($db, 'describe')) {
$this->_schema = $db->describe($this);
}
object(ComicLanguage) { displayField => 'name' validate => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) actsAs => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'comic_languages' id => false data => array([maximum depth reached]) schemaName => 'visioncomics_prod' table => 'comic_languages' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'ComicLanguage' alias => 'ComicLanguage' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null }
}
$allFields = empty($fields);
if ($allFields) {
$fields = array_keys($model->schema());
} elseif (!is_array($fields)) {
$bypass = true;
$queryData['fields'] = $this->fields($model, null, $queryData['fields']);
} else {
$queryData['fields'] = $this->fields($model);
}
object(ComicLanguage) { displayField => 'name' validate => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) actsAs => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'comic_languages' id => false data => array([maximum depth reached]) schemaName => 'visioncomics_prod' table => 'comic_languages' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'ComicLanguage' alias => 'ComicLanguage' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null }
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
object(ComicLanguage) { displayField => 'name' validate => array( [maximum depth reached] ) hasAndBelongsToMany => array( [maximum depth reached] ) actsAs => array( [maximum depth reached] ) useDbConfig => 'default' useTable => 'comic_languages' id => false data => array([maximum depth reached]) schemaName => 'visioncomics_prod' table => 'comic_languages' primaryKey => 'id' validationErrors => array([maximum depth reached]) validationDomain => null tablePrefix => '' plugin => null name => 'ComicLanguage' alias => 'ComicLanguage' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) Behaviors => object(BehaviorCollection) {} whitelist => array([maximum depth reached]) cacheSources => true findQueryType => 'all' recursive => (int) 1 order => null virtualFields => array([maximum depth reached]) __backAssociation => array([maximum depth reached]) __backInnerAssociation => array([maximum depth reached]) __backOriginalAssociation => array([maximum depth reached]) __backContainableAssociation => array([maximum depth reached]) findMethods => array( [maximum depth reached] ) [protected] _schema => null [protected] _associationKeys => array( [maximum depth reached] ) [protected] _associations => array( [maximum depth reached] ) [protected] _insertID => null [protected] _sourceConfigured => true [protected] _eventManager => object(CakeEventManager) {} [protected] _validator => null } array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
return null;
}
return $this->_readDataSource($type, $query);
}
'all' array( 'conditions' => null, 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
$languages = Cache::read('app_languages', 'long');
//if (!$languages) {
$this->loadModel('ComicLanguage');
$languages = $this->ComicLanguage->find('all');
Cache::write('app_languages', $languages, 'long');
'all'
* beforeFilter method
*/
public function beforeFilter() {
parent::beforeFilter();
$this->Wizard->steps = array('publisher', 'details', 'cover', 'video_cover', 'preview', 'issue_file');
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ComicsController) {} [protected] _stopped => false }
if ($listener['passParams'] === true) {
$result = call_user_func_array($listener['callable'], $event->data);
} else {
$result = call_user_func($listener['callable'], $event);
}
array( (int) 0 => object(ComicsController) {}, (int) 1 => 'beforeFilter' ) object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ComicsController) {} [protected] _stopped => false }
* @return void
*/
public function startupProcess() {
$this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));
$this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));
object(CakeEvent) { data => null result => null [protected] _name => 'Controller.initialize' [protected] _subject => object(ComicsController) {} [protected] _stopped => false }
*/
protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {
$controller->constructClasses();
$controller->startupProcess();
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(ComicsController) { components => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) name => 'Comics' request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Comics' layoutPath => null viewVars => array([maximum depth reached]) view => 'view' layout => 'default' autoRender => true autoLayout => true Components => object(ComponentCollection) {} viewClass => 'View' View => null ext => '.ctp' plugin => null cacheAction => false passedArgs => array( [maximum depth reached] ) scaffold => false methods => array( [maximum depth reached] ) modelClass => 'Comic' modelKey => 'comic' validationErrors => null Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Paginator => object(PaginatorComponent) {} Acl => object(AclComponent) {} AclManager => object(AclManagerComponent) {} Auth => object(AuthComponent) {} RequestHandler => object(RequestHandlerComponent) {} FileUpload => object(FileUploadComponent) {} Toolbar => object(ToolbarComponent) {} MobileDetect => object(MobileDetectComponent) {} Wizard => object(WizardComponent) {} ComicLanguage => object(ComicLanguage) {} [protected] fileuploadCoverImageConfig => array( [maximum depth reached] ) [protected] fileuploadPreviewConfig => array( [maximum depth reached] ) [protected] fileuploadPromoConfig => array( [maximum depth reached] ) [protected] fileuploadBigHighlightImageConfig => array( [maximum depth reached] ) [protected] fileuploadSmallHighlightImageConfig => array( [maximum depth reached] ) [protected] fil