Warning (4096) : Argument 1 passed to AuthComponent::identify() must be an instance of CakeRequest, null given, called in /var/www/html/lib/Cake/Controller/Component/AuthComponent.php on line 510 and defined [CORE/Cake/Controller/Component/AuthComponent.php , line 628 ]Code Context * @return array User record data, or false, if the user could not be identified.
*/
public function identify(CakeRequest $request, CakeResponse $response) {
AuthComponent::identify() - CORE/Cake/Controller/Component/AuthComponent.php, line 628
AuthComponent::login() - CORE/Cake/Controller/Component/AuthComponent.php, line 510
AppController::setUserGroup() - APP/Controller/AppController.php, line 205
AppController::beforeFilter() - APP/Controller/AppController.php, line 96
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ?? Warning (4096) : Argument 2 passed to AuthComponent::identify() must be an instance of CakeResponse, null given, called in /var/www/html/lib/Cake/Controller/Component/AuthComponent.php on line 510 and defined [CORE/Cake/Controller/Component/AuthComponent.php , line 628 ]Code Context * @return array User record data, or false, if the user could not be identified.
*/
public function identify(CakeRequest $request, CakeResponse $response) {
$request = null AuthComponent::identify() - CORE/Cake/Controller/Component/AuthComponent.php, line 628
AuthComponent::login() - CORE/Cake/Controller/Component/AuthComponent.php, line 510
AppController::setUserGroup() - APP/Controller/AppController.php, line 205
AppController::beforeFilter() - APP/Controller/AppController.php, line 96
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ?? Warning (4096) : Argument 1 passed to FormAuthenticate::authenticate() must be an instance of CakeRequest, null given, called in /var/www/html/lib/Cake/Controller/Component/AuthComponent.php on line 633 and defined [CORE/Cake/Controller/Component/Auth/FormAuthenticate.php , line 48 ]Code Context * @return mixed. False on login failure. An array of User data on success.
*/
public function authenticate(CakeRequest $request, CakeResponse $response) {
FormAuthenticate::authenticate() - CORE/Cake/Controller/Component/Auth/FormAuthenticate.php, line 48
AuthComponent::identify() - CORE/Cake/Controller/Component/AuthComponent.php, line 633
AuthComponent::login() - CORE/Cake/Controller/Component/AuthComponent.php, line 510
AppController::setUserGroup() - APP/Controller/AppController.php, line 205
AppController::beforeFilter() - APP/Controller/AppController.php, line 96
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ?? Warning (4096) : Argument 2 passed to FormAuthenticate::authenticate() must be an instance of CakeResponse, null given, called in /var/www/html/lib/Cake/Controller/Component/AuthComponent.php on line 633 and defined [CORE/Cake/Controller/Component/Auth/FormAuthenticate.php , line 48 ]Code Context * @return mixed. False on login failure. An array of User data on success.
*/
public function authenticate(CakeRequest $request, CakeResponse $response) {
$request = null FormAuthenticate::authenticate() - CORE/Cake/Controller/Component/Auth/FormAuthenticate.php, line 48
AuthComponent::identify() - CORE/Cake/Controller/Component/AuthComponent.php, line 633
AuthComponent::login() - CORE/Cake/Controller/Component/AuthComponent.php, line 510
AppController::setUserGroup() - APP/Controller/AppController.php, line 205
AppController::beforeFilter() - APP/Controller/AppController.php, line 96
call_user_func - [internal], line ??
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 246
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 670
CakeErrorController::__construct() - CORE/Cake/Controller/CakeErrorController.php, line 63
ExceptionRenderer::_getController() - CORE/Cake/Error/ExceptionRenderer.php, line 152
ExceptionRenderer::__construct() - CORE/Cake/Error/ExceptionRenderer.php, line 93
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 126
[main] - [internal], line ?? Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 2 ]Code Context <?php
list($switcherText, $switcherUrl) = $this->App->languageSwitcher($siteUrl, $userloc, $langCode);
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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/Layouts/default.ctp, line 2
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: userloc [APP/View/Layouts/default.ctp , line 2 ]Code Context <?php
list($switcherText, $switcherUrl) = $this->App->languageSwitcher($siteUrl, $userloc, $langCode);
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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/Layouts/default.ctp, line 2
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: langCode [APP/View/Layouts/default.ctp , line 2 ]Code Context <?php
list($switcherText, $switcherUrl) = $this->App->languageSwitcher($siteUrl, $userloc, $langCode);
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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/Layouts/default.ctp, line 2
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 3 ]Code Context <?php
list($switcherText, $switcherUrl) = $this->App->languageSwitcher($siteUrl, $userloc, $langCode);
$hreflangTags = $this->App->alternateHreflangTags($siteUrl);
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي' include - APP/View/Layouts/default.ctp, line 3
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: locationMapping [APP/View/Layouts/default.ctp , line 4 ]Code Context list($switcherText, $switcherUrl) = $this->App->languageSwitcher($siteUrl, $userloc, $langCode);
$hreflangTags = $this->App->alternateHreflangTags($siteUrl);
$contBasedLocations = $this->App->getContinentBasedLocation($locationMapping);
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
) include - APP/View/Layouts/default.ctp, line 4
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: jobSiteUrl [APP/View/Layouts/default.ctp , line 17 ]Code Context $showSpotlight = (isset($mbaTemplate)) ? $mbaTemplate : $showSpotlight;
$profileManageLink = $jobSiteUrl.'/manage';
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false include - APP/View/Layouts/default.ctp, line 17
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: userloc [APP/View/Layouts/default.ctp , line 26 ]Code Context $recUrl = Configure::read('Urls.recruiters');
$s3Url = Configure::read('Amazon.imgurl');
if($userloc == 'uae') {
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/' include - APP/View/Layouts/default.ctp, line 26
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: userloc [APP/View/Layouts/default.ctp , line 28 ]Code Context if($userloc == 'uae') {
$locPlaceholder = 'Area, city or emirate';
} else if($userloc == 'saudi-arabia') {
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/' include - APP/View/Layouts/default.ctp, line 28
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: langCode [APP/View/Layouts/default.ctp , line 48 ]Code Context
$mbaTemplate = isset($mbaTemplate) ? $mbaTemplate : false;
$arabicTagAttrs = ($langCode == 'ar') ? 'dir="rtl" lang="ar"' : '';
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false include - APP/View/Layouts/default.ctp, line 48
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: userloc [APP/View/Layouts/default.ctp , line 49 ]Code Context $mbaTemplate = isset($mbaTemplate) ? $mbaTemplate : false;
$arabicTagAttrs = ($langCode == 'ar') ? 'dir="rtl" lang="ar"' : '';
$siteNameMetaTitle = ($userloc == 'online') ? 'Laimoon online courses' : 'Laimoon.com';
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = '' include - APP/View/Layouts/default.ctp, line 49
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? Notice (8) : Undefined variable: page [APP/View/Layouts/default.ctp , line 62 ]Code Context
//$yearInTitle = in_array($page, ['home', 'trainers', 'category', 'details']) ? ' - '.date('F Y').' update' : '';
$yearInTitle = in_array($page, ['home', 'trainers', 'category', 'details', 'category_providers']) ? ' - '.__('%s %d update', __(date('F')), date('Y')) : '';
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false include - APP/View/Layouts/default.ctp, line 62
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ??
Errors - Laimoon.com
Notice (8) : Undefined variable: description_for_layout [APP/View/Layouts/default.ctp , line 76 ]Code Context <title><?php echo !empty( $title_for_layout ) ? $title_for_layout : ' Discover jobs, courses and all things career' ; ?><?php echo $yearInTitle ; ?> - <?php echo $siteNameMetaTitle ; ?> </title>
<meta charset="UTF-8">
<meta name="Description" content="<?php echo htmlspecialchars ( $description_for_layout ); ?> " />
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
) include - APP/View/Layouts/default.ctp, line 76
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? " />
Notice (8) : Undefined variable: userloc [APP/View/Layouts/default.ctp , line 168 ]Code Context ?>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="<?php echo $this -> App -> twiterSiteUrl ( $userloc ); ?> "/>
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 168
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? @LaimoonCareers"/>
Notice (8) : Undefined variable: userloc [APP/View/Layouts/default.ctp , line 169 ]Code Context <meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="<?php echo $this -> App -> twiterSiteUrl ( $userloc ); ?> "/>
<meta name="twitter:creator" content="<?php echo $this -> App -> twiterSiteUrl ( $userloc ); ?> "/>
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 169
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? @LaimoonCareers"/>
Notice (8) : Undefined variable: description_for_layout [APP/View/Layouts/default.ctp , line 172 ]Code Context <?php if (!empty( $canonicalUrl )) { ?> <meta name="twitter:url" content="<?php echo $canonicalUrl ; ?> "/><?php } ?>
<meta name="twitter:title" itemprop="name" content="<?php echo !empty( $title_for_layout ) ? $title_for_layout : 'QA' ; ?> "/>
<meta name="twitter:description" itemprop="description" content="<?php echo htmlspecialchars ( $description_for_layout ); ?> "/>
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 172
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? "/>
Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 175 ]Code Context <meta name="twitter:image" itemprop="image" content="<?php echo !empty( $ogImage ) ? $ogImage : 'https://cdn.laimoon.com/jobs/img/laimoon_logo.png' ; ?> "/>
<link rel="apple-touch-icon" href="https://cdn.laimoon.com/courses/img/splash-icon.png" />
<link rel="alternate" type="application/rss+xml" title="Laimoon Course Guide" href="<?php echo $siteUrl ; ?> feeds/rss" />
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 175
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? feeds/rss" />
Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 180 ]Code Context <?php } ?>
<link rel="shortcut icon" href="https://cdn.laimoon.com/courses/favicon.ico" type="image/x-icon" />
<link rel="search" href="<?php echo $siteUrl ; ?> opensearchdescription.xml" type="application/opensearchdescription+xml" title="<?php echo $siteUrl ; ?> " />
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 180
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? opensearchdescription.xml" type="application/opensearchdescription+xml" title="Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 180 ]Code Context <?php } ?>
<link rel="shortcut icon" href="https://cdn.laimoon.com/courses/favicon.ico" type="image/x-icon" />
<link rel="search" href="<?php echo $siteUrl ; ?> opensearchdescription.xml" type="application/opensearchdescription+xml" title="<?php echo $siteUrl ; ?> " />
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 180
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? " />
Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 181 ]Code Context <link rel="shortcut icon" href="https://cdn.laimoon.com/courses/favicon.ico" type="image/x-icon" />
<link rel="search" href="<?php echo $siteUrl ; ?> opensearchdescription.xml" type="application/opensearchdescription+xml" title="<?php echo $siteUrl ; ?> " />
<link rel="search" href="<?php echo $siteUrl ; ?> opensearch.xml" type="application/opensearch+xml" title="<?php echo $siteUrl ; ?> " />
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 181
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? opensearch.xml" type="application/opensearch+xml" title="Notice (8) : Undefined variable: siteUrl [APP/View/Layouts/default.ctp , line 181 ]Code Context <link rel="shortcut icon" href="https://cdn.laimoon.com/courses/favicon.ico" type="image/x-icon" />
<link rel="search" href="<?php echo $siteUrl ; ?> opensearchdescription.xml" type="application/opensearchdescription+xml" title="<?php echo $siteUrl ; ?> " />
<link rel="search" href="<?php echo $siteUrl ; ?> opensearch.xml" type="application/opensearch+xml" title="<?php echo $siteUrl ; ?> " />
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 181
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ?? " />
Notice (8) : Undefined variable: langCode [APP/View/Layouts/default.ctp , line 185 ]Code Context <?php echo !empty( $this -> App -> prevAndNextPageMetaTags ) ? $this -> App -> prevAndNextPageMetaTags : '' ; ?>
<?php $arabicExtn = ( $langCode == 'ar' ) ? '_ar' : '' ;
$viewFile = '/var/www/html/app/View/Layouts/default.ctp'
$dataForView = array(
'class' => 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'',
'enabled' => true,
'code' => (int) 500,
'url' => '/ar/search/Onlinemarketing?page=28',
'name' => 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.',
'error' => object(MissingConnectionException) {
},
'_serialize' => array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
),
'content_for_layout' => '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
)
$class = 'SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts''
$enabled = true
$code = (int) 500
$url = '/ar/search/Onlinemarketing?page=28'
$name = 'Database connection "SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts'" is missing, or could not be created.'
$error = object(MissingConnectionException) {
}
$_serialize = array(
(int) 0 => 'code',
(int) 1 => 'url',
(int) 2 => 'name'
)
$content_for_layout = '<h2>Missing Database Connection</h2>
<p class="error">
<strong>Error: </strong>
SQLSTATE[HY000] [1129] Host '34.243.101.167' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' requires a database connection</p>
<p class="notice">
<strong>Notice: </strong>
If you want to customize this error message, create app/View/Errors/missing_connection.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 260</a> → <a href="#" onclick="traceToggle(event, 'trace-args-0')">Mysql->connect()</a> <div id="file-excerpt-0" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"> if ($autoConnect) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->connect();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-0" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-1')">CORE/Cake/Model/ConnectionManager.php line 101</a> → <a href="#" onclick="traceToggle(event, 'trace-args-1')">DboSource->__construct(array)</a> <div id="file-excerpt-1" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $conn = self::$_connectionsEnum[$name];</span></code>
<code><span style="color: #000000"> $class = $conn['classname'];</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> self::$_dataSources[$name] = new $class(self::$config->{$name});</span></code></span>
<code><span style="color: #000000"> self::$_dataSources[$name]->configKeyName = $name;</span></code></pre></div> <div id="trace-args-1" class="cake-code-dump" style="display: none;"><pre>array(
'password' => '*****',
'login' => '*****',
'host' => '*****',
'database' => '*****',
'prefix' => '*****',
'datasource' => 'Database/Mysql',
'persistent' => true,
'encoding' => 'utf8'
)</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-2')">CORE/Cake/Model/Model.php line 3157</a> → <a href="#" onclick="traceToggle(event, 'trace-args-2')">ConnectionManager::getDataSource(string)</a> <div id="file-excerpt-2" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($dataSource != null) {</span></code>
<code><span style="color: #000000"> $this->useDbConfig = $dataSource;</span></code>
<code><span style="color: #000000"> }</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> if (!empty($oldConfig) && isset($db->config['prefix'])) {</span></code></pre></div> <div id="trace-args-2" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-3')">CORE/Cake/Model/Model.php line 1092</a> → <a href="#" onclick="traceToggle(event, 'trace-args-3')">Model->setDataSource(string)</a> <div id="file-excerpt-3" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function setSource($tableName) {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setDataSource($this->useDbConfig);</span></code></span>
<code><span style="color: #000000"> $db = ConnectionManager::getDataSource($this->useDbConfig);</span></code></pre></div> <div id="trace-args-3" class="cake-code-dump" style="display: none;"><pre>'default'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-4')">CORE/Cake/Model/Model.php line 3179</a> → <a href="#" onclick="traceToggle(event, 'trace-args-4')">Model->setSource(string)</a> <div id="file-excerpt-4" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> public function getDataSource() {</span></code>
<code><span style="color: #000000"> if (!$this->_sourceConfigured && $this->useTable !== false) {</span></code>
<code><span style="color: #000000"> $this->_sourceConfigured = true;</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->setSource($this->useTable);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-4" class="cake-code-dump" style="display: none;"><pre>'currencies'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-5')">CORE/Cake/Model/Model.php line 2995</a> → <a href="#" onclick="traceToggle(event, 'trace-args-5')">Model->getDataSource()</a> <div id="file-excerpt-5" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function query($sql) {</span></code>
<code><span style="color: #000000"> $params = func_get_args();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $db = $this->getDataSource();</span></code></span>
<code><span style="color: #000000"> return call_user_func_array(array(&$db, 'query'), $params);</span></code></pre></div> <div id="trace-args-5" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-6')">APP/Controller/AppController.php line 190</a> → <a href="#" onclick="traceToggle(event, 'trace-args-6')">Model->query(string)</a> <div id="file-excerpt-6" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->loadModel('IpCountry');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> $countryId = Configure::read('Location.country_id') ? Configure::read('Location.country_id') : $this->IpCountry->getCountryCode($this->request->clientIp());
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $toLocalCurrency = $this->Currency->query("SELECT convertedCurrencyCode from currencies where country_id = '{$countryId}' limit 1;");
</span></code></span>
<code><span style="color: #000000">
</span></code></pre></div> <div id="trace-args-6" class="cake-code-dump" style="display: none;"><pre>'SELECT convertedCurrencyCode from currencies where country_id = '250' limit 1;'</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-7')">APP/Controller/AppController.php line 167</a> → <a href="#" onclick="traceToggle(event, 'trace-args-7')">AppController->getReferralAmountWithCurrency(integer)</a> <div id="file-excerpt-7" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> $this->set('device', ($this->request->is('mobile')) ? 'mobile' : 'desktop');
</span></code>
<code><span style="color: #000000">
</span></code>
<code><span style="color: #000000"> if (!$this->Session->read('maxReferralAmount')) {
</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->Session->write('maxReferralAmount', $this->getReferralAmountWithCurrency(1000));
</span></code></span>
<code><span style="color: #000000"> }
</span></code></pre></div> <div id="trace-args-7" class="cake-code-dump" style="display: none;"><pre>(int) 1000</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-8')">APP/Controller/CoursesController.php line 19</a> → <a href="#" onclick="traceToggle(event, 'trace-args-8')">AppController->beforeFilter()</a> <div id="file-excerpt-8" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"></span></code>
<code><span style="color: #000000"> public function beforeFilter() {</span></code>
<code><span style="color: #000000"> $this->Auth->allow(array('*'));</span></code>
<span class="code-highlight"><code><span style="color: #000000"> parent::beforeFilter();</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-8" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#">[internal function]</a> → <a href="#" onclick="traceToggle(event, 'trace-args-9')">CoursesController->beforeFilter(CakeEvent)</a> <div id="trace-args-9" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-10')">CORE/Cake/Event/CakeEventManager.php line 246</a> → <a href="#" onclick="traceToggle(event, 'trace-args-10')">call_user_func(array, CakeEvent)</a> <div id="file-excerpt-10" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> if ($listener['passParams'] === true) {</span></code>
<code><span style="color: #000000"> $result = call_user_func_array($listener['callable'], $event->data);</span></code>
<code><span style="color: #000000"> } else {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $result = call_user_func($listener['callable'], $event);</span></code></span>
<code><span style="color: #000000"> }</span></code></pre></div> <div id="trace-args-10" class="cake-code-dump" style="display: none;"><pre>array(
(int) 0 => object(CoursesController) {},
(int) 1 => 'beforeFilter'
)
object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-11')">CORE/Cake/Controller/Controller.php line 670</a> → <a href="#" onclick="traceToggle(event, 'trace-args-11')">CakeEventManager->dispatch(CakeEvent)</a> <div id="file-excerpt-11" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> * @return void</span></code>
<code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> public function startupProcess() {</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.initialize', $this));</span></code></span>
<code><span style="color: #000000"> $this->getEventManager()->dispatch(new CakeEvent('Controller.startup', $this));</span></code></pre></div> <div id="trace-args-11" class="cake-code-dump" style="display: none;"><pre>object(CakeEvent) {
data => null
result => null
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-12')">CORE/Cake/Routing/Dispatcher.php line 183</a> → <a href="#" onclick="traceToggle(event, 'trace-args-12')">Controller->startupProcess()</a> <div id="file-excerpt-12" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> */</span></code>
<code><span style="color: #000000"> protected function _invoke(Controller $controller, CakeRequest $request, CakeResponse $response) {</span></code>
<code><span style="color: #000000"> $controller->constructClasses();</span></code>
<span class="code-highlight"><code><span style="color: #000000"> $controller->startupProcess();</span></code></span>
<code><span style="color: #000000"></span></code></pre></div> <div id="trace-args-12" class="cake-code-dump" style="display: none;"><pre></pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-13')">CORE/Cake/Routing/Dispatcher.php line 161</a> → <a href="#" onclick="traceToggle(event, 'trace-args-13')">Dispatcher->_invoke(CoursesController, CakeRequest, CakeResponse)</a> <div id="file-excerpt-13" class="cake-code-dump" style="display:none;"><pre><code><span style="color: #000000"> ));</span></code>
<code><span style="color: #000000"> }</span></code>
<code><span style="color: #000000"></span></code>
<span class="code-highlight"><code><span style="color: #000000"> $response = $this->_invoke($controller, $request, $response);</span></code></span>
<code><span style="color: #000000"> if (isset($request->params['return'])) {</span></code></pre></div> <div id="trace-args-13" class="cake-code-dump" style="display: none;"><pre>object(CoursesController) {
components => array(
[maximum depth reached]
)
helpers => array(
[maximum depth reached]
)
cacheAction => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
siteUrl => 'https://courses.laimoon.com/'
langUrl => 'https://courses.laimoon.com/ar/'
linkedIn => array(
[maximum depth reached]
)
global_location_id => (int) 225
global_location_ids => '275'
profileInfo => null
defaultLoginGroup => (int) 0
loc => 'online'
is_mobile => ''
course_type_id => (int) 0
langCode => 'ar'
referralPage => ''
langUrlPrefix => 'ar/'
locationMetaTitles => array(
[maximum depth reached]
)
languageMapping => array(
[maximum depth reached]
)
paymentMethod => null
name => 'Courses'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Courses'
layoutPath => null
viewVars => array(
[maximum depth reached]
)
view => 'index'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
passedArgs => array(
[maximum depth reached]
)
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Course'
modelKey => 'course'
validationErrors => null
Acl => object(AclComponent) {}
Session => object(SessionComponent) {}
Cookie => object(CookieComponent) {}
Auth => object(AuthComponent) {}
DynamoSession => object(DynamoSessionComponent) {}
Laimoon => object(LaimoonComponent) {}
RequestHandler => object(RequestHandlerComponent) {}
Search => object(SearchComponent) {}
Localization => object(LocalizationComponent) {}
Review => object(ReviewComponent) {}
Seeker => object(SeekerComponent) {}
LaimoonCountry => object(LaimoonCountry) {}
Currency => object(Currency) {}
IpCountry => object(IpCountry) {}
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</pre></div></li>
<li><a href="#" onclick="traceToggle(event, 'file-excerpt-14')">APP/webroot/index.php line 99</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">App::uses('Dispatcher', 'Routing');</span></code>
<code><span style="color: #000000"></span></code>
<code><span style="color: #000000">$Dispatcher = new Dispatcher();</span></code>
<span class="code-highlight"><code><span style="color: #000000">$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));</span></code></span>
<code><span style="color: #000000"></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 => 'ar/search/Onlinemarketing'
base => ''
webroot => '/'
here => '/ar/search/Onlinemarketing'
}
object(CakeResponse) {
}</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'
$switcherUrl = '/search/Onlinemarketing'
$switcherText = 'عربي'
$hreflangTags = array(
(int) 0 => array(
'url' => 'search/Onlinemarketing',
'hreflang' => 'en'
),
(int) 1 => array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
)
)
$contBasedLocations = array(
'FirstColumn' => array(
'Middle East' => array()
),
'SecondColumn' => array(
'Asia' => array()
),
'ThirdColumn' => array(
'Europe' => array(),
'Australia' => array()
),
'FourthColumn' => array(
'Africa' => array(),
'The Americas' => array(),
'Global' => array()
)
)
$jobCategoryTitle = ''
$showSpotlight = false
$profileManageLink = '/manage'
$supStr = ''
$careerGuideUrl = 'https://laimoon.com'
$coursesSiteUrl = 'https://courses.laimoon.com'
$recUrl = 'https://partners.laimoon.com'
$s3Url = 'https://cdn.laimoon.com/'
$locPlaceholder = 'City or region'
$schema = 'WebPage'
$ver = (float) 4.013
$canonicalUrl = 'https://courses.laimoon.com/ar/search/Onlinemarketing?page=28'
$mbaTemplate = false
$arabicTagAttrs = ''
$siteNameMetaTitle = 'Laimoon.com'
$homeNavClasses = array(
'allcourses' => 'active',
'online' => '',
'masters' => '',
'bachelors' => '',
'mba' => '',
'training' => '',
'languages' => '',
'discussions' => '',
'wsq' => '',
'bundles' => '',
'virtual' => ''
)
$professionalClass = ' prof-advertise'
$isLanguage = false
$yearInTitle = ''
$regnSrcSufx = ''
$menuTrainingProvType = array(
(int) 0 => '',
(int) 1 => 'ar',
(int) 2 => 'search',
(int) 3 => 'Onlinemarketing'
)
$hreflangTag = array(
'url' => 'ar/search/Onlinemarketing',
'hreflang' => 'ar'
) include - APP/View/Layouts/default.ctp, line 185
View::_evaluate() - CORE/Cake/View/View.php, line 920
View::_render() - CORE/Cake/View/View.php, line 883
View::renderLayout() - CORE/Cake/View/View.php, line 539
View::render() - CORE/Cake/View/View.php, line 483
Controller::render() - CORE/Cake/Controller/Controller.php, line 957
ExceptionRenderer::_outputMessage() - CORE/Cake/Error/ExceptionRenderer.php, line 268
ExceptionRenderer::_cakeError() - CORE/Cake/Error/ExceptionRenderer.php, line 192
ExceptionRenderer::render() - CORE/Cake/Error/ExceptionRenderer.php, line 170
ErrorHandler::handleException() - CORE/Cake/Error/ErrorHandler.php, line 127
[main] - [internal], line ??
Warning : Cannot modify header information - headers already sent by (output started at /var/www/html/lib/Cake/Utility/Debugger.php:776) in /var/www/html/app/Controller/AppController.php on line 473
Catchable fatal error : Argument 1 passed to AuthComponent::identify() must be an instance of CakeRequest, null given, called in /var/www/html/lib/Cake/Controller/Component/AuthComponent.php on line 510 and defined in /var/www/html/lib/Cake/Controller/Component/AuthComponent.php on line 628