}
$count_counts_may_be = find_counts($counts_may_be);
$counts_array_true = array();
foreach ($counts_array as $op => $opval_pid) {
foreach ($opval_pid as $opval => $op_pid) {
if (in_array($opval, explode('-', $_GET[$op]))) { // if its current selected point
if (count($counts_may_be) == 1) { // if its only one selected point, then do nothing
$c_count = count(array_unique($counts_may_be[$op]));
} else {
//ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
error_reporting(E_ALL);
set_error_handler(function ($level, $message, $file = '', $line = 0) {
$this->handleError($level, $message, $file, $line);
});
set_exception_handler(function ($e) {
$this->handleException($e);
});
}
$count_counts_may_be = find_counts($counts_may_be);
$counts_array_true = array();
foreach ($counts_array as $op => $opval_pid) {
foreach ($opval_pid as $opval => $op_pid) {
if (in_array($opval, explode('-', $_GET[$op]))) { // if its current selected point
if (count($counts_may_be) == 1) { // if its only one selected point, then do nothing
$c_count = count(array_unique($counts_may_be[$op]));
} else {
$index_timer_current = microtime(true) - $timer_index;
file_put_contents('test_speed.log', date('c') . ' "' . $_SERVER['REQUEST_URI'].'" Label 14 - ' . $currentFileName . ' - ' . $index_timer_current . PHP_EOL, FILE_APPEND);
}
// --------------- ATTRIBUTES COUNTER IN FILTER ----------------------------- //
if (defined('SEO_FILTER') && constant('SEO_FILTER') == 'true') {
require(DIR_WS_MODULES . '/attributes_counter.php');
}
// --------------- ATTRIBUTES COUNTER IN FILTER --END------------------------ //
// END get list of all attributes from current category
ErrorException
|
---|
ErrorException: Invalid argument supplied for foreach() at /var/www/astina/includes/modules/attributes_counter.php:14 at Bootstrap\HandleExceptions->handleError() (/var/www/astina/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}() (/var/www/astina/includes/modules/attributes_counter.php:14) at require('/var/www/astina/includes/modules/attributes_counter.php') (/var/www/astina/index.php:865) |