Artículos

Total de articulos: 2 Result Pages:
Attempt to read property "number_of_rows" on null (500 Whoops, looks like something went wrong.)

Attempt to read property "number_of_rows" on null

Exception

ErrorException

  1.             </tr>
  2.         </table>
  3.     </td>
  4. <?php }
  5. if ($articles_all_split->number_of_rows 0) : ?>
  6.     <div>
  7.         <div class="left"> <?php echo TOTAL_ARTICLES?>:<b><?php echo $articles_all_split->number_of_rows?></div>
  8.         <div class="right"> <?php echo TEXT_RESULT_PAGE ' ' $articles_all_split->display_links(
  9.                     MAX_DISPLAY_PAGE_LINKS,
  10.                     tep_get_all_get_params(array('page''info''x''y'))
HandleExceptions->handleError(2, 'Attempt to read property "number_of_rows" on null', '/home/pinsoft/public_html/templates/default/content/articles.tpl.php', 214) in /home/pinsoft/public_html/bootstrap/HandleExceptions.php (line 38)
  1.                 (strpos($message'Undefined array key') === false) &&
  2. //                (strpos($message, 'is deprecated in') === false) &&
  3.                 (strpos($message'Trying to access array offset on') === false) &&
  4.                 (strpos($message'Undefined variable') === false)
  5.             ) {
  6.             $this->handleError($level$message$file$line);
  7.             } else {
  8.                 return true;
  9.             }
  10.         });
  11. //        set_error_handler(function ($level, $message, $file = '', $line = 0) {
HandleExceptions->Bootstrap\{closure}(2, 'Attempt to read property "number_of_rows" on null', '/home/pinsoft/public_html/templates/default/content/articles.tpl.php', 214) in /home/pinsoft/public_html/templates/default/content/articles.tpl.php (line 214)
  1.             </tr>
  2.         </table>
  3.     </td>
  4. <?php }
  5. if ($articles_all_split->number_of_rows 0) : ?>
  6.     <div>
  7.         <div class="left"> <?php echo TOTAL_ARTICLES?>:<b><?php echo $articles_all_split->number_of_rows?></div>
  8.         <div class="right"> <?php echo TEXT_RESULT_PAGE ' ' $articles_all_split->display_links(
  9.                     MAX_DISPLAY_PAGE_LINKS,
  10.                     tep_get_all_get_params(array('page''info''x''y'))
require('/home/pinsoft/public_html/templates/default/content/articles.tpl.php') in /home/pinsoft/public_html/templates/default/main_page.tpl.php (line 108)
  1.             <!-- END BREADCRUMBS -->
  2.             <!-- CONTENT -->
  3.             <?php
  4.             if (file_exists(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php')) {
  5.                 require(DIR_WS_TEMPLATES TEMPLATE_NAME '/content/' $content '.tpl.php'); // content from current template (if exists)
  6.             } else {
  7.                 require(DIR_WS_CONTENT $content '.tpl.php'); // content from default template
  8.             }
  9.             ?>
  10.             <!-- END CONTENT -->
require('/home/pinsoft/public_html/templates/default/main_page.tpl.php') in /home/pinsoft/public_html/articles.php (line 17)
  1. if (empty($tPath)) {
  2.     http_response_code(404);
  3.     $content CONTENT_ERROR_404;
  4. }
  5. require(DIR_WS_TEMPLATES TEMPLATE_NAME '/' TEMPLATENAME_MAIN_PAGE);
  6. require(DIR_WS_INCLUDES 'application_bottom.php');

Stack Trace

ErrorException
ErrorException:
Attempt to read property "number_of_rows" on null

  at /home/pinsoft/public_html/templates/default/content/articles.tpl.php:214
  at Bootstrap\HandleExceptions->handleError(2, 'Attempt to read property "number_of_rows" on null', '/home/pinsoft/public_html/templates/default/content/articles.tpl.php', 214)
     (/home/pinsoft/public_html/bootstrap/HandleExceptions.php:38)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}(2, 'Attempt to read property "number_of_rows" on null', '/home/pinsoft/public_html/templates/default/content/articles.tpl.php', 214)
     (/home/pinsoft/public_html/templates/default/content/articles.tpl.php:214)
  at require('/home/pinsoft/public_html/templates/default/content/articles.tpl.php')
     (/home/pinsoft/public_html/templates/default/main_page.tpl.php:108)
  at require('/home/pinsoft/public_html/templates/default/main_page.tpl.php')
     (/home/pinsoft/public_html/articles.php:17)