CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Can't rebuild menu following move
Pages: [1]

Author Topic: Can't rebuild menu following move  (Read 10371 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Can't rebuild menu following move
November 23, 2009, 03:55:30 am
I've set up a new localhost installation to debug a problem I've got on our live site, but I've been having problems with the black ribbon menu at the top - all the links are incorrect and I can't seem to rebuild it

I've reset all the domain details in civcrcm.setting.php; deleted the templates_c directory and the .ini file in uploads

CiviCRM is working if I navigate by entering the right address in the address bar, I can work with contacts, activities and so on adn the admin console works just fine - but not the menu.

 (localhost/civicrm etc.. rather than localhost/mydomain.org/public_html/?q=civicrm etc..)

I have tried resetting the menu - no errors, but also no correction.

Any suggestions please?

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can't rebuild menu following move
November 23, 2009, 05:03:13 am
Have you tried this:

Quote
UPDATE civicrm_domain SET config_backend = NULL;

Then do menu rebuild.

Hth

Kurund
Found this reply helpful? Support CiviCRM

Margal

  • Guest
Re: Can't rebuild menu following move
December 20, 2009, 07:58:54 pm
I have exactly this same problem when I try to use a database from another machine running the standalone 3.0.1
To swap databases I change CIVICRM_DSN in civicrm.settings.php

The suggetion above doesn't solve the problem, I tried this:
-SQL: UPDATE civicrm_domain SET config_backend = NULL;
-Then do menu rebuild with http://yourdomain.com/civicrm/menu/rebuild?reset=1



The menus are still using the base url from the other machine, the information must be held in the database as switching to the database built by the installer makes the menu work fine. I'm not convinced the menu rebuild does anything.

I've made all the changes suggested here for moving installation:
http://forum.civicrm.org/index.php/topic,6996.0.html

How does menu rebuild work? I think I'll have to trace through the code to solve this.

Many thanks
« Last Edit: December 22, 2009, 03:23:39 am by Margal »

Margal

  • Guest
SOLVED: Can't rebuild menu following move
December 22, 2009, 03:22:53 am
I finally managed to clear the menu cache so the database now seems to have been successfully moved.

After over a day of trying to understand the civiCRM menu system I finally found a menu rebuild link that works:
http://<baseurl>/index.php?q=civicrm/menu/rebuild&reset=1

With this you are returned to the civiCRM home page with a nice "menu has been rebuilt" message and the menus all work now - phew!

Found the correct link here: http://www.journeymm.com/blogs/drupal/clearing-civicrm-cache
Thank you so much Journey Multimedia!

What's the difference? the "&" instead of the "?'

The published one: http://wiki.civicrm.org/confluence/display/CRMDOC21/Moving+an+Existing+Installation+to+a+New+Server+or+Location)

DOES NOT WORK, you are just taken to the civiCRM home page with no other message.
Published url - "Drupal sites:  http://<drupal_site>/civicrm/menu/rebuild?reset=1"

For my site I used:
                   http://<baseurl>/index.php?q=civicrm/menu/rebuild?reset=1
(I had tried http://<baseurl>/civicrm/menu/rebuild?reset=1 at first but clearly that didn't work as that is not the directory structure.)

So any one know what I should have done to get "/civicrm/menu/rebuild?reset=1" to work. I think this information should be added to the CRMDOC as it's caused me a lot of time and pain.

I'll make comments where I can to help others.

I'm using a Mac OS 10.5.8

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can't rebuild menu following move
December 22, 2009, 05:49:33 am

i've updated the docs for the upcoming version.

This has to do with clean urls in drupal and url arguments etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Margal

  • Guest
Re: Can't rebuild menu following move
December 24, 2009, 02:55:59 am
Hi Lobo,

Thanks for making the Doc change.

I wondered if the difference was due to clean URLs but I thought they didn't include ampersands due to this quote I found:
Quote
Clean URLs—that is, those devoid of question marks, ampersands, or other strange characters
http://ostatic.com/files/prodrupal.pdf page 2

Thinking about your comments I guess the published URL "http://<drupal_site>/civicrm/menu/rebuild?reset=1" is a mixture of the clean Drupal URL and the civiCRM "?" argument. My Drupal has clean URLs disabled so my version of the link had two "?" arguments, which did look dodgy. So using the "&reset=1" is the way round it.

Interesting ... and now I see 3.1 beta 3 is released today (http://civicrm.org/node/680). I'm away to upgrade the test site now and looking forward to trying out the contact subtypes.

Many thanks

Margal
« Last Edit: December 24, 2009, 03:06:54 am by Margal »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Can't rebuild menu following move

This forum was archived on 2017-11-26.