$queryHash = md5($query);
if (isset($queries[$queryHash]) && $queries[$queryHash] instanceof mysqli_result) {
$result = $queries[$queryHash];
$result->data_seek(0);
} else {
$queries[$queryHash] = $result = DB()->query($query);
}
$end = round((microtime(true) - $start), 2);
if ($end > 2) {
//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);
});
$queryHash = md5($query);
if (isset($queries[$queryHash]) && $queries[$queryHash] instanceof mysqli_result) {
$result = $queries[$queryHash];
$result->data_seek(0);
} else {
$queries[$queryHash] = $result = DB()->query($query);
}
$end = round((microtime(true) - $start), 2);
if ($end > 2) {
$listing_sql, $type_join, $filter_join, $filer_select_price, $where_filters, $where_keywords,
$where_subcategories, $counts_may_be, $attr_vals_array, $attrs_array, $r_pid_attr_array,
$attr_vals_names_array, $counts_array, $manFilter, $checkpoint, $attributesValuesArray;
$attributesValuesArray = [];
ini_set('memory_limit', '-1');
$show_options_sql = tep_db_query("select products_options_id, products_options_name, products_options_length, products_options_comment, products_options_sort_order from " . TABLE_PRODUCTS_OPTIONS . " where language_id = " . (int)$languages_id . "
order by pag,
products_options_sort_order,
LPAD(REGEXP_SUBSTR(products_options_name, '^[0-9]+'), 10, '0'), products_options_name COLLATE utf8mb4_unicode_ci ASC"); // products_options_length != 0
$i = 0;
$show_in_product_listing = array();
$show_options_arr = [];
$attr_vals_array = [];
//$checkpoint = microtime(true);
if($content != CONTENT_INDEX_DEFAULT || !@file_get_contents(DIR_FS_CATALOG.'temp/attributes_'.$languages_id.'.json')){
getArrayWithAllAttributes();
}
$options_string = generateOptionsString($attr_names_array, $attr_vals_names_array);
if (!empty($options_string)) {
$heading_text_box .= $options_string;
ErrorException
|
---|
ErrorException: mysqli::query(): (HY000/3): Error writing file '/tmp/#sql/fd=317' (Errcode: 28 "No space left on device") at /home/sintek/web/9000.com.ua/public_html/includes/functions/database.php:73 at Bootstrap\HandleExceptions->handleError() (/home/sintek/web/9000.com.ua/public_html/bootstrap/HandleExceptions.php:32) at Bootstrap\HandleExceptions->Bootstrap\{closure}() at mysqli->query() (/home/sintek/web/9000.com.ua/public_html/includes/functions/database.php:73) at tep_db_query() (/home/sintek/web/9000.com.ua/public_html/includes/functions/general.php:4030) at getArrayWithAllAttributes() (/home/sintek/web/9000.com.ua/public_html/index.php:441) |