* @throws \Exception
*/
public static function getApplication()
{
if (!self::$application) {
throw new \Exception('Failed to start application', 500);
}
return self::$application;
}
//////// echo "<br> line: " . __LINE__ . " BYPASS set mainframe" ;
///////////////// echo "<br> line: " . __LINE__ . " trying to set application based on line in Factory.php" ;
/////// $application = Factory::getApplication()->getConfig();
echo "<br> line: " . __LINE__ . " IGNORE trying to set application based on line in Factory.php" ;
echo "<br> line: " . __LINE__ . " trying to set apps" ;
$apps = Factory::getApplication()->getConfig();
// echo "<br> line: " . __LINE__ . " BYPASS set apps" ;
echo "<br> line: " . __LINE__ . " trying to set prefix" ;
$prefix = $app->get('dbprefix');
echo "<br> line: " . __LINE__ . " trying to initialise mainframe" ;
$mainframe->initialise();
$debugent2 = 0;
$debugent3 = 0;
} // is_test
/// must be before header
include "includes/session.php"; // access joomla login
/*
// test if logged in //
if (isset($my) && $my->username<>"")
{
Exception
|
---|
Exception: Failed to start application at /home/usbf/public_html/libraries/src/Factory.php:158 at Joomla\CMS\Factory::getApplication() (/home/usbf/public_html/apps/includes/session.php:77) at include('/home/usbf/public_html/apps/includes/session.php') (/home/usbf/public_html/apps/entries.php:46) |