Receiving the following error when trying to browse for a link in Message templates:
Exception:
Failed to start application
at /var/www/joomla/libraries/src/Factory.php:158
at Joomla\CMS\Factory::getApplication()
(/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/integration/civicrm.php:203)
at authenticate_joomla()
(/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/integration/civicrm.php:73)
at checkAuthentication()
(/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/integration/civicrm.php:212)
at require('/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/integration/civicrm.php')
(/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/core/bootstrap.php:39)
at require('/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/core/bootstrap.php')
(/var/www/joomla/administrator/components/com_civicrm/civicrm/packages/kcfinder/browse.php:15)
How can i resolve?