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) »
  • User Dashboard Link woes
Pages: [1]

Author Topic: User Dashboard Link woes  (Read 1511 times)

RegB

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.20
  • MySQL version: 5.1.66
  • PHP version: 5.3.19
User Dashboard Link woes
November 24, 2012, 05:00:38 pm
First, I’m new to CiviCRM and Drupal.  I am still configuring/tweaking my first site which is scheduled to go to production in two weeks.  We have installed Drupal 7, CiviCRM 4.1.5, and we are using Organic Groups. 

I have added a link for CiviCRM’s User Dashboard (?q=civicrm/user) to Drupal’s default “User  Menu.”  The Drupal theme I’m using places the content of this menu in a secondary menu at the top of the page.  It contains three links:  the CiviCRM Dashboard, Logoff, and “My [Drupal] Account.”

The problem – my new link to the User Dashboard is displayed to the public.  When they click the link, they receive a 403 Error (Access Denied).  The other links in the User Menu are only shown to authenticated users.  After you login, my new link works perfectly.

I’m not really sure why this is happening, but I think it is because Drupal does not recognize the User Dashboard as a restricted page.   

Am I missing a configuration step somewhere? 

Many thanks to for any help!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: User Dashboard Link woes
November 24, 2012, 05:39:36 pm
One approach is to use the 'Contact Dashboard' block which is automatically installed when you install CiviCRM in a Drupal site. The block contains the link to the user dashboard and can / should be configured to be shown only to authenticated role (not to anonymous).
Protect your investment in CiviCRM by  becoming a Member!

RegB

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.20
  • MySQL version: 5.1.66
  • PHP version: 5.3.19
Re: User Dashboard Link woes
November 24, 2012, 09:16:24 pm
Thanks!  After a little more research, I am guessing you mean /q=civicrm/contact ?  I do not find anything on the menu called "Contact Dashboard".  (I really am very new to CiviCRM, LOL!)  Unfortunately, this dashboard does not show the type of information we what our members to see.  They should only see personal information -- nothing with totals, etc.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: User Dashboard Link woes
November 24, 2012, 09:17:50 pm
Reg - hi  - Is there an important reason you are not working on the latest version? I would recommend you upgrade if not so you don't hit issues that have already been resolved
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

RegB

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.20
  • MySQL version: 5.1.66
  • PHP version: 5.3.19
Re: User Dashboard Link woes
November 25, 2012, 05:57:52 pm
I was looking at the latest version just the other day.  To be honest, I've very confused by the  instructions for upgrading.  A few months ago when we installed CiviCRM, we did install the latest version.  I'll check again.  I did not find this issue on the list.  Thanks for letting me know.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: User Dashboard Link woes
November 25, 2012, 06:39:38 pm
Contact Dashboard is q=civicrm/user.  Go to Drupal > Administer > Blocks  (http://<your drupal site>/admin/structure/block) to find and enable the Contact Dashboard block to provide this link to logged in users.
Protect your investment in CiviCRM by  becoming a Member!

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: User Dashboard Link woes
November 26, 2012, 03:36:42 am
Quote
To be honest, I've very confused by the  instructions for upgrading.

it would be good to hear about what was confusing so we can improve the upgrade instructions based on your feedback.

michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

RegB

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.20
  • MySQL version: 5.1.66
  • PHP version: 5.3.19
Re: User Dashboard Link woes
November 26, 2012, 05:33:23 am
The confusion was caused by a bad link.  This has been reported and fixed. 

Thanks everyone for your help!  It looks like the best way to fix this problem is by upgrading.  I also found references to permission settings for this link which do not appear to be in my current version.

RegB

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.20
  • MySQL version: 5.1.66
  • PHP version: 5.3.19
Re: User Dashboard Link woes
November 29, 2012, 02:26:43 pm
The 4.2.6 upgrade did not fix this problem.  I have discovered that any CiviCRM link fails to be hidden from the public (civicrm, civicrm/contact, civicrm/contact/view, civicrm/user, etc). 

I've set permissions under Drupal's "people --> permissions" for "CiviCRM: access Contact Dashboard" to authenticated users and our membership groups.  This results in authenticated users and members accessing the page, anonymous user receive 403/access denied message -- but the public can see the link.  When I changed this to grant anonymous users access to the Contact Dashboard -- there is no change.  Anonymous users still receive 403 error messages.

Is this the correct place for controlling access to the CiviCRM dashboards? 

Sometimes, my authenticated user receives the following error message when opening the dashboard:

Notice: Undefined index: 3 in _civicrm_member_roles_sync() (line 561 of /home/mysite/public_html/sites/all/modules/civicrm/drupal/modules/civicrm_member_roles/civicrm_member_roles.module).






Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: User Dashboard Link woes
November 29, 2012, 02:32:30 pm
Did you try using the "Contact Dashboard" block to provide links for authenticated users? Pretty sure that works and limits visibility to folks who should be able to see / use it. The only way that linking to Contact Dashboard makes sense and works for anonymous users is if you use CiviCRM's checksum-based authentication (which generates a temporary hash value in a URL sent via email from CiviCRM's Send Email to Contacts function).
Protect your investment in CiviCRM by  becoming a Member!

RegB

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.20
  • MySQL version: 5.1.66
  • PHP version: 5.3.19
Re: User Dashboard Link woes
November 29, 2012, 03:39:59 pm
Thanks!  Yes, that block works perfectly :)  We were trying to streamline our website's design by reducing that block to a single link in Drupal's User Menu block. 

It sounds like we need to take a different approach.  :(


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • User Dashboard Link woes

This forum was archived on 2017-11-26.