Notice (8): Trying to access array offset on value of type null [APP/Controller/AppController.php, line 75]Code Context $result = $this->Mycomp->curlGET("http://api.ipinfodb.com/v3/ip-country/?key=539b516a02e940af848af4b7af54e01e91f94f372bd61d27fcc2e5918b2847b1&ip=".$_SERVER['REMOTE_ADDR']."&format=json");
$data = json_decode($result,true);
if($data['countryCode']=='KR' || $data['countryCode']=='KP' )
$result = '<html>
<head>
<title>Rate Limit Exceeded</title>
</head>
<body>
<h1>Rate Limit Exceeded</h1>
<p>
You were hitting the API gateway too frequent. Your request has been temporarily denied. If you continue to hit the API gateway without considering the rate limit of 2 qureies per second, your IP will permenantly blocked.
</p>
</body>
</html>
'
$data = nullAppController::beforeFilter() - APP/Controller/AppController.php, line 75
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 92
[main] - /home/www/spep-book/clients/spep/index.php, line 30
Notice (8): Trying to access array offset on value of type null [APP/Controller/AppController.php, line 75]Code Context $result = $this->Mycomp->curlGET("http://api.ipinfodb.com/v3/ip-country/?key=539b516a02e940af848af4b7af54e01e91f94f372bd61d27fcc2e5918b2847b1&ip=".$_SERVER['REMOTE_ADDR']."&format=json");
$data = json_decode($result,true);
if($data['countryCode']=='KR' || $data['countryCode']=='KP' )
$result = '<html>
<head>
<title>Rate Limit Exceeded</title>
</head>
<body>
<h1>Rate Limit Exceeded</h1>
<p>
You were hitting the API gateway too frequent. Your request has been temporarily denied. If you continue to hit the API gateway without considering the rate limit of 2 qureies per second, your IP will permenantly blocked.
</p>
</body>
</html>
'
$data = nullAppController::beforeFilter() - APP/Controller/AppController.php, line 75
CakeEventManager::dispatch() - CORE/Cake/Event/CakeEventManager.php, line 244
Controller::startupProcess() - CORE/Cake/Controller/Controller.php, line 682
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 189
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 92
[main] - /home/www/spep-book/clients/spep/index.php, line 30
Warning (2): count(): Parameter must be an array or an object that implements Countable [APP/Controller/CourseController.php, line 86]Code Context //$similar_courses = json_decode($this->Mycomp->curlPOST(Configure::read('My.api') . 'content/contentOperations/similar-books/', $input), true);
if (@$data['success'] === true && count(@$data['result'] > 0) && @$data['result']['has_purchased'] === 'y') {
$ebookid = (int) 2
$ebookname = 'oops'
$topicid = (int) 0
$topicname = ''
$UID = (int) 10
$alltopicsData = array()
$userCouponVariable = 'coupon_10_2'
$language = 'en'
$input = array(
'data' => '{"values":{"user_id":10,"course_id":2,"user_language":"en"}}'
)
$result = '{"success":true,"result":[]}'
$data = array(
'success' => true,
'result' => array()
)
$similar_courses = array()CourseController::details() - APP/Controller/CourseController.php, line 86
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 499
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 92
[main] - /home/www/spep-book/clients/spep/index.php, line 30