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 (Moderator: Dave Greenberg) »
  • Navigation Menu page not loading properly
Pages: [1]

Author Topic: Navigation Menu page not loading properly  (Read 1855 times)

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Navigation Menu page not loading properly
June 05, 2011, 09:05:28 am
I have three CiviCRM sites that I look after (and have admin access to all of them) and when I try the URL.. /civicrm/admin/menu?reset=1 on any of them the page does not load properly.  Instead I get a screen per the attached screenshot.  The "Loading" box animates indefinitely, and it makes no difference which browser I use (I have Firefox 4.0.1 and IE 9.0).

All three sites are on the same server.
I am pretty sure that this feature used to work, so I wonder if this could be some weird configuration issue with the server that it is hosted on?  Is that possible?

Thanks
Mark

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Navigation Menu page not loading properly
June 07, 2011, 04:22:28 am
Sorry, no solution. I have a similar problem.

I am using CiviCRM 3.3.5 on Drupal 6.20 and recently migrated the site root from a subdomain to https (no www). Initially I had loads of problems but these were fixed by resetting all the settings (can't remember what URL I used). I also used another URL to rebuild the menu system as this was using old links.

The page loads fine on all browsers (and checks are okay in Firebug). However, the " Loading " animation does not appear for me. The New Menu Item works normally.

Since it's been a while since I looked at this page, it may be as a result of something else.

(I am planning to upgrade at some point to the latest 3.x version, will that have the same issue?)
“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Re: Navigation Menu page not loading properly
June 07, 2011, 04:31:47 am
I am just about to upgrade to Drupal 6.22 and CiviCRM 3.4.2 and I will see if that fixes it.   :-\
I want to upgrade CiviCRM for another reason, anyway.

I'll post here with the results that I get.

Mark   :)

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Re: Navigation Menu page not loading properly
June 14, 2011, 07:38:36 am
OK, I upgraded to 3.4.2 (and Drupal 6.22) and it works.  :D

Mark

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Navigation Menu page not loading properly
June 14, 2011, 08:37:41 am
If you do have this issue, or it returns, use Firebug for Firefox and look at the Net tab and often you can see what is failing to load that way.
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.

Mark Tompsett

  • I post frequently
  • ***
  • Posts: 143
  • Karma: 9
    • QualityTime Services Ltd
  • CiviCRM version: 4.3.4
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.30-cll
  • PHP version: 5.3.23
Re: Navigation Menu page not loading properly
June 14, 2011, 02:50:52 pm
Thanks - good idea! 
I use Firefox and Firebug, so I'll try that if/when it ever happens again.

Mark   :)

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Navigation Menu page not loading properly
June 15, 2011, 10:27:31 am
I used your suggestion and used Firebug to investigate the cause of the error:

The only error detected by Firebug is on line 500 of the generated HTML page when the tree control is applying navigation settings loaded from the database.

Although I am sure that I followed the guides during my migration of CiviCRM from a subdomain to a sub-directory on https, I may have missed :'( the impact of this change on the civicrm_preferences table; particularly the navigation field.

Due to every path and url setting being changed, the contents of the navigation field for each record contains invalid URLs. (There are other dependencies elsewhere but these are easier to fix)

Although this would probably be corrected by doing a 'clean re-install', and database migration, there is presently too much risk.

Can I safely 'edit' / 'export/import' the preferences table? (with backup of course)
“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Navigation Menu page not loading properly
June 15, 2011, 02:56:14 pm
I would reset your config_backend with this:

UPDATE civicrm_domain SET config_backend = null;

and make sure your civicrm.settings.php is correct and check your Resource URLs page via the Global Settings in CiviCRM Admin, and also delete the files in default/files/civicrm/template_c
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.

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Navigation Menu page not loading properly
June 21, 2011, 04:56:42 am
Sorry about the late reply.

This did not work.

I also just noticed that when visiting the home page as an anonymous user, dashlets are visible but contain access denied pages rendered in each...!

Odd!
“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Navigation Menu page not loading properly
June 27, 2011, 01:15:46 am
Turns out there was more issues than I first thought; not just with the CiviCRM install :'( but with the server itself  >:( - thank heavens for backups ;D

This leaves a number of issues to be resolved, thinking I will start a new thread.

Looking at a comparison of the Navigation menu (menu, navigation, preferences) between the problem site and a new install on a new server, (mysqldump), it is obvious that something odd went wrong during a past upgrade or the migration... This and the issues that FastCGI and suexec cause.


“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

mcarson

  • I post occasionally
  • **
  • Posts: 110
  • Karma: 5
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.x
  • MySQL version: 5.5
  • PHP version: 5.4.22
Re: Navigation Menu page not loading properly
June 28, 2011, 04:42:54 am
Solved! (still in maintenance mode though)

The errors in the previous posts' attachment was related to ACL records and permissions (and another problem running out of quota'd file system space)

I completely reconfigured the web server, checking Plesk's FastCGI/suExec configuration and wrote a script to ensure permissions are always correct. Also allowing .htaccess files to be read. A few changes for include paths.

Since the system was already broken, with backups in a safe place, I had nothing to lose (except 18hrs - and hair!)
  • Emptied the Drupal database of all modules and caches ensuring NO references to CiviCRM!!!
  • Deleted every customisation in Drupal, deleting the remaining directories for modules.
  • Stripped the CiviCRM database of custom navigation entries and caches
  • Emptied the ACL tables, and all references (groups, etc.)
  • Cleared the cache_date for groups
  • Emptied civicrm_uf_match
  • Deleted non-default entries from the preferences tables
  • Set the config_backend to NULL!
  • Removed custom entries from option_values, including all custom reports (this is easily restored)
  • Checked paths for custom files and directories
  • Changed all links to images originally in the subdomain to the respective new path.
  • Cleared the filesystem caches
  • Restored ACL related data from the sql directory (I will have to redo all ACL again... :shrug:)
  • Done a final check on related data, just in case I make it worse
  • Enabled CiviCRM module in Drupal
I fixed a few Error 500's that were directly related to permissions, got CiviCRM displayed  ;D
I turned on debugging and full mysql database logging (massive file!)

Still testing, adding, editing, deleting throughout CiviCRM.

I fixed the navigation menu that was still broken by referring to the Smarty cached php file:
Code: [Select]
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'htxt', 'CRM/Admin/Page/Navigation.hlp', 26, false),array('block', 'ts', 'CRM/Admin/Page/Navigation.hlp', 28, false),)), $this); ?>
and referencing the code in CRM/Admin/Page/Navigation.hlp:
Code: [Select]
    /**
     * Browse all menus
     */
     function browse(  ) {
         // assign home id to the template
         $homeMenuId = CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_Navigation', 'Home', 'id', 'name' );
         $this->assign( 'homeMenuId', $homeMenuId );
     }
Noticed that I did not have the Home entry in the navigation table, added it by executing the following on the database:
Code: [Select]
INSERT INTO civicrm_navigation
 ( domain_id, label, name, url, permission, permission_operator, parent_id, is_active, has_separator, weight )
VALUES
 ( 1, 'Home', 'Home', 'civicrm/dashboard&reset=1', NULL, '', NULL, 1, NULL, 0);
Viola! Navigation customisation now working.

In an earlier version of CiviCRM (3.1.3 =, I think), I removed the 'Home' item using the customise CiviCRM navigation page because I was using the CiviCRM index page as the home page for Drupal. Since then, this page has been broken.

Is this a bug? I have reproduced this by deleting the Home menu item again, fixed by reinserting the SQL. (using 3.3.5). I don't want to break your testing area by testing if it still exists...

----- Update:

Testing in CiviCRM checks out with no errors on any create, edit, delete.
A few problems re-enabling the CiviCRM Roles Sync module where, first the table already exists, then when it doesn't. Turns out that I 'forgot' to update mysql privileges ::) after re-configuring MySQL

Getting a few errors in the file system - permissions and options directives! Better keep an eye on it.

----- Update:

On track to migrate this very strange install into a clean CiviCRM, this should get rid of all errors... (1am here; be 5am before I finish)

Closing this post...



« Last Edit: June 29, 2011, 04:58:13 pm by mcarson »
“Anyone who has never made a mistake has never tried anything new.” - Albert Einstein
"If you are travelling at the speed of light and you turn on your headlights, would they work?" - Unknown

repostor

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
Re: Navigation Menu page not loading properly
July 25, 2011, 12:19:08 pm
I have the same problem on a fresh new installed CiviCRM 3.4.4
The menus are not working at all.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Navigation Menu page not loading properly
July 26, 2011, 02:32:25 am
repostor, do you see any errors? Look with Firebug in Firefox for JS errors.
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 »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Navigation Menu page not loading properly

This forum was archived on 2017-11-26.