Profiler causes 500 errors on some pages only for Regular users.

This was mainly caught by my users when navigating to the Photos application of the site after users began to upload their media, it seems to stem from the default widgets on the right side of the page when Profiler is active and running.

Fatal Error

PHP message: PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + null in /var/www/vhosts/website.com/httpdocs/modules/boonex/profiler/classes/BxProfiler.php:617\nStack trace:\n#0 /var/www/vhosts/website.com/httpdocs/modules/boonex/profiler/classes/BxProfiler.php(348): BxProfiler->_calcTime()\n#1 /var/www/vhosts/website.com/httpdocs/template/scripts/BxBaseMenu.php(66): BxProfiler->endMenu()\n#2 /var/www/vhosts/website.com/httpdocs/template/scripts/BxBaseMenuMoreAuto.php(55): BxBaseMenu->getCode()\n#3 /var/www/vhosts/website.com/httpdocs/modules/base/general/classes/BxBaseModGeneralMenuSnippetMeta.php(39): BxBaseMenuMoreAuto->getCode()\n#4 /var/www/vhosts/website.com/httpdocs/modules/base/text/classes/BxBaseModTextTemplate.php(918): BxBaseModGeneralMenuSnippetMeta->getCode()\n#5 /var/www/vhosts/website.com/httpdocs/modules/boonex/photos/classes/BxPhotosTemplate.php(181): BxBaseModTextTemplate->getUnit()\n#6 /var/www/vhosts/website.com/httpdocs/modules/base/text/classes/BxBaseModTextTem...', referer: https://website.com/
  • 533
  • More
Replies (1)
    • Notes

      • This does NOT impact Site Operators of the site, only Regular members.
      • The 500 error happens even when Profiler is set to not display error/logs on pages.
      • 500 Error triggers with Profiler simply enabled with no further changes to the default settings once installed.
      • As content gets upload, it seems to trigger this error, my best guess is it stems from a Page Block on the Photos Homepage
      Login or Join to comment.