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 Attempted to load class "Factory" from namespace "Joomla\CMS". Did you forget a "use" statement for another namespace? (500 Whoops, looks like something went wrong.)

ClassNotFoundError

HTTP 500 Whoops, looks like something went wrong.

Attempted to load class "Factory" from namespace "Joomla\CMS".
Did you forget a "use" statement for another namespace?

Exception

Symfony\Component\ErrorHandler\Error\ ClassNotFoundError

  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
  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

ClassNotFoundError
Symfony\Component\ErrorHandler\Error\ClassNotFoundError:
Attempted to load class "Factory" from namespace "Joomla\CMS".
Did you forget a "use" statement for another namespace?

  at /home/usbf/public_html/apps/includes/session.php:51
  at include()
     (/home/usbf/public_html/apps/teamforms.php:5)