Notice (8): Undefined index: j [APP/Controller/ProductsController.php, line 197]Code Context header("Cache-Control: no-cache");
header("Pragma: nocache");
$vote_sent = preg_replace("/[^0-9]/","",$_REQUEST['j']);
ProductsController::db() - APP/Controller/ProductsController.php, line 197
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
[main] - APP/webroot/index.php, line 113
Notice (8): Undefined index: q [APP/Controller/ProductsController.php, line 198]Code Context header("Pragma: nocache");
$vote_sent = preg_replace("/[^0-9]/","",$_REQUEST['j']);
$id_sent = preg_replace("/[^0-9a-zA-Z]/","",$_REQUEST['q']);
$vote_sent = ''
ProductsController::db() - APP/Controller/ProductsController.php, line 198
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
[main] - APP/webroot/index.php, line 113
Notice (8): Undefined index: t [APP/Controller/ProductsController.php, line 199]Code Context $vote_sent = preg_replace("/[^0-9]/","",$_REQUEST['j']);
$id_sent = preg_replace("/[^0-9a-zA-Z]/","",$_REQUEST['q']);
$ip_num = preg_replace("/[^0-9\.]/","",$_REQUEST['t']);
$vote_sent = ''
$id_sent = ''
ProductsController::db() - APP/Controller/ProductsController.php, line 199
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
[main] - APP/webroot/index.php, line 113
Notice (8): Undefined index: c [APP/Controller/ProductsController.php, line 200]Code Context $id_sent = preg_replace("/[^0-9a-zA-Z]/","",$_REQUEST['q']);
$ip_num = preg_replace("/[^0-9\.]/","",$_REQUEST['t']);
$units = preg_replace("/[^0-9]/","",$_REQUEST['c']);
$vote_sent = ''
$id_sent = ''
$ip_num = ''
ProductsController::db() - APP/Controller/ProductsController.php, line 200
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
[main] - APP/webroot/index.php, line 113
Notice (8): Undefined index: HTTP_REFERER [APP/Controller/ProductsController.php, line 201]Code Context $ip_num = preg_replace("/[^0-9\.]/","",$_REQUEST['t']);
$units = preg_replace("/[^0-9]/","",$_REQUEST['c']);
$referer = $_SERVER['HTTP_REFERER'];
$vote_sent = ''
$id_sent = ''
$ip_num = ''
$units = ''
ProductsController::db() - APP/Controller/ProductsController.php, line 201
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
[main] - APP/webroot/index.php, line 113
Warning (2): A non-numeric value encountered [APP/Controller/ProductsController.php, line 209]Code Context $count = $query[0]['Rating']['total_votes'];
$current_rating = $query[0]['Rating']['total_value'];
$sum = $vote_sent+$current_rating;
$vote_sent = ''
$id_sent = ''
$ip_num = ''
$units = ''
$referer = null
$ip = '127.0.0.1'
$query = array(
(int) 0 => array(
'Rating' => array(
'id' => '',
'total_votes' => '1',
'total_value' => '3',
'used_ips' => 'a:1:{i:0;s:13:"20.223.93.176";}'
)
)
)
$checkIP = array(
(int) 0 => '20.223.93.176'
)
$count = '1'
$current_rating = '3'ProductsController::db() - APP/Controller/ProductsController.php, line 209
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
[main] - APP/webroot/index.php, line 113
Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/thethaovietnhat.com/public_html/lib/Cake/Utility/Debugger.php:797) [APP/Controller/ProductsController.php, line 224]Code Context $this->Rating->save($data['Rating']);
}
header("Location: $referer");
$vote_sent = ''
$id_sent = ''
$ip_num = ''
$units = ''
$referer = null
$ip = '127.0.0.1'
$query = array(
(int) 0 => array(
'Rating' => array(
'id' => '',
'total_votes' => '1',
'total_value' => '3',
'used_ips' => 'a:1:{i:0;s:13:"20.223.93.176";}'
)
)
)
$checkIP = array(
(int) 0 => '20.223.93.176',
(int) 1 => ''
)
$count = '1'
$current_rating = '3'
$sum = (int) 3
$added = (int) 2
$insertip = 'a:2:{i:0;s:13:"20.223.93.176";i:1;s:0:"";}'
$voted = array()header - [internal], line ??
ProductsController::db() - APP/Controller/ProductsController.php, line 224
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
[main] - APP/webroot/index.php, line 113