* @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();
<?php
// teamforms.php
/// must be before header
include "includes/session.php"; // access joomla login
$ifadmin = ($my->usertype == 'Administrator' || $my->usertype == 'Super Administrator' );
/// init variables ///
$script_version = $parent_version = "021f4-008g1" ; // 20240204
$script_name = basename(__FILE__);
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:69) at include('/home/usbf/public_html/apps/includes/session.php') (/home/usbf/public_html/apps/teamforms.php:5) |