$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) {
std.meta_description
FROM ' . TABLE_SEO_TEMLATES . ' st LEFT JOIN ' . TABLE_SEO_TEMLATES_DESCRIPTION . ' std ON st.id = std.seo_templates_id AND std.language_id = ' . (int)$languages_id . '
WHERE
st.`include_ids` like "%' . $current_category_id . '%" AND
st.`type` = "' . self::PRODUCT . '" AND
st.status = ' . self::STATUS_ENABLE . ' ORDER BY st.`sort_order` DESC limit 1');
$seoTemplate = tep_db_fetch_array($seoTemplateQuery);
return $seoTemplate;
}
public static function getManufacturer($current_category_id, $languages_id)
require_once __DIR__ . '/class/SeoTemplates.php';
$seoTemplate = [];
if (isset($languages_id) && !empty($languages_id)) {
if (isset($current_category_id) && !empty($current_category_id)) {
if ($_GET['products_id']) {
$seoTemplate = SeoTemplates::getProduct($current_category_id, $languages_id);
} else {
$seoTemplate = SeoTemplates::getCategory($current_category_id, $languages_id);
}
} elseif ($_GET['keywords']) {
$seoTemplate = SeoTemplates::getSearch($languages_id);
} else {
$the_title = clean_html_comments($the_product_info['products_head_title_tag']);
}
}
if (is_file(__DIR__ . '/../ext/seo_templates/SeoTemplates.php')) {
require_once __DIR__ . '/../ext/seo_templates/SeoTemplates.php';
}
break;
// ARTICLES.PHP
case ((strstr($_SERVER['PHP_SELF'], 'articles.php') or strstr($PHP_SELF, 'articles.php')) & ! strstr($PHP_SELF, 'new_articles.php')):
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="<?= $template->getMainconf('MC_COLOR_1') ?>">
<meta name="msapplication-navbutton-color" content="<?= $template->getMainconf('MC_COLOR_1') ?>">
<?php
echo "\n\t" . '<base href="' . HTTP_SERVER . DIR_WS_CATALOG . '">';
require DIR_WS_INCLUDES . 'header_tags.php'; // <title> , <meta name="Description", Keywords, Reply-to
echo get_noindex_nofollow(); //returns <meta name="robots" content="noindex, nofollow" /> for the specified list of pages
echo get_canonical(); //returns canonical tags depending on the page type
echo outputGoogleVerificationMetaTag(); // returns google-site-verification code if exist
echo get_custom_favicon(); // custom favicon
echo get_rel_prevnext(); // <link rel="next" and "prev"
}
} else {
http_response_code(404);
$content = CONTENT_ERROR_404;
}
require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);
require(DIR_WS_INCLUDES . 'application_bottom.php');
ErrorException
|
---|
ErrorException: mysqli::query(): (HY000/1021): Disk full (/tmp/#sql-temptable-38c-14fc7-1e95.MAI); waiting for someone to free some space... (errno: 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/ext/seo_templates/class/SeoTemplates.php:23) at SeoTemplates::getProduct() (/home/sintek/web/9000.com.ua/public_html/ext/seo_templates/SeoTemplates.php:9) at require_once('/home/sintek/web/9000.com.ua/public_html/ext/seo_templates/SeoTemplates.php') (/home/sintek/web/9000.com.ua/public_html/includes/header_tags.php:213) at require('/home/sintek/web/9000.com.ua/public_html/includes/header_tags.php') (/home/sintek/web/9000.com.ua/public_html/templates/default/main_page.tpl.php:11) at require('/home/sintek/web/9000.com.ua/public_html/templates/default/main_page.tpl.php') (/home/sintek/web/9000.com.ua/public_html/product_info.php:252) |