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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • SOLVED: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
Pages: [1]

Author Topic: SOLVED: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]  (Read 2262 times)

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
SOLVED: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 22, 2011, 10:44:28 pm
Hi all,

Yesterday I upgraded Drupal from 6.20 to 6.22. Upon completion, CiviCRM 3.3.5 page layout was completely broken; the navigation menu that traverses the top of the screen was instead displayed as a mess of links down the left-hand side of the page, a problem observed in both Firefox on one machine and Firefox and Chrome on another. The dashboard suggested that JavaScript wasn't enabled, despite JavaScript confirmed as enabled on at least one of the machines.

I then decided to try upgrading to a more recent version of CiviCRM, 3.4.3, to see if that fixed the problem. Following the instructions at wiki.civicrm.org/confluence/display/CRMDOC40/Upgrade+Drupal+Sites+to+3.4, the upgrade proceeded as planned until step 8, "Run the Upgrade script". Confirming that Drupal "clean URLs" are enabled, I tried opening the URL:

http://<your_drupal_home>/civicrm/upgrade?reset=1

(replacing "<your_drupal_home>" appropriately, of course), only to receive a blank page. Checking the Drupal Status page, which informed me:

"warning: include_once(CRM/Core/Config.php) [function.include-once]: failed to open stream: No such file or directory"

and that I should check that the value of the $civicrm_root variable in drupal/sites/default/civicrm.settings.php is correct, which it is. I also confirmed that CRM/Core/Config.php exists.

Some research via Google suggested modifying the file drupal/sites/all/modules/civicrm/civicrm/install/index.php and replacing the text DIRECTORY_SEPARATOR with '/', which I did thus:

 if ( stristr( PHP_OS, 'WIN' ) ) {
    define( 'CIVICRM_DIRECTORY_SEPARATOR', '/' );
} else {
    define( 'CIVICRM_DIRECTORY_SEPARATOR', '/' );
}

given that this installation is running on a Unix-type server. Trying to run the 'upgrade' URL of step 8 now produces a "Page not found" error.

I have verified that all relevant file ownerships and permissions are correct. I have also tried deleting the templates_c folder and its contents, and recreating it - with the correct ownerships and permissions - without success.

Any suggestions as to how to proceed would be much appreciated!


Alexis.
« Last Edit: June 27, 2011, 08:43:56 pm by zbgc »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Blank pages whilst trying to upgrade from 3.3.5 to 3.4.3
June 23, 2011, 04:31:58 am
Did you clear all caches in Drupal?

Two other ideas are:

1. Disable CiviCRM on the Drupal modules page and then re-enable. You don't have to install CiviCRM for this, just adjust the checkboxes on that page.

If that fails:

2. Try renaming your civicrm.settings.php file and reinstalling CiviCRM into a new database. Then if it works, change the DB connect string in the new civicrm.settings.php file to your original DB and then FIRST THING, run the upgrade script.
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.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Blank pages whilst trying to upgrade from 3.3.5 to 3.4.3
June 23, 2011, 07:16:56 am
@ Hershel:

Yes, I had cleared all caches; my apologies for not mentioning that in my original post.

However, disabling and then re-enabling the CiviCRM module worked - it allowed the upgrade process to proceed and complete, and 3.4.3 is now running.

That's the good news. The bad news is that the upgrade didn't fix the original problem; a screenshot of what I'm seeing is available at imgur.com/CChZp . That page is also taking an quite a long time to finish loading - nearly 70 seconds, compared to non-CiviCRM Drupal pages, which load up within less than 10 seconds.

Thanks for your help so far!


Alexis.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Blank pages whilst trying to upgrade from 3.3.5 to 3.4.3
June 23, 2011, 07:21:12 am
Use shift refresh (hold down shift and click Refresh on your browser) to load new CSS. I think that will fix the rendering issue.

Regarding the speed, CiviCRM is a very resource-intensive package, as noted on the About CiviCRM page http://civicrm.org/aboutcivicrm , and not all shared hosts can handle it.
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.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Blank pages whilst trying to upgrade from 3.3.5 to 3.4.3
June 23, 2011, 04:26:54 pm
@ hershel,

No, unfortunately, asking the browser to refresh the page doesn't fix the problem; neither does selecting the "Refresh Dashboard Data" link. Additionally, I have again gone through the process of both clearing Drupal's caches and emptying the templates_c folder.

In terms of load times, I don't believe this to be a hosting issue, as, prior to upgrading Drupal from 6.20 to 6.22, CiviCRM loaded up similarly quickly to other non-CiviCRM pages on this host. The long load times have only appeared with Drupal6.22+CiviCRM3.3.5 and Drupal6.22+CiviCRM3.4.3.


Alexis.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 12:32:54 am
Just wanted to add that I've also tried manually requesting a menu rebuild; I've got a message saying the rebuild was successful, but unfortunately, the navigation menu is still broken and unusable.


Alexis.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 06:35:43 am
Another update:

I've been using HttpFox to observe request/response traffic when loading up the CiviCRM dashboard. All GET requests for resources under /drupal/sites/all/modules/civicrm/ are returning a 404 response, which explains why (a) CiviCRM is taking so long to load, (b) the navigation menu layout is broken and (c) the loaded page states "Javascript must be enabled in your browser in order to use the dashboard features". The resources being requested are definitely there, and I can confirm the 404 responses are specific to CiviCRM rather than Drupal in general: the Drupal admin pages are still accessible.

Any suggestions as to what might be causing this?


Alexis.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 06:39:35 am
If direct references to JS or CSS files are getting a 404 then this is an issue on your server. Perhaps there's no public read access to those files?
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.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 07:07:46 am
@ hershel:

Yes indeed; but why would this be the case? That is: We had a working CiviCRM installation, upgraded from Drupal 6.20 to 6.22, and now those files aren't accessible. I did a diff on the Drupal .htaccess file between 6.20 and 6.22, and the settings are apparently identical. I've also confirmed that the ownership and permissions of the /drupal/sites/all/modules/civicrm/ directory and its subdirectories are correct. Is/are there one or more settings elsewhere that I also need to be checking?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 07:52:43 am
Check manually by putting into your browser, for example:

mysite.com/sites/all/modules/civicrm/packages/jquery/jquery.js

and see if it comes up in your browser. It should.
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.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 04:46:11 pm
@ hershel:

No, trying to access:

[mysite.com]/drupal/sites/all/modules/civicrm/packages/jquery/jquery.js

returns a 404.

zbgc

  • I’m new here
  • *
  • Posts: 18
  • Karma: 0
  • CiviCRM version: 3.4.5
  • CMS version: Drupal 6.22
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: SOLVED: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 27, 2011, 08:53:00 pm
Checking my server logs, I saw the message:

  /drupal/sites/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

which is misleading, as there is actually no .htaccess file in that directory. The problem was that the sites/ directory and some of its subdirectories had permissions 770 (rwxrwx---) rather than 775 (rwxrwxr-x). Changing the permissions accordingly fixed the issue.

Thanks @hershel for working with me on this!


Alexis.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: SOLVED: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]
June 28, 2011, 03:00:08 am
My pleasure. Glad you got it working.
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.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • SOLVED: Broken navigation menu layout with Drupal 6.22 [was: Blank pages ...]

This forum was archived on 2017-11-26.