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
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 52 SKIPPED mainframe
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 61DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 65
DEBUG: inside /home/usbf/public_html/apps/includes/session.php line 68 set appvars 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. // jimport( 'joomla.user.authentication');   // comment out after joomla4 migration
  2.     echo "DEBUG: inside " __FILE__ " line " __LINE__ ;
  3. // get the database information
  4. //////////////////////////////////////////$appvars = JFactory::getApplication();          // connect will use this     // comment out after joomla4 migration
  5.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set appvars";
  6. $appvars Factory::getApplication();          // connect will use this
  7. // now get user object and 3 example user variables
  8. //////////////$user = JFactory::getUser();   // comment out after joomla4 migration
  9.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set user";
  10. $user Factory::getUser(); 
  11.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ ;
  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:69
  at include()
     (/home/usbf/public_html/apps/teamforms.php:5)