Answers.Body: <p>this is a known issue in the Joomla sites, I've seen it all the way up to civi 5.11.0 and i only change one path which is in Resource URL's - CiviCRM Resource URL</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-14T14:04:42.520Z
Answers.Text: And how would one do that when you can't access that settings dialogue?
Answers.UserDisplayName: thoni56
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-02-16T20:00:59.093Z
Answers.Text: By modifying civicrm.settings.php
Answers.UserDisplayName: Bryan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-04-29T12:24:46.843Z
Answers.LastActivityDate: 2019-04-29T12:24:46.843Z
Answers.UserDisplayName: Karen-Ann
Body: <p>On upgrade to 4.7.30 (Joomla) the status message tells me of path problems. For example, that the directories are not writeable or do not exist. When I try to check/set the directories I get RuntimeException: "Cannot resolve path using &quot;cms.root.path&quot;" (full backtrace below), so I cannot access the form to reset directory paths.</p>
  
  <p>Also, there is an error about missing extensions.</p>
  
  <p>This has also seems to affect the Events Listing module in the Joomla front end which gives the message 'Warning Error loading module file (). Please restore the file or disable the module.'</p>
  
  <p>Seems to be same or similar to the <a href="https://civicrm.stackexchange.com/questions/9256/cms-root-path-error-after-upgrade-to-4-7-joomla">problem</a> fixed in 4.7.6 </p>
  
  <p>Any advice please?</p>
  
  <p><p><b>RuntimeException: "Cannot resolve path using &quot;cms.root.path&quot;"</b></p><pre>#0 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Resources.php(476): Civi\Core\Paths-&gt;getVariable(&quot;cms.root&quot;, &quot;path&quot;) #1 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty/plugins/function.crmResPath.php(55): CRM_Core_Resources-&gt;getPath(&quot;cms.root&quot;, NULL) #2 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%E8/E8B/E8BB6A67%%Path.hlp.php(11): smarty_function_crmResPath((Array:1), Object(CRM_Core_Smarty)) #3 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1270): include(&quot;/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%E8/E8B/E8...&quot;) #4 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty.php(194): Smarty-&gt;fetch(&quot;CRM/Admin/Form/Setting/Path.hlp&quot;, NULL, NULL, FALSE) #5 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty/plugins/function.help.php(64): CRM_Core_Smarty-&gt;fetch(&quot;CRM/Admin/Form/Setting/Path.hlp&quot;) #6 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0F/0FF/0FF13161%%Path.tpl.php(9): smarty_function_help((Array:1), Object(CRM_Core_Smarty)) #7 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1911): include(&quot;/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0F/0FF/0F...&quot;) #8 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0C/0CB/0CBEC124%%default.tpl.php(19): Smarty-&gt;_smarty_include((Array:2)) #9 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1911): include(&quot;/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0C/0CB/0C...&quot;) #10 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%EA/EAA/EAA96A89%%joomla.tpl.php(84): Smarty-&gt;_smarty_include((Array:2)) #11 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1270): include(&quot;/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%EA/EAA/EA...&quot;) #12 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty.php(194): Smarty-&gt;fetch(&quot;CRM/common/joomla.tpl&quot;, NULL, NULL, FALSE) #13 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(133): CRM_Core_Smarty-&gt;fetch(&quot;CRM/common/joomla.tpl&quot;) #14 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(99): CRM_Core_QuickForm_Action_Display-&gt;renderForm(Object(CRM_Admin_Form_Setting_Path)) #15 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display-&gt;perform(Object(CRM_Admin_Form_Setting_Path), &quot;display&quot;) #16 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller-&gt;handle(Object(CRM_Admin_Form_Setting_Path), &quot;display&quot;) #17 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page-&gt;handle(&quot;display&quot;) #18 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller-&gt;run() #19 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(283): CRM_Utils_Wrapper-&gt;run(&quot;CRM_Admin_Form_Setting_Path&quot;, &quot;Directories&quot;, NULL) #20 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:15)) #21 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4)) #22 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm.php(121): CRM_Core_Invoke::invoke((Array:4)) #23 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm.php(40): civicrm_invoke() #24 /var/www/clients/client3/web4/web/libraries/src/Component/ComponentHelper.php(382): require_once(&quot;/var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicr...&quot;) #25 /var/www/clients/client3/web4/web/libraries/src/Component/ComponentHelper.php(357): Joomla\CMS\Component\ComponentHelper::executeComponent(&quot;/var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicr...&quot;) #26 /var/www/clients/client3/web4/web/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent(&quot;com_civicrm&quot;) #27 /var/www/clients/client3/web4/web/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication-&gt;dispatch() #28 /var/www/clients/client3/web4/web/libraries/src/Application/CMSApplication.php(303): Joomla\CMS\Application\AdministratorApplication-&gt;doExecute() #29 /var/www/clients/client3/web4/web/administrator/index.php(51): Joomla\CMS\Application\CMSApplication-&gt;execute() #30 {main} </pre>  @import url(/administrator/components/com_civicrm/civicrm/css/civicrm.css); @import url(/administrator/components/com_civicrm/civicrm/css/crm-i.css); @import url(/administrator/components/com_civicrm/civicrm/bower_components/font-awesome/css/font-awesome.min.css);    Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred. Cannot resolve path using "cms.root.path" <p><a href="https://www.fabians.org.nz/administrator/" rel="nofollow noreferrer" title="Main Menu">Return to home page.</a></p>    function toggle( element ) { var parent = element.parentNode; var className = parent.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { parent.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { parent.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } } </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-16T00:32:05.253Z
Comments.Text: I worked my way around most of this this by setting the overrides for all directories in civicrm.settings.php. I can now access the 'Settings - Upload Directories' form again. I still have the ''Warning Error loading module file (). Please restore the file or disable the module." error in the front end at the top of the civievent registration page.
Comments.UserDisplayName: Bryan
Tags: <joomla><upgrade><4.7>
Title: Directory path problem on 4.7.30 upgrade
ThreadText: # Directory path problem on 4.7.30 upgrade
  
  (Asked by: username_0 on 2018-02-15)
  
  On upgrade to 4.7.30 (Joomla) the status message tells me of path problems. For example, that the directories are not writeable or do not exist. When I try to check/set the directories I get RuntimeException: "Cannot resolve path using "cms.root.path"" (full backtrace below), so I cannot access the form to reset directory paths.
  
  Also, there is an error about missing extensions.
  
  This has also seems to affect the Events Listing module in the Joomla front end which gives the message 'Warning Error loading module file (). Please restore the file or disable the module.'
  
  Seems to be same or similar to the [problem](https://civicrm.stackexchange.com/questions/9256/cms-root-path-error-after-upgrade-to-4-7-joomla) fixed in 4.7.6
  
  Any advice please?
  
  **RuntimeException: "Cannot resolve path using "cms.root.path""**
  
  ```
  #0 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Resources.php(476): Civi\Core\Paths->getVariable("cms.root", "path") #1 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty/plugins/function.crmResPath.php(55): CRM_Core_Resources->getPath("cms.root", NULL) #2 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%E8/E8B/E8BB6A67%%Path.hlp.php(11): smarty_function_crmResPath((Array:1), Object(CRM_Core_Smarty)) #3 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1270): include("/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%E8/E8B/E8...") #4 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty.php(194): Smarty->fetch("CRM/Admin/Form/Setting/Path.hlp", NULL, NULL, FALSE) #5 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty/plugins/function.help.php(64): CRM_Core_Smarty->fetch("CRM/Admin/Form/Setting/Path.hlp") #6 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0F/0FF/0FF13161%%Path.tpl.php(9): smarty_function_help((Array:1), Object(CRM_Core_Smarty)) #7 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1911): include("/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0F/0FF/0F...") #8 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0C/0CB/0CBEC124%%default.tpl.php(19): Smarty->_smarty_include((Array:2)) #9 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1911): include("/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%0C/0CB/0C...") #10 /var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%EA/EAA/EAA96A89%%joomla.tpl.php(84): Smarty->_smarty_include((Array:2)) #11 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/Smarty/Smarty.class.php(1270): include("/var/www/clients/client3/web4/web/media/civicrm/templates_c/en_US/%%EA/EAA/EA...") #12 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Smarty.php(194): Smarty->fetch("CRM/common/joomla.tpl", NULL, NULL, FALSE) #13 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(133): CRM_Core_Smarty->fetch("CRM/common/joomla.tpl") #14 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(99): CRM_Core_QuickForm_Action_Display->renderForm(Object(CRM_Admin_Form_Setting_Path)) #15 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Admin_Form_Setting_Path), "display") #16 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Admin_Form_Setting_Path), "display") #17 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("display") #18 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller->run() #19 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(283): CRM_Utils_Wrapper->run("CRM_Admin_Form_Setting_Path", "Directories", NULL) #20 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:15)) #21 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:4)) #22 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm.php(121): CRM_Core_Invoke::invoke((Array:4)) #23 /var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicrm.php(40): civicrm_invoke() #24 /var/www/clients/client3/web4/web/libraries/src/Component/ComponentHelper.php(382): require_once("/var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicr...") #25 /var/www/clients/client3/web4/web/libraries/src/Component/ComponentHelper.php(357): Joomla\CMS\Component\ComponentHelper::executeComponent("/var/www/clients/client3/web4/web/administrator/components/com_civicrm/civicr...") #26 /var/www/clients/client3/web4/web/libraries/src/Application/AdministratorApplication.php(101): Joomla\CMS\Component\ComponentHelper::renderComponent("com_civicrm") #27 /var/www/clients/client3/web4/web/libraries/src/Application/AdministratorApplication.php(159): Joomla\CMS\Application\AdministratorApplication->dispatch() #28 /var/www/clients/client3/web4/web/libraries/src/Application/CMSApplication.php(303): Joomla\CMS\Application\AdministratorApplication->doExecute() #29 /var/www/clients/client3/web4/web/administrator/index.php(51): Joomla\CMS\Application\CMSApplication->execute() #30 {main} 
  ```
  
  @import url(/administrator/components/com\_civicrm/civicrm/css/civicrm.css); @import url(/administrator/components/com\_civicrm/civicrm/css/crm-i.css); @import url(/administrator/components/com\_civicrm/civicrm/bower\_components/font-awesome/css/font-awesome.min.css); Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred. Cannot resolve path using "cms.root.path"
  
  [Return to home page.](https://www.fabians.org.nz/administrator/ "Main Menu")
  
  function toggle( element ) { var parent = element.parentNode; var className = parent.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { parent.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { parent.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } }
  
  **Tags:** joomla, upgrade, 4.7
  
  > **Comments:**
  > **username_0**: I worked my way around most of this this by setting the overrides for all directories in civicrm.settings.php. I can now access the 'Settings - Upload Directories' form again. I still have the ''Warning Error loading module file (). Please restore the file or disable the module." error in the front end at the top of the civievent registration page.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-04-29. Score: 0
  
  this is a known issue in the Joomla sites, I've seen it all the way up to civi 5.11.0 and i only change one path which is in Resource URL's - CiviCRM Resource URL
  
  > **Comments:**
  > **username_2**: And how would one do that when you can't access that settings dialogue?  
  > **username_0**: By modifying civicrm.settings.php  
  
  ---
  
  