Steve Schiltz
Steve Schiltz

Reputation: 1

Civicrm Menu not showing in Drupal 9

searched for this on the web but did not really sth helpful. Any chance someone here can make a hint. Drupal 9.4.5 Civicrm 5.64

Fresh installation, used composer 2.5.8 no errors during install no errors when activating civicrm-core in drupal extensions

various searches, cleaning paths, flushing caches etc

In the meanwhile I found out that when loading CiviCRM it looks in libraries/civicrm/core/b.... for various files But these are located in the vendor folder

strange enough : the civicrm_settings.php says civicrm_root is in the vendor folder, but the admin page of Civicrm (ressource url's) says they should be in the library path.

any idea out there?

Upvotes: 0

Views: 175

Answers (2)

Tom Stermitz
Tom Stermitz

Reputation: 1

I couldn't get the menu to show for the life of me, until I saw Steve Schlitz's helpful comment, here. Yes, the "composer civicrm:publish" instruction is right there in the Drupal install instructions, and I probably forgot to run it after several attempts to reinstall:

https://docs.civicrm.org/installation/en/latest/drupal/

cd /var/www/d9.example.org
composer config extra.enable-patching true
composer config minimum-stability dev
composer require civicrm/civicrm-{core,packages,drupal-8}:'~5.42'
composer civicrm:publish

I assume that "composer civicrm:publish" needs to be run after every update.

Upvotes: 0

Steve Schiltz
Steve Schiltz

Reputation: 1

After installation civicrm:publish through composer is required. This publishes all the civicrm assets to the library folder This swiped away all the http404 errors and the civicrm menu loaded correctly.

Upvotes: 0

Related Questions