Answers.Body: <p>Place this in your functions.php file</p>
  
  <p>register_activation_hook( <strong>FILE</strong>, 'civicrm_activate');</p>
  
  <p>// Assign minimum capabilities for all wordpress roles and create anonymous_user' role
  civicrm_wp_set_capabilities();</p>
  
  <p>This only needs to run once per site to create the role.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-02T02:27:06.533Z
Answers.LastActivityDate: 2015-06-02T02:27:06.533Z
Answers.UserDisplayName: Adam
Answers.Body: <p>If you receive domain redirects, try something like this in your CiviCRM configuration:</p>
  
  <p>if (!defined('CIVICRM_UF_BASEURL')) {
    define( 'CIVICRM_UF_BASEURL'      , 'http://' . $_SERVER['SERVER_NAME'] . '/' );
  }</p>
  
  <p>I would probably only allow the domain in an array for security.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-02T02:29:13.547Z
Answers.LastActivityDate: 2015-06-02T02:29:13.547Z
Answers.UserDisplayName: Adam
Body: <p>Thought this would help someone else.</p>
  
  <p>I have one CiviCRM on a multi site installation and was obtaining "You do not have permission to access this page" when displaying a form on a second multi site.</p>
  
  <p>This appears the second site doesn't have the anonymous role setup per:
  <a href="https://civicrm.org/blogs/haystack/working-civicrm-46-wordpress" rel="nofollow">https://civicrm.org/blogs/haystack/working-civicrm-46-wordpress</a></p>
  
  <p>I will post the next post as the solution.</p>
  
Tags: <wordpress><multisite>
Title: Using Wordpress Event Registration forms on Multisite
ThreadText: # Using Wordpress Event Registration forms on Multisite
  
  (Asked by: username_0 on 2015-06-02)
  
  Thought this would help someone else.
  
  I have one CiviCRM on a multi site installation and was obtaining "You do not have permission to access this page" when displaying a form on a second multi site.
  
  This appears the second site doesn't have the anonymous role setup per:
  <https://civicrm.org/blogs/haystack/working-civicrm-46-wordpress>
  
  I will post the next post as the solution.
  
  **Tags:** wordpress, multisite
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-06-02. Score: 1
  
  Place this in your functions.php file
  
  register\_activation\_hook( **FILE**, 'civicrm\_activate');
  
  // Assign minimum capabilities for all wordpress roles and create anonymous\_user' role
  civicrm\_wp\_set\_capabilities();
  
  This only needs to run once per site to create the role.
  
  
  ---
  
  ### Answer by username_0 on 2015-06-02. Score: 1
  
  If you receive domain redirects, try something like this in your CiviCRM configuration:
  
  if (!defined('CIVICRM\_UF\_BASEURL')) {
  define( 'CIVICRM\_UF\_BASEURL' , 'http://' . $\_SERVER['SERVER\_NAME'] . '/' );
  }
  
  I would probably only allow the domain in an array for security.
  
  
  ---
  
  