}function checkProductAttributesCache($languages_id, &$attrs_array, &$r_pid_attr_array, &$pid_attr_array, &$show_in_product_listing, &$attr_names_array, &$attr_vals_names_array, &$attr_vals_array) : bool{ ini_set('memory_limit', '700M'); $content = @file_get_contents(DIR_FS_CATALOG.'temp/attributes_'.$languages_id.'.json'); if(!$content){ return false; } $content = json_decode($content, true); //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); });}function checkProductAttributesCache($languages_id, &$attrs_array, &$r_pid_attr_array, &$pid_attr_array, &$show_in_product_listing, &$attr_names_array, &$attr_vals_names_array, &$attr_vals_array) : bool{ ini_set('memory_limit', '700M'); $content = @file_get_contents(DIR_FS_CATALOG.'temp/attributes_'.$languages_id.'.json'); if(!$content){ return false; } $content = json_decode($content, true); } $salemakers_array = get_salemakers($best_sellers); if (!empty($best_sellers) and $tpl_settings['disable_listing'] != true) { $tpl_settings['products'] = $best_sellers; if (!checkProductAttributesCache($languages_id, $attrs_array, $r_pid_attr_array, $pid_attr_array, $show_in_product_listing, $attr_names_array,$attr_vals_names_array, $attr_vals_array)) { getArrayWithAllAttributes(); } include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_COL); }} 'MAINPAGE', 'M_BEST_SELLERS', 'content_width' ) ? 'container' : 'container-fluid') . '">'; } include(DIR_WS_MODULES . 'best_sellers.php'); if (!$template->getMainconf('MC_SHOW_LEFT_COLUMN') || isMobile()) { echo '</div>'; }}if ($module_is_ajax && !isset($_POST['render'])) {<?phpforeach ($template->settings['MAINPAGE'] as $const => $arr) { if ($file = $template->getFiles('MAINPAGE', $const, $config)) { if (file_exists($file)) { require_once $file; } }} <?php echo $breadcrumb->trail(' '); ?> <!-- END BREADCRUMBS --> <!-- CONTENT --> <?php if (file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php')) { require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/content/' . $content . '.tpl.php'); // content from current template (if exists) } else { require(DIR_WS_CONTENT . $content . '.tpl.php'); // content from default template } ?> <!-- END CONTENT -->}if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { require(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING_COL);} else { require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);}require(DIR_WS_INCLUDES . 'application_bottom.php');|
ErrorException
|
|---|
ErrorException:
Failed to set memory limit to 734003200 bytes (Current memory usage is 983531520 bytes)
at /home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/functions/general.php:4393
at Bootstrap\HandleExceptions->handleError()
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/bootstrap/HandleExceptions.php:32)
at Bootstrap\HandleExceptions->Bootstrap\{closure}()
at ini_set()
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/functions/general.php:4393)
at checkProductAttributesCache()
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/modules/best_sellers.php:29)
at include('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/modules/best_sellers.php')
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/boxes/mainpage_modules/best_sellers.tpl.php:27)
at require_once('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/boxes/mainpage_modules/best_sellers.tpl.php')
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/content/index_default.tpl.php:6)
at require('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/content/index_default.tpl.php')
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/main_page.tpl.php:100)
at require('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/main_page.tpl.php')
(/home/dev_ltscreen/web/dev.ltscreen.com/public_html/index.php:486)
|