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) »
  • Moved Drupal base directory - can no longer access CiviCRM menu
Pages: [1]

Author Topic: Moved Drupal base directory - can no longer access CiviCRM menu  (Read 2090 times)

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Moved Drupal base directory - can no longer access CiviCRM menu
May 24, 2013, 02:31:29 pm
All,

I had unintentionally installed Drupal in /drupal, so today, I decided to fix that problem. I moved all of the Drupal files to /, and other than a few linked files on content pages, everything is working properly. Except CiviCRM.

When I first accessed the Modules menu, two errors were shown. Based on the errors, I edited the files civicrm.setting.php in /sites/default, and one other file (forgot which), so that they pointed to the correct directories. However, even after these changes, I cannot access CiviCRM. Starting over is an option, but I would prefer to not do that. Can you offer any suggestions?

** update

I found a log file in /sites/default/files/civicrm/ConfigAndLog which has the following error message:

May 24 16:09:48  [info] $backTrace = #0 /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/Error.php(378): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(74): CRM_Core_Error::handleUnhandledException(Object(Exception))
#2 /home/mysite/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:1))
#3 /home/mysite/public_html/sites/all/modules/civicrm/drupal/civicrm.module(436): CRM_Core_Invoke::invoke((Array:1))
#4 [internal function](): civicrm_invoke()
#5 /home/mysite/public_html/includes/menu.inc(517): call_user_func_array("civicrm_invoke", (Array:0))
#6 /home/mysite/public_html/index.php(21): menu_execute_active_handler()
#7 {main}

** second update

I found a reference to /drupal/index.php in the database table civicrm_domain - it was the value assigned to the variable civiRelativeURL. I changed this value, forced cron to run, but this did not resolve the problem either.
« Last Edit: May 24, 2013, 03:32:11 pm by groston »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Moved Drupal base directory - can no longer access CiviCRM menu
May 25, 2013, 12:35:45 pm
See http://wiki.civicrm.org/confluence/display/CRMDOC43/Moving+an+Existing+Installation+to+a+New+Server+or+Location for how to adjust your settings.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Moved Drupal base directory - can no longer access CiviCRM menu
May 26, 2013, 01:31:44 pm
Hershel,

Thank you for the reply. Based on the post, I deleted the various log files and empty the cache tables in the DB. Once done, I was able to access the CiviCRM back-end by using the URL <mysite>/civicrm/admin. All of the items in the Configuration Checklist showed as not having been addressed, but no big deal.

However, I still cannot access the CiviCRM system by logging into Drupal as an administrator. Could you please suggest what might be necessary to re-enable this 'connection'?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Moved Drupal base directory - can no longer access CiviCRM menu
May 27, 2013, 01:58:23 am
I don't follow what the problem is. If you can access CiviCRM at <mysite>/civicrm/admin then what is that you can NOT access?

Are you just missing a link to CiviCRM?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Moved Drupal base directory - can no longer access CiviCRM menu
May 27, 2013, 07:04:25 am
Yes - I am just missing a link.

After first installing CiviCRM, when I logged into my site using the Drupal administrator credentials, there was a link to take me to the CiviCRM administration menu. That is the link that is no longer available.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Moved Drupal base directory - can no longer access CiviCRM menu
May 27, 2013, 07:35:36 am
See http://drupal.org/documentation/modules/menu
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

groston

  • I post occasionally
  • **
  • Posts: 61
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.5.34
  • PHP version: 5.3.27
Re: Moved Drupal base directory - can no longer access CiviCRM menu
May 27, 2013, 01:28:21 pm
Hershel

Thanks! Gotta love fully configurable/customizable systems.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Moved Drupal base directory - can no longer access CiviCRM menu

This forum was archived on 2017-11-26.