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

  • have you checked civicrm.settings.php?
    – petednz - fuzion
    Jul 17, 2022 at 19:44
  • 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.
    – yurg
    Jul 17, 2022 at 20:27

1 Answer 1


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.

  • 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().
    – yurg
    Jul 18, 2022 at 22:14
  • Since php version was mentioned ... what version of php is being used?
    – Aidan
    Jul 19, 2022 at 8:03
  • @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 (github.com/civicrm/civicrm-drupal/blob/7.x-master/…) and go from the hook_menu function. And look for errors in your log files ...
    – Alan Dixon
    Jul 19, 2022 at 15:58
  • @Aidan It is 7.4 currently
    – yurg
    Jul 19, 2022 at 16:19
  • @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.
    – yurg
    Jul 19, 2022 at 16:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.