SoloMono modules shop
count(): Parameter must be an array or an object that implements Countable (500 Whoops, looks like something went wrong.)

count(): Parameter must be an array or an object that implements Countable

Exception

ErrorException

  1.                         </div>
  2.                         <?
  3.                         array_shift($smallImages);
  4.                         ?>
  5.                         <?php
  6.                             if(count($smallImages) > 3) {
  7.                                 $smallImgCounter 1;
  8.                                 echo '<div class="marketplace_page__card_smallImages smallImages-slider  owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
  9.                                 foreach ($smallImages as $value) {
  10.                                     echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' $value '">
  11.                                         <img class="lazyload marketplace__cart-ico marketplace__round-ico"
  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.                         </div>
  2.                         <?
  3.                         array_shift($smallImages);
  4.                         ?>
  5.                         <?php
  6.                             if(count($smallImages) > 3) {
  7.                                 $smallImgCounter 1;
  8.                                 echo '<div class="marketplace_page__card_smallImages smallImages-slider  owl-carousel owl-theme owl-loaded owl-carousel owl-drag">';
  9.                                 foreach ($smallImages as $value) {
  10.                                     echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' $value '">
  11.                                         <img class="lazyload marketplace__cart-ico marketplace__round-ico"
require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php') in /home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php (line 502)
  1.     <?php if ($content == 'index_default'): ?>
  2.         <?php require(DIR_WS_TEMPLATES TEMPLATE_NAME '/mainpage_modules/slider_main.php'); ?>
  3.     <?php endif ?>
  4.     <?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
  5.         require(DIR_WS_CONTENT 'product_info_new.php');
  6.     else
  7.         require(DIR_WS_CONTENT $content '.tpl.php');
  8.     ?>
  9.     <div class="hFooter"></div>
  10. </main>
require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php') in /home/solomono/web/hetzner.solomono.net/product_info.php (line 102)
  1.   }
  2.   $content CONTENT_PRODUCT_INFO;
  3. //  $javascript = 'product_info.js';
  4.    
  5.   require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  6.   
  7.   require(DIR_WS_INCLUDES 'application_bottom.php');
  8.   
  9.   

Stack Trace

ErrorException
ErrorException:
count(): Parameter must be an array or an object that implements Countable

  at /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
     (/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:98)
  at require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php')
     (/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
  at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
     (/home/solomono/web/hetzner.solomono.net/product_info.php:102)                
Invalid argument supplied for foreach() (500 Whoops, looks like something went wrong.)

Invalid argument supplied for foreach()

Exception

ErrorException

  1.                                 }
  2.                                 echo '</div>';
  3.                             } else {
  4.                                 echo '<div class="marketplace_page__card_smallImages smallImages_without_slider">';
  5.                                 foreach ($smallImages as $value) {
  6.                                     echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' $value '">
  7.                                         <img class="lazyload marketplace__cart-ico marketplace__round-ico"
  8.                                          data-id="' $item['products_id'] . '"
  9.                                          src="images/pixel_trans.png"
  10.                                          data-src="' "getimage/" $value '"
  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.         });
HandleExceptions->Bootstrap\{closure}() in /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php (line 114)
  1.                                 }
  2.                                 echo '</div>';
  3.                             } else {
  4.                                 echo '<div class="marketplace_page__card_smallImages smallImages_without_slider">';
  5.                                 foreach ($smallImages as $value) {
  6.                                     echo '<a data-fancybox="module_images" data-lightbox="image-1" href="getimage/' $value '">
  7.                                         <img class="lazyload marketplace__cart-ico marketplace__round-ico"
  8.                                          data-id="' $item['products_id'] . '"
  9.                                          src="images/pixel_trans.png"
  10.                                          data-src="' "getimage/" $value '"
require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php') in /home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php (line 502)
  1.     <?php if ($content == 'index_default'): ?>
  2.         <?php require(DIR_WS_TEMPLATES TEMPLATE_NAME '/mainpage_modules/slider_main.php'); ?>
  3.     <?php endif ?>
  4.     <?php if (isset($_GET['products_id']) && !productIsTemplate($_GET['products_id']))
  5.         require(DIR_WS_CONTENT 'product_info_new.php');
  6.     else
  7.         require(DIR_WS_CONTENT $content '.tpl.php');
  8.     ?>
  9.     <div class="hFooter"></div>
  10. </main>
require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php') in /home/solomono/web/hetzner.solomono.net/product_info.php (line 102)
  1.   }
  2.   $content CONTENT_PRODUCT_INFO;
  3. //  $javascript = 'product_info.js';
  4.    
  5.   require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  6.   
  7.   require(DIR_WS_INCLUDES 'application_bottom.php');
  8.   
  9.   

Stack Trace

ErrorException
ErrorException:
Invalid argument supplied for foreach()

  at /home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:114
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/hetzner.solomono.net/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
     (/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php:114)
  at require('/home/solomono/web/hetzner.solomono.net/templates/content/product_info_new.php')
     (/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php:502)
  at require('/home/solomono/web/hetzner.solomono.net/templates/solo/main_page.tpl.php')
     (/home/solomono/web/hetzner.solomono.net/product_info.php:102)                

Log of Slow DB-queries

Date of creation : 2018-09-21
97
1 2 3 4 5
icon 6,2k
Log of Slow DB-queries
free, junior, seo, pro

Slow page loading speed is one of the main reasons why you can lose leads. According to research, more than half of users leave a site if its loading time is under 3 seconds. That is why we have developed the Solomono eCommerce engine - one of the fastest among its analogues. However, individual pages in any particular store can be slower, for example, due to the structure of the catalog. To quickly track and adjust such pages, the Solomono team created a Slow Site Request Log.

This report shows which page requests are taking the most time, when these requests were made, and the latency time itself. Thanks to this, you can:

  • promptly respond to problems and solve them quickly,
  • find out whether this is a one-time situation or a recurring one,
  • draw conclusions which pages need to be optimized,
  • exclude a drop in conversion due to the slow operation of the online store.

After installing the module, the report can be seen in the admin panel, in the Tools tab.

Log of Slow DB-queries - 1