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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • after standalone to drupal migration, duplicate menus
Pages: [1]

Author Topic: after standalone to drupal migration, duplicate menus  (Read 1424 times)

mr206

  • Guest
after standalone to drupal migration, duplicate menus
July 27, 2009, 10:25:14 am
After migrating from standalone to drupal, I find myself with what looks very much like most of my civicrm menus duplicated. Picture attached.

This is the very first thing that I've ever done using drupal, so this was not a question of installing civicrm on a pre-existing drupal site. I created a subdirectory just to hold drupal, and a civicrm database within that subdirectory. I duplicated the standalone database and pointed the drupal civicrm install to it.

Any thoughts?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: after standalone to drupal migration, duplicate menus
July 27, 2009, 05:04:58 pm
Looks like the codebase "thinks" you're still running standalone and hence is displaying "blocks" that are not needed in Drupal (since they are handled as separate Drupal blocks - as you see in your left-hand column).

First thing i'd check is our civicrm.settings.php file. CIVICRM_UF should be 'Drupal' and not 'Standalone'

define( 'CIVICRM_UF'               , 'Drupal'        );
Protect your investment in CiviCRM by  becoming a Member!

mr206

  • Guest
Re: after standalone to drupal migration, duplicate menus
July 28, 2009, 06:59:03 am
Yup,
define( 'CIVICRM_UF'               , 'Drupal'        );
is what my civicrm.settings.php file says.

What should I try next?

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: after standalone to drupal migration, duplicate menus
July 28, 2009, 10:46:38 am
I'd go through the steps in this doc - since you are changing the "environment". (You could start with setting civicrm_domain.config_backend = NULL step since I think that might do it). Once you figure out what's up - please add a note about this particular type of "migration" to the wiki page:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Protect your investment in CiviCRM by  becoming a Member!

mr206

  • Guest
Re: after standalone to drupal migration, duplicate menus
July 28, 2009, 12:33:17 pm
Interestingly, going through those steps fixed *another* problem I was having that I didn't bother to post about, but my duplicate menus are still duplicated.

mr206

  • Guest
Re: after standalone to drupal migration, duplicate menus
July 30, 2009, 09:02:38 am
I still haven't found the problem here, but I'm also noticing that my users cannot login with their open IDs, even though I have the OpenID module enabled in Drupal. I'm not sure if these are related.

When I created a Drupal userID and pw for a user and then tried to match it to his CiviCRM record I got this error:
Sorry. A non-recoverable error has occurred.

CMS user creation not supported for this framework

Return to home page.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: after standalone to drupal migration, duplicate menus
July 30, 2009, 10:46:23 am
Hmm - You're treading new ground with this migration and clearly something in your configuration "thinks" you're still running in standalone mode.

Based on a quick code review - it looks to me like your change to civicrm.settings.php is not being picked up
define( 'CIVICRM_UF'               , 'Drupal'        );

Possibly because you're not editing the settings file that the codebase is reading. You can verify this by "breaking" your settings file - removing a semi-colon to make the PHP invalid - and then reloading your site. If you don't get an error -then you need to find the correct copy of the settings file (by default for drupal installs this should be <drupal_root>/sites/default/civicrm.settings.php).
Protect your investment in CiviCRM by  becoming a Member!

Roland Heymanns

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
Re: after standalone to drupal migration, duplicate menus
August 10, 2009, 05:43:15 pm
I am running both standalone and Drupal concurrently and have the same problem, but have proof that civicrm.settings.php is being picked up with the right settings.

Have `solved` it, for the time being, by removing all CiviCRM blocks from the left sidebar in Drupal->Site building->Blocks.

I still have a variation of the problem with duplicate menus in CiviCRM (standalone and under Drupal - see attached screenshot).
« Last Edit: August 10, 2009, 06:54:12 pm by Roland Heymanns »

mr206

  • Guest
Re: after standalone to drupal migration, duplicate menus
August 11, 2009, 09:23:14 am
Great! I'm glad you proved the settings.php thing. I have temporarily abandoned the drupal migration because of this problem. There's too much I need to be *doing* in the database to spend so much time on this migration. Please keep me updated about this. I'm planning on restarting the migration in October or November.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • after standalone to drupal migration, duplicate menus

This forum was archived on 2017-11-26.