It has been suggested that I may need to allow anonymous users to view profiles. I am running CiviCRM on a WordPress site.
From what I'm reading here ...
https://wiki.civicrm.org/confluence/display/CRMDOC/Linking+Profiles
... I'm gathering that this may only be possible on Drupal, not WordPress. Is that correct?
If so, is it the case that non-logged-in users on WordPress are automatically allowed to view profiles?
I'm using the profile to create a public directory: 1) Create a number of custom fields 2) Create a profile ("Trainers and Coaches", gid=17) that includes those custom fields, as well as some standard fields like First Name, Last Name, etc. 3) Create a front-end profile view.
This works when I'm logged in to WordPress. (Though I had some questions about inconsistent results when clicking on fields in the profile view.)
When not logged in to WordPress, I get errors.
Using a shortcode: [civicrm component="profile" gid="17" mode="search" hijack="0"]
I get:
Sorry but we are not able to provide this at the moment.
The requested Profile (gid=17) is disabled OR it is not configured to be used for 'Profile' listings in its Settings OR there is no Profile with that ID OR you do not have permission to access this profile. Please contact the site administrator if you need assistance.
(The profile is not disabled and is configured for use with Standalone Form or Directory
and Search Views
, so I guess permissions are the remaining option.)
If I use this: http://mysite.org/trainers-coaches/?page=CiviCRM&q=civicrm/profile&reset=1&force=1&gid=17
I get:
Sorry but we are not able to provide this at the moment.
We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.<br /><br />Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.<br /><br />Error type: Could not find a valid session key.
(Cookies are enabled, I've tried Chrome and Safari in OSX, and Chrome and IE in Windows, with the same results. And the URL defined in WordPress is http://mysite.org
.)
Any help will be greatly appreciated!
Wordpress 4.7.5 CiviCRM 4.7.17