Notice (8): Undefined index: Whatnews [APP/Controller/WhatnewsController.php, line 396]Code Context$this->Whatnews->locale = array("en");
$whatnews2 = $this->Whatnews->find('first', array('recursive' => 2, 'conditions' => array('Whatnews.id' => $id, 'Whatnews.enable' => 1)));
$whatnews['Whatnews']['title_en'] = $whatnews2['Whatnews']['title'];
$id = 'www.wheelockcompany.com' $isPreview = false $whatnews = array() $whatnews2 = array()WhatnewsController::detail() - APP/Controller/WhatnewsController.php, line 396 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160 [main] - APP/webroot/index.php, line 110
Notice (8): Undefined index: new_id [APP/Controller/WhatnewsController.php, line 402]Code Context$this->loadModel("WhatnewsType");
$conditions = array();
$conditions[] = "id IN (" . $whatnews["Whatnews"]["new_id"] . ")";
$id = 'www.wheelockcompany.com' $isPreview = false $whatnews = array( 'Whatnews' => array( 'title_en' => null ) ) $whatnews2 = array() $conditions = array()WhatnewsController::detail() - APP/Controller/WhatnewsController.php, line 402 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490 Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185 Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160 [main] - APP/webroot/index.php, line 110
Notice (8): Undefined variable: whatnews [APP/View/Elements/sharemeta.ctp, line 12]Code Contextif($this->params['action'] == 'detail'){
switch(strtolower($this->params['controller'])){
case 'whatnews': $og_record = $whatnews; break;
$viewFile = '/home/virtualhosts/wheelockpropertieshk/public_html/app/View/Elements/sharemeta.ctp' $dataForView = array( 'page' => array(), 'treePage' => array( (int) 0 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array([maximum depth reached]) ), (int) 1 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 2 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 3 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 4 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 5 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 6 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 7 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 8 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array([maximum depth reached]) ), (int) 9 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array([maximum depth reached]) ) ), 'mainMenu' => array( (int) 0 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 1 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 2 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 3 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 4 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array([maximum depth reached]) ), (int) 5 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array([maximum depth reached]) ), (int) 6 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array( [maximum depth reached] ) ), (int) 7 => array( 'Page' => array( [maximum depth reached] ), 'nameTranslation' => array( [maximum depth reached] ), 'children' => array([maximum depth reached]) ) ), 'argsSort' => array(), 'lang_codes' => array( 'en_us' => 'en_us', 'zh_hk' => 'zh_hk', 'zh_cn' => 'zh_cn' ), 'lang_keys' => array( 'en-us' => 'en-us', 'zh-hk' => 'zh-hk', 'zh-cn' => 'zh-cn' ), 'languages' => array( (int) 0 => array( 'Language' => array( [maximum depth reached] ) ), (int) 1 => array( 'Language' => array( [maximum depth reached] ) ), (int) 2 => array( 'Language' => array( [maximum depth reached] ) ) ), 'lang' => 'zh-HK', 'langFolder' => 'zh-hk', 'langCompare' => 'zh_hk', 'args' => array(), 'code' => (int) 500, 'url' => '/zh-hk/whatnews/detail/www.wheelockcompany.com', 'name' => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1', 'error' => object(PDOException) { errorInfo => array( [maximum depth reached] ) queryString => 'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1' [protected] code => '42000' [protected] file => '/home/virtualhosts/wheelockpropertieshk/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 458 }, '_serialize' => array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ), 'cms_captcha_login' => false, 'content_for_layout' => '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1</p> <p class="notice"> <strong>SQL Query: </strong> SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN () </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 458</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">)) {</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_results </span><span style="color: #007700">= </span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 424</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $options </span><span style="color: #007700">+= array(</span><span style="color: #DD0000">'log' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">fullDebug</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $t </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_result </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 665</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$cache </span><span style="color: #007700">&& (</span><span style="color: #0000BB">$cached </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$params</span><span style="color: #007700">)) !== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, array(), </span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 1077</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string, boolean)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">generateAssociationQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$model</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">$queryData</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">$null</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $resultSet </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheQueries</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' false</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 2908</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { vc => false useDbConfig => 'default' useTable => 'whatnews_types' id => false data => array([maximum depth reached]) schemaName => 'wheelockprop' table => 'whatnews_types' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'WhatnewsTypes' alias => 'WhatnewsType' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null 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] ) tablePrefix => '' [protected] _schema => array( [maximum depth reached] ) [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' => array( (int) 0 => 'id IN ()' ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2880</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( (int) 0 => 'id IN ()' ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/WhatnewsController.php line 405</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $conditions</span><span style="color: #007700">[] = </span><span style="color: #DD0000">"id IN (" </span><span style="color: #007700">. </span><span style="color: #0000BB">$whatnews</span><span style="color: #007700">[</span><span style="color: #DD0000">"Whatnews"</span><span style="color: #007700">][</span><span style="color: #DD0000">"new_id"</span><span style="color: #007700">] . </span><span style="color: #DD0000">")"</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $whatnews_type </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">WhatnewsType</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, array( </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$conditions </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">)); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( (int) 0 => 'id IN ()' ) )</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">WhatnewsController->detail(string)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'www.wheelockcompany.com'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Controller/Controller.php line 490</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">ReflectionMethod->invokeArgs(WhatnewsController, array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'action' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'action'</span><span style="color: #007700">]</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$method</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeArgs</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'pass'</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(WhatnewsController) { name => 'Whatnews' components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) path => array([maximum depth reached]) premission => false request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Whatnews' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'detail' 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 => 'Whatnews' modelKey => 'whatnews' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Acl => object(AclComponent) {} Email => object(EmailComponent) {} RequestHandler => object(RequestHandlerComponent) {} Versions => object(VersionsComponent) {} General => object(GeneralComponent) {} CustomSetting => object(CustomSetting) {} Whatnews => object(Whatnews) {} User => object(User) {} WhatnewsType => object(AppModel) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array( (int) 0 => 'www.wheelockcompany.com' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Routing/Dispatcher.php line 185</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $render </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$controller</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeAction</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Dispatcher->_invoke(WhatnewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(WhatnewsController) { name => 'Whatnews' components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) path => array([maximum depth reached]) premission => false request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Whatnews' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'detail' 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 => 'Whatnews' modelKey => 'whatnews' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Acl => object(AclComponent) {} Email => object(EmailComponent) {} RequestHandler => object(RequestHandlerComponent) {} Versions => object(VersionsComponent) {} General => object(GeneralComponent) {} CustomSetting => object(CustomSetting) {} Whatnews => object(Whatnews) {} User => object(User) {} WhatnewsType => object(AppModel) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">APP/webroot/index.php line 110</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display === 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ', 'scripts_for_layout' => '', 'title_for_layout' => 'Errors' ) $page = array() $treePage = array( (int) 0 => array( 'Page' => array( 'id' => '2', 'url' => 'home', 'path' => 'home', 'class' => '', 'controller' => 'pages', 'action' => 'home', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => '主頁' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array() ), (int) 1 => array( 'Page' => array( 'id' => '3', 'url' => 'the-company', 'path' => 'the-company', 'class' => '', 'controller' => '', 'action' => '', 'args' => '', 'link' => 'the-company/corporate-information', 'parent_id' => null, 'name' => '公司資料' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Page' => array( 'id' => '4', 'url' => 'our-properties', 'path' => 'our-properties', 'class' => 'our-properties', 'controller' => 'properties', 'action' => 'index', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => '物業' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Page' => array( 'id' => '5', 'url' => 'our-support', 'path' => 'our-support', 'class' => '', 'controller' => 'supports', 'action' => 'index', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => '公益' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ) ) ), (int) 4 => array( 'Page' => array( 'id' => '6', 'url' => 'our-artistry', 'path' => 'our-artistry', 'class' => 'arts', 'controller' => 'arts', 'action' => 'index', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => '藝術' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ) ) ), (int) 5 => array( 'Page' => array( 'id' => '8', 'url' => 'our-career', 'path' => 'our-career', 'class' => 'career', 'controller' => '', 'action' => '', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => '加入我們' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ) ) ), (int) 6 => array( 'Page' => array( 'id' => '9', 'url' => 'whats-new', 'path' => 'whats-new', 'class' => '', 'controller' => 'whatnews', 'action' => 'index', 'args' => 'all', 'link' => '', 'parent_id' => null, 'name' => '新聞中心' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ) ) ), (int) 7 => array( 'Page' => array( 'id' => '7', 'url' => 'customer-service', 'path' => 'customer-service', 'class' => '', 'controller' => '', 'action' => '', 'args' => '', 'link' => 'customer-service/property-management-service', 'parent_id' => null, 'name' => '顧客服務' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ) ) ), (int) 8 => array( 'Page' => array( 'id' => '34', 'url' => 'disclaimer', 'path' => 'disclaimer', 'class' => 'disclaimer', 'controller' => '', 'action' => '', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => ' 免責聲明' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array() ), (int) 9 => array( 'Page' => array( 'id' => '11', 'url' => 'club-wheelock', 'path' => 'club-wheelock', 'class' => 'club-wheelock', 'controller' => '', 'action' => '', 'args' => '', 'link' => '', 'parent_id' => null, 'name' => 'Club Wheelock' ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array() ) ) $mainMenu = array( (int) 0 => array( 'Page' => array( 'id' => '3', 'name' => '公司資料', 'parent_id' => null, 'controller' => '', 'action' => '', 'args' => '', 'link' => 'the-company/corporate-information', 'url' => 'the-company', 'path' => 'the-company', 'ssl' => false, 'class' => '', 'no_content' => true ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ) ), (int) 1 => array( 'Page' => array( 'id' => '4', 'name' => '物業', 'parent_id' => null, 'controller' => 'properties', 'action' => 'index', 'args' => '', 'link' => '', 'url' => 'our-properties', 'path' => 'our-properties', 'ssl' => false, 'class' => 'our-properties', 'no_content' => false ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ) ), (int) 2 => array( 'Page' => array( 'id' => '5', 'name' => '公益', 'parent_id' => null, 'controller' => 'supports', 'action' => 'index', 'args' => '', 'link' => '', 'url' => 'our-support', 'path' => 'our-support', 'ssl' => false, 'class' => '', 'no_content' => false ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ), (int) 4 => array( [maximum depth reached] ) ) ), (int) 3 => array( 'Page' => array( 'id' => '6', 'name' => '藝術', 'parent_id' => null, 'controller' => 'arts', 'action' => 'index', 'args' => '', 'link' => '', 'url' => 'our-artistry', 'path' => 'our-artistry', 'ssl' => false, 'class' => 'arts', 'no_content' => false ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ) ) ), (int) 4 => array( 'Page' => array( 'id' => '8', 'name' => '加入我們', 'parent_id' => null, 'controller' => '', 'action' => '', 'args' => '', 'link' => '', 'url' => 'our-career', 'path' => 'our-career', 'ssl' => false, 'class' => 'career', 'no_content' => false ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array() ), (int) 5 => array( 'Page' => array( 'id' => '9', 'name' => '新聞中心', 'parent_id' => null, 'controller' => 'whatnews', 'action' => 'index', 'args' => 'all', 'link' => '', 'url' => 'whats-new', 'path' => 'whats-new', 'ssl' => false, 'class' => '', 'no_content' => false ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array() ), (int) 6 => array( 'Page' => array( 'id' => '7', 'name' => '顧客服務', 'parent_id' => null, 'controller' => '', 'action' => '', 'args' => '', 'link' => 'customer-service/property-management-service', 'url' => 'customer-service', 'path' => 'customer-service', 'ssl' => false, 'class' => '', 'no_content' => true ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ), (int) 3 => array( [maximum depth reached] ) ) ), (int) 7 => array( 'Page' => array( 'id' => '11', 'name' => 'Club Wheelock', 'parent_id' => null, 'controller' => '', 'action' => '', 'args' => '', 'link' => '', 'url' => 'club-wheelock', 'path' => 'club-wheelock', 'ssl' => false, 'class' => 'club-wheelock', 'no_content' => false ), 'nameTranslation' => array( (int) 0 => array( [maximum depth reached] ), (int) 1 => array( [maximum depth reached] ), (int) 2 => array( [maximum depth reached] ) ), 'children' => array() ) ) $argsSort = array() $lang_codes = array( 'en_us' => 'en_us', 'zh_hk' => 'zh_hk', 'zh_cn' => 'zh_cn' ) $lang_keys = array( 'en-us' => 'en-us', 'zh-hk' => 'zh-hk', 'zh-cn' => 'zh-cn' ) $languages = array( (int) 0 => array( 'Language' => array( 'id' => '1', 'name' => 'English', 'active' => true, 'priority' => '0', 'enable' => false, 'created' => '2010-10-19 19:52:51', 'modified' => '2010-10-19 19:52:53', 'code' => 'en_us' ) ), (int) 1 => array( 'Language' => array( 'id' => '2', 'name' => 'Traditional Chinese', 'active' => true, 'priority' => '0', 'enable' => false, 'created' => '2010-10-19 00:00:00', 'modified' => '2010-10-19 00:00:00', 'code' => 'zh_hk' ) ), (int) 2 => array( 'Language' => array( 'id' => '3', 'name' => 'Simplified Chinese', 'active' => true, 'priority' => '0', 'enable' => false, 'created' => '2011-07-19 18:35:00', 'modified' => '2011-07-19 18:35:02', 'code' => 'zh_cn' ) ) ) $lang = 'zh-HK' $langFolder = 'zh-hk' $langCompare = 'zh_hk' $args = array() $code = (int) 500 $url = '/zh-hk/whatnews/detail/www.wheelockcompany.com' $name = 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1' $error = object(PDOException) { errorInfo => array( (int) 0 => '42000', (int) 1 => (int) 1064, (int) 2 => 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1' ) queryString => 'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' [protected] message => 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1' [protected] code => '42000' [protected] file => '/home/virtualhosts/wheelockpropertieshk/public_html/lib/Cake/Model/Datasource/DboSource.php' [protected] line => (int) 458 } $_serialize = array( (int) 0 => 'code', (int) 1 => 'url', (int) 2 => 'name', (int) 3 => 'error' ) $cms_captcha_login = false $content_for_layout = '<h2>Database Error</h2> <p class="error"> <strong>Error: </strong> SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1</p> <p class="notice"> <strong>SQL Query: </strong> SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN () </p> <p class="notice"> <strong>Notice: </strong> If you want to customize this error message, create app/View/Errors/pdo_error.ctp</p> <h3>Stack Trace</h3> <ul class="cake-stack-trace"> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-0')">CORE/Cake/Model/Datasource/DboSource.php line 458</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">PDOStatement->execute(array)</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">try {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_connection</span><span style="color: #007700">-></span><span style="color: #0000BB">prepare</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$prepareOptions</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $query</span><span style="color: #007700">-></span><span style="color: #0000BB">setFetchMode</span><span style="color: #007700">(</span><span style="color: #0000BB">PDO</span><span style="color: #007700">::</span><span style="color: #0000BB">FETCH_LAZY</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (!</span><span style="color: #0000BB">$query</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$params</span><span style="color: #007700">)) {</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_results </span><span style="color: #007700">= </span><span style="color: #0000BB">$query</span><span style="color: #007700">;</span></span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre>array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/Datasource/DboSource.php line 424</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->_execute(string, array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $options </span><span style="color: #007700">+= array(</span><span style="color: #DD0000">'log' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">fullDebug</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $t </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">_result </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 665</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">DboSource->execute(string, array, array)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$cache </span><span style="color: #007700">&& (</span><span style="color: #0000BB">$cached </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getQueryCache</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, </span><span style="color: #0000BB">$params</span><span style="color: #007700">)) !== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$cached</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">execute</span><span style="color: #007700">(</span><span style="color: #0000BB">$sql</span><span style="color: #007700">, array(), </span><span style="color: #0000BB">$params</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' array() array()</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Datasource/DboSource.php line 1077</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">DboSource->fetchAll(string, boolean)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $query </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">generateAssociationQuery</span><span style="color: #007700">(</span><span style="color: #0000BB">$model</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">null</span><span style="color: #007700">, </span><span style="color: #0000BB">$queryData</span><span style="color: #007700">, </span><span style="color: #0000BB">false</span><span style="color: #007700">, </span><span style="color: #0000BB">$null</span><span style="color: #007700">);</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $resultSet </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">fetchAll</span><span style="color: #007700">(</span><span style="color: #0000BB">$query</span><span style="color: #007700">, </span><span style="color: #0000BB">$model</span><span style="color: #007700">-></span><span style="color: #0000BB">cacheQueries</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' false</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 2908</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->read(AppModel, array)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">* @return array</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">*/</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">protected function </span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">) {</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $results </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">getDataSource</span><span style="color: #007700">()-></span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">resetAssociations</span><span style="color: #007700">();</span></span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>object(AppModel) { vc => false useDbConfig => 'default' useTable => 'whatnews_types' id => false data => array([maximum depth reached]) schemaName => 'wheelockprop' table => 'whatnews_types' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'WhatnewsTypes' alias => 'WhatnewsType' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null 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] ) tablePrefix => '' [protected] _schema => array( [maximum depth reached] ) [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' => array( (int) 0 => 'id IN ()' ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2880</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->_readDataSource(string, array)</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">null</span><span style="color: #007700">;</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_readDataSource</span><span style="color: #007700">(</span><span style="color: #0000BB">$type</span><span style="color: #007700">, </span><span style="color: #0000BB">$query</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( (int) 0 => 'id IN ()' ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/WhatnewsController.php line 405</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $conditions</span><span style="color: #007700">[] = </span><span style="color: #DD0000">"id IN (" </span><span style="color: #007700">. </span><span style="color: #0000BB">$whatnews</span><span style="color: #007700">[</span><span style="color: #DD0000">"Whatnews"</span><span style="color: #007700">][</span><span style="color: #DD0000">"new_id"</span><span style="color: #007700">] . </span><span style="color: #DD0000">")"</span><span style="color: #007700">; </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $whatnews_type </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">WhatnewsType</span><span style="color: #007700">-></span><span style="color: #0000BB">find</span><span style="color: #007700">(</span><span style="color: #DD0000">'all'</span><span style="color: #007700">, array( </span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'conditions' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$conditions </span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">)); </span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span></span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'all' array( 'conditions' => array( (int) 0 => 'id IN ()' ) )</pre></div></li> <li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">WhatnewsController->detail(string)</a> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>'www.wheelockcompany.com'</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">CORE/Cake/Controller/Controller.php line 490</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">ReflectionMethod->invokeArgs(WhatnewsController, array)</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'action' </span><span style="color: #007700">=> </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'action'</span><span style="color: #007700">]</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">return </span><span style="color: #0000BB">$method</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeArgs</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'pass'</span><span style="color: #007700">]);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>object(WhatnewsController) { name => 'Whatnews' components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) path => array([maximum depth reached]) premission => false request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Whatnews' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'detail' 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 => 'Whatnews' modelKey => 'whatnews' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Acl => object(AclComponent) {} Email => object(EmailComponent) {} RequestHandler => object(RequestHandlerComponent) {} Versions => object(VersionsComponent) {} General => object(GeneralComponent) {} CustomSetting => object(CustomSetting) {} Whatnews => object(Whatnews) {} User => object(User) {} WhatnewsType => object(AppModel) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array( (int) 0 => 'www.wheelockcompany.com' )</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">CORE/Cake/Routing/Dispatcher.php line 185</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $controller</span><span style="color: #007700">-></span><span style="color: #0000BB">startupProcess</span><span style="color: #007700">();</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> $render </span><span style="color: #007700">= </span><span style="color: #0000BB">true</span><span style="color: #007700">;</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $result </span><span style="color: #007700">= </span><span style="color: #0000BB">$controller</span><span style="color: #007700">-></span><span style="color: #0000BB">invokeAction</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (</span><span style="color: #0000BB">$result </span><span style="color: #007700">instanceof </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Routing/Dispatcher.php line 160</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">Dispatcher->_invoke(WhatnewsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">));</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">}</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"> $response </span><span style="color: #007700">= </span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_invoke</span><span style="color: #007700">(</span><span style="color: #0000BB">$controller</span><span style="color: #007700">, </span><span style="color: #0000BB">$request</span><span style="color: #007700">, </span><span style="color: #0000BB">$response</span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">if (isset(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-></span><span style="color: #0000BB">params</span><span style="color: #007700">[</span><span style="color: #DD0000">'return'</span><span style="color: #007700">])) {</span></span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>object(WhatnewsController) { name => 'Whatnews' components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) path => array([maximum depth reached]) premission => false request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Whatnews' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'detail' 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 => 'Whatnews' modelKey => 'whatnews' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Acl => object(AclComponent) {} Email => object(EmailComponent) {} RequestHandler => object(RequestHandlerComponent) {} Versions => object(VersionsComponent) {} General => object(GeneralComponent) {} CustomSetting => object(CustomSetting) {} Whatnews => object(Whatnews) {} User => object(User) {} WhatnewsType => object(AppModel) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> <li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">APP/webroot/index.php line 110</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">$Dispatcher</span><span style="color: #007700">-></span><span style="color: #0000BB">dispatch</span><span style="color: #007700">(</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(),</span></span></code> <code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #007700">new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">()</span></span></code> <span class="code-highlight"><code><span style="color: #000000"><span style="color: #0000BB"></span><span style="color: #007700">);</span></span></code></span> <code><span style="color: #000000"><span style="color: #0000BB"></span></span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }</pre></div></li> </ul> <script type="text/javascript"> function traceToggle(event, id) { var el = document.getElementById(id); el.style.display = (el.style.display === 'block') ? 'none' : 'block'; event.preventDefault(); return false; } </script> ' $scripts_for_layout = '' $title_for_layout = 'Errors'include - APP/View/Elements/sharemeta.ctp, line 12 View::_evaluate() - CORE/Cake/View/View.php, line 929 View::_render() - CORE/Cake/View/View.php, line 891 View::_renderElement() - CORE/Cake/View/View.php, line 1189 View::element() - CORE/Cake/View/View.php, line 406 include - APP/View/Layouts/default.ctp, line 6 View::_evaluate() - CORE/Cake/View/View.php, line 929 View::_render() - CORE/Cake/View/View.php, line 891 View::renderLayout() - CORE/Cake/View/View.php, line 523 View::render() - CORE/Cake/View/View.php, line 468 Controller::render() - CORE/Cake/Controller/Controller.php, line 952 ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 273 ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 262 ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 175 ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 120 [main] - [internal], line ??
Error: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1
SQL Query: SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()
Notice: If you want to customize this error message, create app/View/Errors/pdo_error.ctp
try {
$query = $this->_connection->prepare($sql, $prepareOptions);
$query->setFetchMode(PDO::FETCH_LAZY);
if (!$query->execute($params)) {
$this->_results = $query;
array()
$options += array('log' => $this->fullDebug);
$t = microtime(true);
$this->_result = $this->_execute($sql, $params);
'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' array()
if ($cache && ($cached = $this->getQueryCache($sql, $params)) !== false) {
return $cached;
}
$result = $this->execute($sql, array(), $params);
if ($result) {
'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' array() array()
$query = $this->generateAssociationQuery($model, null, null, null, null, $queryData, false, $null);
$resultSet = $this->fetchAll($query, $model->cacheQueries);
'SELECT `WhatnewsType`.`id`, `WhatnewsType`.`name`, `WhatnewsType`.`description`, `WhatnewsType`.`thumbnail`, `WhatnewsType`.`priority`, `WhatnewsType`.`enable`, `WhatnewsType`.`created`, `WhatnewsType`.`modified` FROM `wheelockprop`.`whatnews_types` AS `WhatnewsType` WHERE id IN ()' false
* @return array
*/
protected function _readDataSource($type, $query) {
$results = $this->getDataSource()->read($this, $query);
$this->resetAssociations();
object(AppModel) { vc => false useDbConfig => 'default' useTable => 'whatnews_types' id => false data => array([maximum depth reached]) schemaName => 'wheelockprop' table => 'whatnews_types' primaryKey => 'id' validate => array([maximum depth reached]) validationErrors => array([maximum depth reached]) validationDomain => null plugin => null name => 'WhatnewsTypes' alias => 'WhatnewsType' tableToModel => array( [maximum depth reached] ) cacheQueries => false belongsTo => array([maximum depth reached]) hasOne => array([maximum depth reached]) hasMany => array([maximum depth reached]) hasAndBelongsToMany => array([maximum depth reached]) actsAs => null 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] ) tablePrefix => '' [protected] _schema => array( [maximum depth reached] ) [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' => array( (int) 0 => 'id IN ()' ), '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' => array( (int) 0 => 'id IN ()' ), 'fields' => null, 'joins' => array(), 'limit' => null, 'offset' => null, 'order' => array( (int) 0 => null ), 'page' => (int) 1, 'group' => null, 'callbacks' => true )
$conditions[] = "id IN (" . $whatnews["Whatnews"]["new_id"] . ")";
$whatnews_type = $this->WhatnewsType->find('all', array(
'conditions' => $conditions
));
'all' array( 'conditions' => array( (int) 0 => 'id IN ()' ) )
'www.wheelockcompany.com'
'action' => $request->params['action']
));
}
return $method->invokeArgs($this, $request->params['pass']);
object(WhatnewsController) { name => 'Whatnews' components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) path => array([maximum depth reached]) premission => false request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Whatnews' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'detail' 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 => 'Whatnews' modelKey => 'whatnews' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Acl => object(AclComponent) {} Email => object(EmailComponent) {} RequestHandler => object(RequestHandlerComponent) {} Versions => object(VersionsComponent) {} General => object(GeneralComponent) {} CustomSetting => object(CustomSetting) {} Whatnews => object(Whatnews) {} User => object(User) {} WhatnewsType => object(AppModel) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } array( (int) 0 => 'www.wheelockcompany.com' )
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' }
));
}
$response = $this->_invoke($controller, $request, $response);
if (isset($request->params['return'])) {
object(WhatnewsController) { name => 'Whatnews' components => array( [maximum depth reached] ) uses => array( [maximum depth reached] ) helpers => array( [maximum depth reached] ) path => array([maximum depth reached]) premission => false request => object(CakeRequest) {} response => object(CakeResponse) {} viewPath => 'Whatnews' layoutPath => null viewVars => array( [maximum depth reached] ) view => 'detail' 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 => 'Whatnews' modelKey => 'whatnews' validationErrors => null Auth => object(AuthComponent) {} Session => object(SessionComponent) {} Cookie => object(CookieComponent) {} Acl => object(AclComponent) {} Email => object(EmailComponent) {} RequestHandler => object(RequestHandlerComponent) {} Versions => object(VersionsComponent) {} General => object(GeneralComponent) {} CustomSetting => object(CustomSetting) {} Whatnews => object(Whatnews) {} User => object(User) {} WhatnewsType => object(AppModel) {} [protected] _responseClass => 'CakeResponse' [protected] _mergeParent => 'AppController' [protected] _eventManager => object(CakeEventManager) {} } object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) { params => array( [maximum depth reached] ) data => array([maximum depth reached]) query => array([maximum depth reached]) url => 'zh-hk/whatnews/detail/www.wheelockcompany.com' base => '' webroot => '/' here => '/zh-hk/whatnews/detail/www.wheelockcompany.com' [protected] _detectors => array( [maximum depth reached] ) [protected] _input => '' } object(CakeResponse) { [protected] _statusCodes => array( [maximum depth reached] ) [protected] _mimeTypes => array( [maximum depth reached] ) [protected] _protocol => 'HTTP/1.1' [protected] _status => (int) 200 [protected] _contentType => 'text/html' [protected] _headers => array([maximum depth reached]) [protected] _body => null [protected] _file => null [protected] _fileRange => null [protected] _charset => 'UTF-8' [protected] _cacheDirectives => array([maximum depth reached]) [protected] _cookies => array([maximum depth reached]) }