Answers.Body: <p>I believe you're probably seeing symptoms of a deeper problem, e.g. php version.</p>
  <blockquote>
  <p>re: &quot;So the question is: which table(s) in the database holds information about path(s) and/or resources loaded ?&quot;</p>
  </blockquote>
  <p>The answer is probably not what you're hoping for. CiviCRM has some of that, which gets built/cached, but makes use of civicrm settings + Drupal. Drupal is the initial 'dispatcher' and the lack of any path suggests that civicrm is not telling Drupal what paths it controls properly.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-18T22:14:05.503Z
Answers.Text: Thank you for your input. Any hint re: how to politely ask civicrm to talk to drupal in a nice manner? I'm thinking of having a better look inside of  CRM_Core_Config::singleton() and/or CRM_Utils_System::languageNegotiationURL().
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T08:03:23.683Z
Answers.Text: Since php version was mentioned ... what version of php is being used?
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T15:58:24.353Z
Answers.Text: @yurg - although I applaud your willingness to dive into the code, I suspect that's not your best approach. But to answer your question, I'd start in the drupal module portion of the CiviCRM code (https://github.com/civicrm/civicrm-drupal/blob/7.x-master/civicrm.module) and go from the hook_menu function. And look for errors in your log files ...
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T16:19:50.403Z
Answers.Text: @Aidan It is 7.4 currently
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-19T16:22:49.587Z
Answers.Text: @AlanDixon Thank you for the pointer: I'd very much loved not to dive into the code, however with CiviCRM 4.3 to 5.51 migration there are not  much options left.
Answers.UserDisplayName: yurg
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-18T16:22:30.753Z
Answers.LastActivityDate: 2022-07-18T16:22:30.753Z
Answers.UserDisplayName: Alan Dixon
Body: <p>In addition to <a href="https://civicrm.stackexchange.com/questions/42296/clean-urls-are-a-little-bit-too-clean">this</a> question:
  disabling Clean URLs in Drupal [7.90] somehow breaks CiviCRM resources load with cryptic errors in Dev Console:</p>
  <pre><code>Error: CRM.url called before initialization Common.js?rf6a3f:1674 
  Uncaught TypeError: Cannot read properties of undefined (reading 'back') crm.ajax.js?rf6a3f:34 
  </code></pre>
  <p>It also looks like some CSS and JS resource fail to load, because of :</p>
  <pre><code>  Refused to execute script from 'https://domain/index.php?rf6a3f' 
    Refused to apply style from 'https://domain/index.php?rf6a3f'
  </code></pre>
  <p>Resource URLs and  Directores paths   are triple-checked and all real paths on the server exist and writable. Backend / Menu rebuild make no difference. Cache is crystal clean.
  Basically, all filesystem is new and shiny, no custom Drupal code nor CiviCRM custom extension. The only place where the problem might be is the database.  &quot;<strong>civicrm_domain.config_backend</strong>&quot; is null.</p>
  <p>So the question is: which table(s) in the database holds information about  path(s) and/or resources loaded ?</p>
  <p>Drupal 7.9, CiviCRM 5.51.1</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-17T19:44:52.330Z
Comments.Text: have you checked civicrm.settings.php?
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-07-17T20:27:34.970Z
Comments.Text: More than once: the only lines changed are databases connection and paths: nothing unusual. Drupal pathauto is disabled. All files are fresh and all possible customizations are eliminated. All Drupal Watchdog messages and CiviCRM logs and Apache/PHP error logs are checked.
Comments.UserDisplayName: yurg
Tags: <drupal><angular><resource-urls>
Title: Drupal Clean URL disable breaks CiviCRM
ThreadText: # Drupal Clean URL disable breaks CiviCRM
  
  (Asked by: username_0 on 2022-07-17)
  
  In addition to this question:
  disabling Clean URLs in Drupal [7.90] somehow breaks CiviCRM resources load with cryptic errors in Dev Console:
  Error: CRM.url called before initialization Common.js?rf6a3f:1674 
  Uncaught TypeError: Cannot read properties of undefined (reading 'back') crm.ajax.js?rf6a3f:34 
  
  It also looks like some CSS and JS resource fail to load, because of :
    Refused to execute script from 'https://domain/index.php?rf6a3f' 
    Refused to apply style from 'https://domain/index.php?rf6a3f'
  
  Resource URLs and  Directores paths   are triple-checked and all real paths on the server exist and writable. Backend / Menu rebuild make no difference. Cache is crystal clean.
  Basically, all filesystem is new and shiny, no custom Drupal code nor CiviCRM custom extension. The only place where the problem might be is the database.  "civicrm_domain.config_backend" is null.
  So the question is: which table(s) in the database holds information about  path(s) and/or resources loaded ?
  Drupal 7.9, CiviCRM 5.51.1
  
  **Tags:** drupal, angular, resource-urls
  
  > **Comments:**
  > **username_1**: have you checked civicrm.settings.php?  
  > **username_0**: More than once: the only lines changed are databases connection and paths: nothing unusual. Drupal pathauto is disabled. All files are fresh and all possible customizations are eliminated. All Drupal Watchdog messages and CiviCRM logs and Apache/PHP error logs are checked.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2022-07-18. Score: 0
  
  I believe you're probably seeing symptoms of a deeper problem, e.g. php version.
  
  > re: "So the question is: which table(s) in the database holds information about path(s) and/or resources loaded ?"
  
  The answer is probably not what you're hoping for. CiviCRM has some of that, which gets built/cached, but makes use of civicrm settings + Drupal. Drupal is the initial 'dispatcher' and the lack of any path suggests that civicrm is not telling Drupal what paths it controls properly.
  
  > **Comments:**
  > **username_0**: Thank you for your input. Any hint re: how to politely ask civicrm to talk to drupal in a nice manner? I'm thinking of having a better look inside of  CRM_Core_Config::singleton() and/or CRM_Utils_System::languageNegotiationURL().  
  > **username_3**: Since php version was mentioned ... what version of php is being used?  
  > **username_2**: @username_0 - although I applaud your willingness to dive into the code, I suspect that's not your best approach. But to answer your question, I'd start in the drupal module portion of the CiviCRM code (https://github.com/civicrm/civicrm-drupal/blob/7.x-master/civicrm.module) and go from the hook_menu function. And look for errors in your log files ...  
  > **username_0**: @username_3 It is 7.4 currently  
  > **username_0**: @AlanDixon Thank you for the pointer: I'd very much loved not to dive into the code, however with CiviCRM 4.3 to 5.51 migration there are not  much options left.  
  
  ---
  
  