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) »
  • going from development to www url leaves me with some menus still pointing to...
Pages: [1]

Author Topic: going from development to www url leaves me with some menus still pointing to...  (Read 2398 times)

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
going from development to www url leaves me with some menus still pointing to...
September 29, 2008, 04:52:23 am
development
Seems somewhat random to me.
But I ran
civicrm/admin?sessionReset=2&directoryCleanup=1
Cleaned drupal sessions
Even cleaned the files/civicrm folder
Empty drupal cache

So it still goes from working to not to working here are some examples
1. if I am looking at a contact all links work
2. Recently Viewed menus work
3. All civicrm/admin still point to development
4. CiviCRM » View Contact » Search Results <--the breadcrumb is a mix CiviCRM points to development and the rest to www
5. CiviCRM Shortcuts Works
6. CiviCRM Menu goes to development
7. CiviCRM home menus on the  right
a. Menu goes to development
b. Shortcuts go to www
c. Advanced Search goes to www

Am I missing something?
Is it my browser? <--cleared cache

???
Thanks


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: going from development to www url leaves me with some menus still pointing to...
September 29, 2008, 05:25:18 am
Can you try accessing civicrm/menu/rebuild?reset=1 and see whether this helps?
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: going from development to www url leaves me with some menus still pointing to...
September 29, 2008, 05:45:53 am
That worked great!
Where can I post that for others?
Maybe in the upgrade area?
Any others areas that you can think of where I can put such a useful command?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: going from development to www url leaves me with some menus still pointing to...
September 29, 2008, 06:32:11 am
Quote from: alfred_nutile on September 29, 2008, 05:45:53 am
That worked great!
Where can I post that for others?

Menu rebuild is triggered by CRM_Core_Menu::store(), which should be called when you enable the CiviCRM Drupal module, as well as (indirectly, through CRM_Admin_Form_Setting::rebuildMenu()) when you save the Resource URLs admin page.

In general, any CiviCRM upgrade or any change to CiviCRM Resource URL should trigger the menu rebuild – if it’s not happening in some cases, that’s a bug, so we’d much rather fix that cases than post workarounds; menu rebuilding should be invisible to the user.

Note that in CiviCRM 2.2 all menu links will be relative, which will ease both moving existing CiviCRM installs and accessing the same CiviCRM install through different URLs.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

alfred_nutile

  • Ask me questions
  • ****
  • Posts: 464
  • Karma: 14
    • River Valley Tech Collective
Re: going from development to www url leaves me with some menus still pointing to...
September 29, 2008, 06:51:01 am
So next time I do a url conversion I need to disable and re-enable the civicrm module?

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: going from development to www url leaves me with some menus still pointing to...
September 29, 2008, 07:06:00 am
Quote from: alfred_nutile on September 29, 2008, 06:51:01 am
So next time I do a url conversion I need to disable and re-enable the civicrm module?

Visiting the Resource URLs admin page and saving it should be enough (as this should trigger menu rebuild); if this doesn’t work, it’s a bug.

(And yes, disabling and re-enabling the CiviCRM module should also trigger menu rebuild.)
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

darthcheeta

  • Guest
Re: going from development to www url leaves me with some menus still pointing to...
February 25, 2009, 11:59:28 am
this thread just saved me! thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • going from development to www url leaves me with some menus still pointing to...

This forum was archived on 2017-11-26.