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 Resource 'Joomla\Session\SessionInterface' has not been registered with the container. (500 Whoops, looks like something went wrong.)

KeyNotFoundException

HTTP 500 Whoops, looks like something went wrong.

Resource 'Joomla\Session\SessionInterface' has not been registered with the container.

Exception

Joomla\DI\Exception\ KeyNotFoundException

  1.             if ($this->parent instanceof ContainerInterface && $this->parent->has($key))
  2.             {
  3.                 return $this->parent->get($key);
  4.             }
  5.             throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container."$resourceName));
  6.         }
  7.         return $this->resources[$key]->getInstance();
  8.     }
Container->get('Joomla\\Session\\SessionInterface') in /home/usbf/public_html/libraries/src/Service/Provider/Application.php (line 109)
  1.                         Factory::$application $app;
  2.                     }
  3.                     $app->setDispatcher($container->get(DispatcherInterface::class));
  4.                     $app->setLogger($container->get(LoggerInterface::class));
  5.                     $app->setSession($container->get(SessionInterface::class));
  6.                     $app->setUserFactory($container->get(UserFactoryInterface::class));
  7.                     $app->setCacheControllerFactory($container->get(CacheControllerFactoryInterface::class));
  8.                     $app->setMenuFactory($container->get(MenuFactoryInterface::class));
  9.                     return $app;
in /home/usbf/public_html/libraries/vendor/joomla/di/src/ContainerResource.php -> Joomla\CMS\Service\Provider\{closure} (line 176)
  1.         if ($this->isShared())
  2.         {
  3.             if ($this->instance === null)
  4.             {
  5.                 $this->instance $callable($this->container);
  6.             }
  7.             return $this->instance;
  8.         }
  1.             }
  2.             throw new KeyNotFoundException(sprintf("Resource '%s' has not been registered with the container."$resourceName));
  3.         }
  4.         return $this->resources[$key]->getInstance();
  5.     }
  6.     /**
  7.      * Check if specified resource exists.
  8.      *
Container->get('Joomla\\CMS\\Application\\SiteApplication') in /home/usbf/public_html/apps/includes/session.php (line 55)
  1.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set mainframe";
  2. /* $mainframe = Factory::getApplication('site');  // attempt after joomla4 migration */
  3. /*    echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . "  SKIPPED mainframe"; */
  4. /*    echo "<br>DEBUG: inside " . __FILE__ . " line " . __LINE__ . "  try adjusted mainframe";
  5. /* $mainframe = Factory::getApplication();  // attempt after joomla4 migration -- without parsing 'site' */
  6. $mainframe Factory::getContainer()->get(\Joomla\CMS\Application\SiteApplication::class);
  7.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set app";
  8. $app Factory::getApplication();   // attempt after joomla4 migration
  9.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  set prefix";
  10. $prefix $app->get('dbprefix');  // attempt after joomla4 migration
  11.     echo "<br>DEBUG: inside " __FILE__ " line " __LINE__ "  initialize mainframe";
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

KeyNotFoundException
Joomla\DI\Exception\KeyNotFoundException:
Resource 'Joomla\Session\SessionInterface' has not been registered with the container.

  at /home/usbf/public_html/libraries/vendor/joomla/di/src/Container.php:93
  at Joomla\DI\Container->get('Joomla\\Session\\SessionInterface')
     (/home/usbf/public_html/libraries/src/Service/Provider/Application.php:109)
  at Joomla\CMS\Service\Provider\Application->Joomla\CMS\Service\Provider\{closure}(object(Container))
     (/home/usbf/public_html/libraries/vendor/joomla/di/src/ContainerResource.php:176)
  at Joomla\DI\ContainerResource->getInstance()
     (/home/usbf/public_html/libraries/vendor/joomla/di/src/Container.php:96)
  at Joomla\DI\Container->get('Joomla\\CMS\\Application\\SiteApplication')
     (/home/usbf/public_html/apps/includes/session.php:55)
  at include('/home/usbf/public_html/apps/includes/session.php')
     (/home/usbf/public_html/apps/teamforms.php:5)