Code Context <link rel="shortcut icon" href="<?php echo $this->webroot;?>favicon.png" type="image/png" />
<link rel="icon" href="<?php echo $this->webroot; ?>favicon.ico" type="image/x-icon" />
<title><?php echo __('Indexeg | Egypt business'); ?> -> <?php echo $client['Client']['company_name'];?></title>
$viewFile = '/home1/indexeg/public_html/app/View/Themed/Agd/Layouts/search.ctp'
$dataForView = array(
'code' => '500',
'url' => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.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 &#039;) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
&#039; at line 7',
'error' => object(PDOException) {
errorInfo => array(
[maximum depth reached]
)
queryString => 'SELECT `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
[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 ') )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
' at line 7'
[protected] code => '42000'
[protected] file => '/home1/indexeg/public_html/lib/Cake/Model/Datasource/DboSource.php'
[protected] line => (int) 460
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name',
(int) 3 => 'error'
),
'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 &#039;) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
&#039; at line 7</p>
<p class="notice">
<strong>SQL Query: </strong>
SELECT `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id` </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 460</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 426</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 `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</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"> </span><span style="color: #007700">if (</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">, 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"> $out </span><span style="color: #007700">= array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'SELECT `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
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">trim</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 `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
false</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 2750</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->read(Client, 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(Client) {
name => 'Client'
virtualFields => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasOne => array(
[maximum depth reached]
)
useCache => true
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'clients'
id => false
data => array([maximum depth reached])
schemaName => 'indexeg_new2014'
table => 'clients'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => 'agd_'
plugin => 'Indexeg'
alias => 'Client'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'list'
recursive => (int) -1
order => null
__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] _displayFields => array([maximum depth reached])
[protected] _editFields => array([maximum depth reached])
[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(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
),
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => array(
(int) 0 => 'Client.category_id'
),
'callbacks' => true,
'recursive' => (int) -1,
'list' => array(
'groupPath' => null,
'valuePath' => '{n}.Client.category_id',
'keyPath' => '{n}.Client.id'
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2722</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>'list'
array(
'conditions' => array(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
),
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => array(
(int) 0 => 'Client.category_id'
),
'callbacks' => true,
'recursive' => (int) -1,
'list' => array(
'groupPath' => null,
'valuePath' => '{n}.Client.category_id',
'keyPath' => '{n}.Client.id'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'conditions' => array(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'group' => array(
(int) 0 => 'Client.category_id'
),
'recursive' => (int) -1,
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Plugin/Croogo/Model/CroogoAppModel.php line 81</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">call_user_func_array(array, array)</a> <div id="file-excerpt-7" 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></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $args </span><span style="color: #007700">= </span><span style="color: #0000BB">func_get_args</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">call_user_func_array</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'parent'</span><span style="color: #007700">, </span><span style="color: #DD0000">'find'</span><span style="color: #007700">), </span><span style="color: #0000BB">$args</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">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useCache</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => 'parent',
(int) 1 => 'find'
)
array(
(int) 0 => 'list',
(int) 1 => array(
'conditions' => array(
[maximum depth reached]
),
'group' => array(
[maximum depth reached]
),
'recursive' => (int) -1,
'fields' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Plugin/Indexeg/Controller/ClientsController.php line 290</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">CroogoAppModel->find(string, 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">'Client.id'</span><span style="color: #007700">,</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'Client.category_id'</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">));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">Session</span><span style="color: #007700">-></span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #DD0000">'SRHCATS'</span><span style="color: #007700">,</span><span style="color: #0000BB">$categories</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'conditions' => array(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'group' => array(
(int) 0 => 'Client.category_id'
),
'recursive' => (int) -1,
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Plugin/Indexeg/Controller/ClientsController.php line 197</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ClientsController->_advancedSearch(integer, null, null, null, null, null)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $region </span><span style="color: #007700">= </span><span style="color: #0000BB">Sanitize</span><span style="color: #007700">::</span><span style="color: #0000BB">clean</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">'named'</span><span style="color: #007700">][</span><span style="color: #DD0000">'region'</span><span style="color: #007700">]);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $city </span><span style="color: #007700">= </span><span style="color: #0000BB">Sanitize</span><span style="color: #007700">::</span><span style="color: #0000BB">clean</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">'named'</span><span style="color: #007700">][</span><span style="color: #DD0000">'city'</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"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'clients'</span><span style="color: #007700">,</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_advancedSearch</span><span style="color: #007700">(</span><span style="color: #0000BB">$limit</span><span style="color: #007700">,</span><span style="color: #0000BB">$name</span><span style="color: #007700">, </span><span style="color: #0000BB">$category</span><span style="color: #007700">, </span><span style="color: #0000BB">$country</span><span style="color: #007700">, </span><span style="color: #0000BB">$region</span><span style="color: #007700">, </span><span style="color: #0000BB">$city</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-9" class="cake-code-dump" style="display: none;"><pre>(int) 10
null
null
null
null
null</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">ClientsController->search(string, string, string, string)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'www.eldib-office.com'
'eng'
'search'
'www.eldib-office.com'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 490</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">ReflectionMethod->invokeArgs(ClientsController, array)</a> <div id="file-excerpt-11" 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-11" class="cake-code-dump" style="display: none;"><pre>object(ClientsController) {
name => 'Clients'
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
usePaginationCache => true
viewClass => 'Theme'
theme => 'Agd'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Clients'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'search'
layout => 'search'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
View => null
ext => '.ctp'
plugin => 'Indexeg'
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Client'
modelKey => 'client'
validationErrors => null
Croogo => object(CroogoComponent) {}
Security => object(SecurityComponent) {}
Acl => object(AclComponent) {}
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Paginator => object(PaginatorComponent) {}
Akismet => object(AkismetComponent) {}
Recaptcha => object(RecaptchaComponent) {}
AhmedGalal => object(AhmedGalalComponent) {}
AclFilter => object(AclFilterComponent) {}
CroogoAccess => object(AclAccessComponent) {}
Settings => object(SettingsComponent) {}
Setting => object(Setting) {}
Client => object(Client) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
array(
(int) 0 => 'www.eldib-office.com',
(int) 1 => 'eng',
(int) 2 => 'search',
(int) 3 => 'www.eldib-office.com'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 187</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-12" 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-12" 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 => 'eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
base => ''
webroot => '/'
here => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 162</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ClientsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" 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-13" class="cake-code-dump" style="display: none;"><pre>object(ClientsController) {
name => 'Clients'
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
usePaginationCache => true
viewClass => 'Theme'
theme => 'Agd'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Clients'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'search'
layout => 'search'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
View => null
ext => '.ctp'
plugin => 'Indexeg'
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Client'
modelKey => 'client'
validationErrors => null
Croogo => object(CroogoComponent) {}
Security => object(SecurityComponent) {}
Acl => object(AclComponent) {}
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Paginator => object(PaginatorComponent) {}
Akismet => object(AkismetComponent) {}
Recaptcha => object(RecaptchaComponent) {}
AhmedGalal => object(AhmedGalalComponent) {}
AclFilter => object(AclFilterComponent) {}
CroogoAccess => object(AclAccessComponent) {}
Settings => object(SettingsComponent) {}
Setting => object(Setting) {}
Client => object(Client) {}
[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 => 'eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
base => ''
webroot => '/'
here => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.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-14')">APP/webroot/index.php line 96</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">App</span><span style="color: #007700">::</span><span style="color: #0000BB">uses</span><span style="color: #007700">(</span><span style="color: #DD0000">'Dispatcher'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Routing'</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">$Dispatcher </span><span style="color: #007700">= new </span><span style="color: #0000BB">Dispatcher</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><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">(new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(), new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'charset' </span><span style="color: #007700">=> </span><span style="color: #0000BB">Configure</span><span style="color: #007700">::</span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #DD0000">'App.encoding'</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-14" 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 => 'eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
base => ''
webroot => '/'
here => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.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' => '<script type="text/javascript" src="/wysiwyg/js/wysiwyg.js"></script>',
'title_for_layout' => 'Errors'
)
$code = '500'
$url = '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.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 &#039;) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
&#039; at line 7'
$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 ') )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
' at line 7'
)
queryString => 'SELECT `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
[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 ') )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
' at line 7'
[protected] code => '42000'
[protected] file => '/home1/indexeg/public_html/lib/Cake/Model/Datasource/DboSource.php'
[protected] line => (int) 460
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name',
(int) 3 => 'error'
)
$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 &#039;) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
&#039; at line 7</p>
<p class="notice">
<strong>SQL Query: </strong>
SELECT `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id` </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 460</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 426</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 `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
array()</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Datasource/DboSource.php line 666</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"> </span><span style="color: #007700">if (</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">, 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"> $out </span><span style="color: #007700">= array();</span></span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'SELECT `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
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">trim</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 `Client`.`id`, `Client`.`category_id` FROM `indexeg_new2014`.`agd_clients` AS `Client` WHERE `Client`.`category_id` IS NULL AND ((`Client`.`id` IN (select distinct(client_id) from agd_branches as Branch
where
`Branch`.`region_id` in
(SELECT `r1`.`id` FROM agd_regions r1
JOIN agd_regions r2 ON `r1`.`lft` >= `r2`.`lft` AND `r1`.`rght` <= `r2`.`rght`
WHERE `r2`.`id` =
) )) OR (`Client`.`id` IN (select distinct(id) from agd_clients as Client
where
`Client`.`company_name` like '%%' or
`Client`.`business_field` like '%%' or
`Client`.`keywords` like '%%' or
`Client`.`id` in
(SELECT DISTINCT(foreign_key)
FROM agd_i18n as I18n
WHERE
content LIKE '%%' and model='Client')))) GROUP BY `Client`.`category_id`'
false</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 2750</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">DboSource->read(Client, 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(Client) {
name => 'Client'
virtualFields => array(
[maximum depth reached]
)
validate => array(
[maximum depth reached]
)
belongsTo => array(
[maximum depth reached]
)
hasMany => array(
[maximum depth reached]
)
hasOne => array(
[maximum depth reached]
)
useCache => true
actsAs => array(
[maximum depth reached]
)
useDbConfig => 'default'
useTable => 'clients'
id => false
data => array([maximum depth reached])
schemaName => 'indexeg_new2014'
table => 'clients'
primaryKey => 'id'
validationErrors => array([maximum depth reached])
validationDomain => null
tablePrefix => 'agd_'
plugin => 'Indexeg'
alias => 'Client'
tableToModel => array(
[maximum depth reached]
)
cacheQueries => false
hasAndBelongsToMany => array([maximum depth reached])
Behaviors => object(BehaviorCollection) {}
whitelist => array([maximum depth reached])
cacheSources => true
findQueryType => 'list'
recursive => (int) -1
order => null
__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] _displayFields => array([maximum depth reached])
[protected] _editFields => array([maximum depth reached])
[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(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
),
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => array(
(int) 0 => 'Client.category_id'
),
'callbacks' => true,
'recursive' => (int) -1,
'list' => array(
'groupPath' => null,
'valuePath' => '{n}.Client.category_id',
'keyPath' => '{n}.Client.id'
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2722</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>'list'
array(
'conditions' => array(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
),
'joins' => array(),
'limit' => null,
'offset' => null,
'order' => array(
(int) 0 => null
),
'page' => (int) 1,
'group' => array(
(int) 0 => 'Client.category_id'
),
'callbacks' => true,
'recursive' => (int) -1,
'list' => array(
'groupPath' => null,
'valuePath' => '{n}.Client.category_id',
'keyPath' => '{n}.Client.id'
)
)</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->find(string, array)</a> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'conditions' => array(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'group' => array(
(int) 0 => 'Client.category_id'
),
'recursive' => (int) -1,
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Plugin/Croogo/Model/CroogoAppModel.php line 81</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">call_user_func_array(array, array)</a> <div id="file-excerpt-7" 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></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $args </span><span style="color: #007700">= </span><span style="color: #0000BB">func_get_args</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">call_user_func_array</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'parent'</span><span style="color: #007700">, </span><span style="color: #DD0000">'find'</span><span style="color: #007700">), </span><span style="color: #0000BB">$args</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">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">useCache</span><span style="color: #007700">) {</span></span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => 'parent',
(int) 1 => 'find'
)
array(
(int) 0 => 'list',
(int) 1 => array(
'conditions' => array(
[maximum depth reached]
),
'group' => array(
[maximum depth reached]
),
'recursive' => (int) -1,
'fields' => array(
[maximum depth reached]
)
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Plugin/Indexeg/Controller/ClientsController.php line 290</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">CroogoAppModel->find(string, 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">'Client.id'</span><span style="color: #007700">,</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> </span><span style="color: #DD0000">'Client.category_id'</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">));</span></span></code></span>
<code><span style="color: #000000"><span style="color: #0000BB"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">Session</span><span style="color: #007700">-></span><span style="color: #0000BB">write</span><span style="color: #007700">(</span><span style="color: #DD0000">'SRHCATS'</span><span style="color: #007700">,</span><span style="color: #0000BB">$categories</span><span style="color: #007700">);</span></span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre>'list'
array(
'conditions' => array(
'Client.category_id' => null,
'OR' => array(
[maximum depth reached]
)
),
'group' => array(
(int) 0 => 'Client.category_id'
),
'recursive' => (int) -1,
'fields' => array(
(int) 0 => 'Client.id',
(int) 1 => 'Client.category_id'
)
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-9')">APP/Plugin/Indexeg/Controller/ClientsController.php line 197</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">ClientsController->_advancedSearch(integer, null, null, null, null, null)</a> <div id="file-excerpt-9" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB"> $region </span><span style="color: #007700">= </span><span style="color: #0000BB">Sanitize</span><span style="color: #007700">::</span><span style="color: #0000BB">clean</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">'named'</span><span style="color: #007700">][</span><span style="color: #DD0000">'region'</span><span style="color: #007700">]);</span></span></code>
<code><span style="color: #000000"><span style="color: #0000BB"> $city </span><span style="color: #007700">= </span><span style="color: #0000BB">Sanitize</span><span style="color: #007700">::</span><span style="color: #0000BB">clean</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">'named'</span><span style="color: #007700">][</span><span style="color: #DD0000">'city'</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"> $this</span><span style="color: #007700">-></span><span style="color: #0000BB">set</span><span style="color: #007700">(</span><span style="color: #DD0000">'clients'</span><span style="color: #007700">,</span><span style="color: #0000BB">$this</span><span style="color: #007700">-></span><span style="color: #0000BB">_advancedSearch</span><span style="color: #007700">(</span><span style="color: #0000BB">$limit</span><span style="color: #007700">,</span><span style="color: #0000BB">$name</span><span style="color: #007700">, </span><span style="color: #0000BB">$category</span><span style="color: #007700">, </span><span style="color: #0000BB">$country</span><span style="color: #007700">, </span><span style="color: #0000BB">$region</span><span style="color: #007700">, </span><span style="color: #0000BB">$city</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-9" class="cake-code-dump" style="display: none;"><pre>(int) 10
null
null
null
null
null</pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">ClientsController->search(string, string, string, string)</a> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>'www.eldib-office.com'
'eng'
'search'
'www.eldib-office.com'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 490</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">ReflectionMethod->invokeArgs(ClientsController, array)</a> <div id="file-excerpt-11" 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-11" class="cake-code-dump" style="display: none;"><pre>object(ClientsController) {
name => 'Clients'
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
usePaginationCache => true
viewClass => 'Theme'
theme => 'Agd'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Clients'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'search'
layout => 'search'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
View => null
ext => '.ctp'
plugin => 'Indexeg'
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Client'
modelKey => 'client'
validationErrors => null
Croogo => object(CroogoComponent) {}
Security => object(SecurityComponent) {}
Acl => object(AclComponent) {}
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Paginator => object(PaginatorComponent) {}
Akismet => object(AkismetComponent) {}
Recaptcha => object(RecaptchaComponent) {}
AhmedGalal => object(AhmedGalalComponent) {}
AclFilter => object(AclFilterComponent) {}
CroogoAccess => object(AclAccessComponent) {}
Settings => object(SettingsComponent) {}
Setting => object(Setting) {}
Client => object(Client) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
}
array(
(int) 0 => 'www.eldib-office.com',
(int) 1 => 'eng',
(int) 2 => 'search',
(int) 3 => 'www.eldib-office.com'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 187</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->invokeAction(CakeRequest)</a> <div id="file-excerpt-12" 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-12" 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 => 'eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
base => ''
webroot => '/'
here => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 162</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(ClientsController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" 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-13" class="cake-code-dump" style="display: none;"><pre>object(ClientsController) {
name => 'Clients'
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
paginate => array(
[maximum depth reached]
)
usePaginationCache => true
viewClass => 'Theme'
theme => 'Agd'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Clients'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'search'
layout => 'search'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
View => null
ext => '.ctp'
plugin => 'Indexeg'
cacheAction => false
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Client'
modelKey => 'client'
validationErrors => null
Croogo => object(CroogoComponent) {}
Security => object(SecurityComponent) {}
Acl => object(AclComponent) {}
Auth => object(AuthComponent) {}
Session => object(SessionComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Paginator => object(PaginatorComponent) {}
Akismet => object(AkismetComponent) {}
Recaptcha => object(RecaptchaComponent) {}
AhmedGalal => object(AhmedGalalComponent) {}
AclFilter => object(AclFilterComponent) {}
CroogoAccess => object(AclAccessComponent) {}
Settings => object(SettingsComponent) {}
Setting => object(Setting) {}
Client => object(Client) {}
[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 => 'eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
base => ''
webroot => '/'
here => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.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-14')">APP/webroot/index.php line 96</a> → <a href="#" onclick="traceToggle(event, 'trace-args-14')">Dispatcher->dispatch(CakeRequest, CakeResponse)</a> <div id="file-excerpt-14" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"><span style="color: #0000BB">App</span><span style="color: #007700">::</span><span style="color: #0000BB">uses</span><span style="color: #007700">(</span><span style="color: #DD0000">'Dispatcher'</span><span style="color: #007700">, </span><span style="color: #DD0000">'Routing'</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">$Dispatcher </span><span style="color: #007700">= new </span><span style="color: #0000BB">Dispatcher</span><span style="color: #007700">();</span></span></code>
<span class="code-highlight"><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">(new </span><span style="color: #0000BB">CakeRequest</span><span style="color: #007700">(), new </span><span style="color: #0000BB">CakeResponse</span><span style="color: #007700">(array(</span><span style="color: #DD0000">'charset' </span><span style="color: #007700">=> </span><span style="color: #0000BB">Configure</span><span style="color: #007700">::</span><span style="color: #0000BB">read</span><span style="color: #007700">(</span><span style="color: #DD0000">'App.encoding'</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-14" 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 => 'eng/search/www.eldib-office.com/eng/search/www.eldib-office.com'
base => ''
webroot => '/'
here => '/eng/search/www.eldib-office.com/eng/search/www.eldib-office.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 = '<script type="text/javascript" src="/wysiwyg/js/wysiwyg.js"></script>'
$title_for_layout = 'Errors'
include - APP/View/Themed/Agd/Layouts/search.ctp, line 16
View::_evaluate() - CORE/Cake/View/View.php, line 931
View::_render() - CORE/Cake/View/View.php, line 893
View::renderLayout() - CORE/Cake/View/View.php, line 525
View::render() - CORE/Cake/View/View.php, line 470
Controller::render() - CORE/Cake/Controller/Controller.php, line 952
CroogoAppController::render() - APP/Plugin/Croogo/Controller/CroogoAppController.php, line 239
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 276
ExceptionRenderer::pdoError() - CORE/Cake/Error/ExceptionRenderer.php, line 265
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 178
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 122
[main] - [internal], line ??