Матрицы для ноутбуков - Страница 652

На страницу:
Сортировка:
Invalid argument supplied for foreach() (500 Whoops, looks like something went wrong.)

Invalid argument supplied for foreach()

Exception

ErrorException

  1.                      <path d="M131.415,77.93h-30.748V47.182c0-4.143-3.357-7.5-7.5-7.5c-4.143,0-7.5,3.357-7.5,7.5V77.93H54.918 c-4.143,0-7.5,3.357-7.5,7.5s3.357,7.5,7.5,7.5h30.748v30.749c0,4.143,3.357,7.5,7.5,7.5c4.143,0,7.5-3.357,7.5-7.5V92.93h30.748 c4.143,0,7.5-3.357,7.5-7.5S135.557,77.93,131.415,77.93z"/></svg>' '';
  2. $i 1;
  3. $productsIds $productsPrices = [];
  4. foreach ($tpl_settings['products'] as $listing) {
  5.     // PRODUCT
  6.     $id $listing['products_id'];
  7.     $product_name strip_tags($listing['products_name']);
  8.     if (!empty($listing['products_url'])) {
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
  1.                      <path d="M131.415,77.93h-30.748V47.182c0-4.143-3.357-7.5-7.5-7.5c-4.143,0-7.5,3.357-7.5,7.5V77.93H54.918 c-4.143,0-7.5,3.357-7.5,7.5s3.357,7.5,7.5,7.5h30.748v30.749c0,4.143,3.357,7.5,7.5,7.5c4.143,0,7.5-3.357,7.5-7.5V92.93h30.748 c4.143,0,7.5-3.357,7.5-7.5S135.557,77.93,131.415,77.93z"/></svg>' '';
  2. $i 1;
  3. $productsIds $productsPrices = [];
  4. foreach ($tpl_settings['products'] as $listing) {
  5.     // PRODUCT
  6.     $id $listing['products_id'];
  7.     $product_name strip_tags($listing['products_name']);
  8.     if (!empty($listing['products_url'])) {
include('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/modules/product_listing_col.php') in /home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/content/index_products.tpl.php (line 98)
  1.             </button>
  2.         </div>
  3.     </div>
  4.     <div id="block">
  5.         <?php include(DIR_WS_MODULES FILENAME_PRODUCT_LISTING_COL); // products listing ?>
  6.     </div>
  7.     <?php
  8.     if (isset($seoFilterInfo) && $seoFilterInfo) {
  9.         $desc_text $seoFilterInfo['description'];
  10.     } elseif (is_array($searchResultsQuery) && $searchResultsQuery["seo_text"]) {
require('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/content/index_products.tpl.php') in /home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/main_page.tpl.php (line 100)
  1.             <?php echo $breadcrumb->trail(' '); ?>
  2.             <!-- END BREADCRUMBS -->
  3.             <!-- CONTENT -->
  4.             <?php
  5.             if (file_exists(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php')) {
  6.                 require(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php'); // content from current template (if exists)
  7.             } else {
  8.                 require(DIR_WS_CONTENT $content '.tpl.php'); // content from default template
  9.             }
  10.             ?>
  11.             <!-- END CONTENT -->
require('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/main_page.tpl.php') in /home/dev_ltscreen/web/dev.ltscreen.com/public_html/index.php (line 486)
  1. }
  2. if ($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
  3.     require(DIR_WS_MODULES FILENAME_PRODUCT_LISTING_COL);
  4. } else {
  5.     require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  6. }
  7. require(DIR_WS_INCLUDES 'application_bottom.php');

Stack Trace

ErrorException
ErrorException:
Invalid argument supplied for foreach()

  at /home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/modules/product_listing_col.php:242
  at Bootstrap\HandleExceptions->handleError()
     (/home/dev_ltscreen/web/dev.ltscreen.com/public_html/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
     (/home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/modules/product_listing_col.php:242)
  at include('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/includes/modules/product_listing_col.php')
     (/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/content/index_products.tpl.php:98)
  at require('/home/dev_ltscreen/web/dev.ltscreen.com/public_html/templates/default/content/index_products.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)