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 »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • login box showing up in dashlet
Pages: [1]

Author Topic: login box showing up in dashlet  (Read 2205 times)

cfgregory

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.14
  • MySQL version: NA
  • PHP version: PHP 5.4
login box showing up in dashlet
October 10, 2012, 08:35:32 am
I was getting an error where most of my dashlets were showing the drupal login screen under the report header instead of the report. It seem to only affect reports I had created and only on the dashlet page. The reports show up fine when clicking full screen or from reports listing page.

After some playing around, I found the solution. In the table civicrm_report_instance, the field navigation_id was set to null for any reports that show this error. I set the value of this field to the matching row id in civicrm_navigation for that report. I clear the cache and reloaded the page. Everything now displays fine.

I am not sure how this value was set to null and I will keep an eye on it in the future. But I wanted to post the solution in case anyone else runs into this issue.

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: login box showing up in dashlet
October 10, 2012, 11:01:36 pm
I think if you use "Refresh Dashboard" link it should clear cached dashlets.

Kurund
Found this reply helpful? Support CiviCRM

vhlede

  • I’m new here
  • *
  • Posts: 9
  • Karma: 1
    • Chicago Veterinary Medical Association
  • CiviCRM version: CiviCRM 3.4.5
  • CMS version: Drupal 6.2.2
  • MySQL version: 5.2.17
  • PHP version: 5.0.91
Re: login box showing up in dashlet
February 04, 2013, 05:30:05 pm
Hi,
The same thing happened to me when 'www' was missing in civicrm.settings.php in this line:

define( 'CIVICRM_UF_BASEURL'      , 'http://www.mywebaddress.org/' );
Coming together is a beginning. Keeping together is progress. Working together is success.
- Henry Ford

Tiffani Chin

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.30
  • PHP version: 5.3.17
Re: login box showing up in dashlet
February 23, 2013, 09:34:58 pm
Same issue.

Tried vhlede's solution and it seemed to fix it.  We'll see if it causes any other issues.

Tiffani Chin

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.30
  • PHP version: 5.3.17
Re: login box showing up in dashlet
February 25, 2013, 02:12:38 pm
Just to follow up:

Adding the www on the base URL fixed the problem for some users and created a problem for others, depending on how they were accessing the site.

Explained further here:  http://issues.civicrm.org/jira/browse/CRM-8656

I went through the table did fix the navigation IDs that were missing (not sure if that made any difference), went back to the old base URL (no www), and asked our users to log in without the www.  This seems to have solved the problem.    It does seem to be, as lobo reports in the link above, a consistency issue.

Another note if people are having the same issue: my Firefox browser kept trying to put the www in for me when I typed the URL, which is why the suggestion above worked for the case I was testing on.  When I went back to the non-www base URL, I sent all of our users a direct link minus the www to help them avoid that problem.


MJCO

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviPal (CiviCRM + Drupal) lover
    • MJCO
  • CiviCRM version: 4.x
  • CMS version: Drupal 7.xx
  • MySQL version: 5.5
  • PHP version: 5.4
Re: login box showing up in dashlet
February 26, 2013, 06:47:47 pm
You can force this with Drupal using the following:

Drupal 7:

  • Open .htaccess file in a text editor located in Drupal installation directory (public_html)
  • Find following:
Code: [Select]
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# uncomment the following:
# RewriteCond %{HTTP_HOST} !^www\. [NC]
# RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  • Change to:
Code: [Select]
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# uncomment the following:
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  • Ignore the part that says WITH the 'www.' prefix there. It's incorrect as we've changed the code to do the opposite by removing the ! which indicates match URLs which do NOT start with (^) www.
MJCO

Tiffani Chin

  • I post occasionally
  • **
  • Posts: 101
  • Karma: 2
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 7.26
  • MySQL version: 5.5.30
  • PHP version: 5.3.17
Re: login box showing up in dashlet
March 01, 2013, 08:46:25 pm
Thanks for this. 

Keeping everything consistent definitely seems to be helping.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Pre-installation Questions (Moderator: Dave Greenberg) »
  • login box showing up in dashlet

This forum was archived on 2017-11-26.