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 »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Civi profile results not accessible from Joomla front end if not logged in
Pages: [1]

Author Topic: Civi profile results not accessible from Joomla front end if not logged in  (Read 5180 times)

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Civi profile results not accessible from Joomla front end if not logged in
May 22, 2012, 09:23:33 am
I am running J2.5.4 and Civi 4.1.2 - two great projects!  I have built a profile for a group listing.  I need to have it available to everyone who visits the site, and not have to be registered or logged in.  However, if I am not logged in to the Joomla front end, it will not display.  Once I log in, it displays (sort of - see below).  I have set Joomla Access in CiviCRM to allow "Public" to view the profile.  Is there something else I am missing?


Part 2:  Even when logged in, I get an error (see attached image).  If I click on the link "back to listings", I get the member list.


Thanks in advance!
Craig


tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 23, 2012, 11:36:24 am
Any ideas on these issues (part1 and part 2)? 

Part 1) I know the documentation states that profile listings for non-registered (Public) site visitors are not supported under Joomla (unlike the "anonymous" visitors under Drupal).  However the documentation references seem to be old in nature, as they refer to J1.5, and "when J.16 is available".  Since CiviCRM now seems to support Joomla ACL, should this not work for "Public" visitors?

Part 2) Even when signed on as Joomla "Super User", I still get the message in the previous post attachment.  It states I do not have permission to view the contact, but I am only presenting a list of members in a particular group, not looking at a particular contact.  When I click on the "back to listing" link, the list displays fine.

Thanks!

Craig

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civi profile results not accessible from Joomla front end if not logged in
May 23, 2012, 12:03:09 pm

I just did a quick check on the demo server and seems to work, check:

http://joomla.demo.civicrm.org/index.php/component/civicrm/?task=civicrm/profile&gid=1&reset=1&force=1

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 23, 2012, 01:41:08 pm
Hi Lobo,

The link that is generated from my menu link to the name and address list is:

http://whitakerweb.net/hen2/index.php?option=com_civicrm&view=Profiles&layout=view&Itemid=523

It is quite different than the url you show for the demo site.  I suspect for my "part 2" question, it is trying to pick up the "523" in the url as a Contact ID.

I do not have options when in the menu config to select force, reset, or search, nor to exclude the menu Itemid.

Steps I have taken since your post:

1) Checked the CiviCRM demo site Joomla ACL settings for "Public".  Interestingly all of the ACLs are set to "Allow", except for "View Profile Listings and Forms".   I set mine up the same way just to check, but it did not help.

2) I ran your url for the demo site, replacing the domain and the gid with my own, and it would only bring up the Home page (as if request was denied or something, but no error msgs).

http://whitakerweb.net/hen2/index.php/component/civicrm/?task=civicrm/profile&gid=11&reset=1&force=1

3) I tried to run the same as number 2, but used it in an article with an <emded src ...> command, but did not work either.

I appreciate your assistance.  This is driving me crazy.

BTW - what a great project CiviCRM is!  Thank you for all you do to make it available.

Craig

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 23, 2012, 03:19:25 pm
Lobo,

I was able to get the following to work, if I put it in an iframe wrapper menu item, or in an article with the <embed src...> html command.

http://whitakerweb.net/hen2/index.php?option=com_civicrm&task=civicrm/profile/&gid=11&force=1&search=0&crmRowCount=100&snippet=2

However, when I select the "View" link from a contact in the member listing, it rendersthe website's header and footer section along with the contact view.  Then when I hit the "Back to Listing" link, it goes back to the list, but also has the page header and footer with it, so essentially doubling the header/footer, because it is already there once from the initial load.

You can see this if you click on the link above.

Thanks!
Craig

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civi profile results not accessible from Joomla front end if not logged in
May 23, 2012, 08:31:16 pm

Sorry, not sure what is happening on your site and why. You'll need to debug and figure out whats happening

If you do find out, please update this topic so others can benefit

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civi profile results not accessible from Joomla front end if not logged in
May 24, 2012, 10:34:00 am
Craig - Check the permissions for "CiviCRM: profile view" for Public user group (and for other groups). Needs to be allowed in order to not get that access denied error after submitting a profile form.

CiviCRM > Administer > Users and Permissions > Joomla Access Control
Protect your investment in CiviCRM by  becoming a Member!

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 24, 2012, 08:03:41 pm
Hi Dave - Yes, I had this Joomla ACL set to allowed.  In fact, I have turned all CiviCRM Joomla ACL functions for Public to allowed for now.

The website I am building is:  http://whitakerweb.net/hen2

I have tried to set this up two ways for testing. 
1) A Joomla menu item, selected as "Profile View Page".  This is the "Leadership" menu item under "About Us".  If I am not logged in to Joomla, I receive the error in the attachment Joomla-menu-item-not-logged-in.png  no access at all, seems to be looking for a particular ID??
If I am logged in, I get a different error, but it has a "Back to Listings" link, and if I click that, the directory shows up as desired.  Again, it seems to be indicating that the Admin ID I am logged in with does not have access to an ID ??  See attachment Joomla-menu-item-logged-in.png

2) I also set up a Joomla menu item pointing to an iFrame wrapper, with a url of:
http://whitakerweb.net/hen2/index.php/component/civicrm/task=civicrm/profile&force=1&gid=11&search=0&reset=1&crmRowCount=100&snippet=2

This works whether I am logged in or not, with no errors, however it produces a doubled header/footer after you select "View" from the directory and then also click "Back to Listing".  See attached file: Joomla-iFrame-wrapper.png
Notice I had to put the "snippet=2" parameter on the url, or it would produce the double header/footer on the first time running it.

I am selecting a regular CiviCRM Group, not a Smart Group.  Would that matter?

I really don't know where to go with this.  Is there any debugging I can do?  Is there a place I could just add the "snippet=2" code so that views always left off the template header/footer?

I appreciate any help!
Craig

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 24, 2012, 08:04:55 pm
Last image from previous post.  Joomla-iFrame-wrapper.png

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civi profile results not accessible from Joomla front end if not logged in
May 28, 2012, 01:41:57 pm
Not sure why the menu approach isn't working, but this is the correct URL format for calling the search results directly - and it seems to be working fine (both the listing and the "view" pages):

http://whitakerweb.net/hen2/index.php?option=com_civicrm&task=civicrm/profile&gid=11&reset=1&force=1
Protect your investment in CiviCRM by  becoming a Member!

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 28, 2012, 07:12:16 pm
Thanks for the reply Dave.  Some of the Joomla Menu Type options for CiviCRM work, but others do not.  I installed a fresh copy of Joomla 2.5.4 and CiviCRM 4.1.2 with nothing else just to see if there might be some conflict in other components, modules or templates, etc.  But the same behavior is occurring in that environment.
I noticed the CiviCRM Joomla demo site uses links to the CiviCRM functions, not menu items.  I'm wondering if there are bugs.
Anyway, I am making things work with links where needed, except for when I display a member list from CiviCRM.  I noted previously what happens when clicking the "View" link on one of the member detail lines and then try to come back.  It loses some of the original url and causes issues.

Question:  Is there a way to turn off the "View" link that shows up at the end of a member line in the member listing?  That would solve my immediate need.

Thanks again!
Craig

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civi profile results not accessible from Joomla front end if not logged in
May 29, 2012, 10:45:14 am
Just tried clicking view from the listing URL above, and then clicking "Back to Listings" link and it all worked as expected (no errors).
Protect your investment in CiviCRM by  becoming a Member!

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Civi profile results not accessible from Joomla front end if not logged in
May 29, 2012, 12:21:37 pm
Dave,

Sorry, I should have been more specific.  It is when you are in the "View" detail screen, after having clicked View, and then click on on of the detail fields, like Compnay, for instance.  Then try to navigate back to the full member list.  I read where I can change the fields to "Public Pages" from "Public Pages and Listings", and that would keep the fileds from being searchable in the detail view.  Will try tonight.  If that works, I am good to go.

Thanks again for taking your time to assist.
Craig

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Civi profile results not accessible from Joomla front end if not logged in
May 29, 2012, 02:11:23 pm
Yes. That will remove the "search for other records w/ this property" links.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Civi profile results not accessible from Joomla front end if not logged in

This forum was archived on 2017-11-26.