DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 20
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 21 jpath base = /home/usbf/public_html
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 41 require defines.php
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 43 require framework.php
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 45
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 50 set mainframe Failed to start application (500 Whoops, looks like something went wrong.)

Exception

HTTP 500 Whoops, looks like something went wrong.

Failed to start application

Exception

Exception

  1.      * @throws  \Exception
  2.      */
  3.     public static function getApplication()
  4.     {
  5.         if (!self::$application) {
  6.             throw new \Exception('Failed to start application'500);
  7.         }
  8.         return self::$application;
  9.     }
Factory::getApplication('site') in /home/usbf/public_html/apps/includes/session.php (line 51)
  1. ///require_once ( JPATH_BASE .DS. 'includes' .DS. 'defines.php' );
  2. ///require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
  3. ////////////$mainframe = JFactory::getApplication('site');  // comment out after joomla4 migration
  4. ////////////$app = JFactory::getApplication();   // comment out after joomla4 migration
  5.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set mainframe";
  6. $mainframe Factory::getApplication('site');  // attempt after joomla4 migration 
  7. /*    echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . "  SKIPPED mainframe"; */
  8. /*    echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . "  try adjusted mainframe";
  9.  $mainframe = Factory::getApplication();  // attempt after joomla4 migration -- without parsing 'site' */
  10.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set app";
  11. $app Factory::getApplication();   // attempt after joomla4 migration
include('/home/usbf/public_html/apps/includes/session.php') in /home/usbf/public_html/apps/teamforms.php (line 5)
  1. <?php
  2. // teamforms.php
  3. /// must be before header
  4. include "includes/session.php";    // access joomla login
  5. $ifadmin =  ($my->usertype == 'Administrator' || $my->usertype == 'Super Administrator'  );
  6. /// init variables ///
  7. $script_version $parent_version "021f4-008g1" // 20240204
  8. $script_name    basename(__FILE__);

Stack Trace

Exception
Exception:
Failed to start application

  at /home/usbf/public_html/libraries/src/Factory.php:158
  at Joomla\CMS\Factory::getApplication('site')
     (/home/usbf/public_html/apps/includes/session.php:51)
  at include('/home/usbf/public_html/apps/includes/session.php')
     (/home/usbf/public_html/apps/teamforms.php:5)