Answers.Body: <p>@petednz-fuzion pointed me in the right direction with this link:</p>
  
  <p><a href="https://civicrm.stackexchange.com/questions/7348/cannot-select-profile-for-online-event-registration-after-upgrading-civi-on-joom">cannot select profile for online event registration after upgrading civi on Joomla</a></p>
  
  <p>So it turns out it was the theme after all. I am using Ambition from <a href="https://www.themehorse.com/" rel="nofollow noreferrer">ThemeHorse</a> and when I tried switching the theme to see if it was a theme problem, I should've picked a default theme to test; I did not.</p>
  
  <p>The offending chunk of code was somewhere in here, in functions.php:</p>
  
  <pre><code>function ambition_load_files()
  </code></pre>
  
  <p>I basically took the same approach in the link from @petednz-fuzion to prevent loading the functions.php file. The problem is that if the theme's functions.php isn't loaded on front-end pages where CiviCRM data is displayed (like on an event page) then the page doesn't load. So I prevented the functions.php file from loading only on backend pages like this:</p>
  
  <pre><code>function ambition_load_files()
  {
  
      /**
       * ambition_add_files hook
       *
       * Adding other addtional files if needed.
       */
      do_action('ambition_add_files');
  
      /** Load functions */
      require_once (AMBITION_FUNCTIONS_DIR . '/i18n.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/custom-header.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/featured-content.php');
      require_once (AMBITION_ADMIN_DIR . '/ambition-metaboxes.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/custom-style.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/customizer.php');
  
      /** Load Footer Info */
      require_once (AMBITION_SHORTCODES_DIR . '/ambition-footer-info.php');
  
      /** Load Structure */
      require_once (AMBITION_STRUCTURE_DIR . '/header-extensions.php');
      require_once (AMBITION_STRUCTURE_DIR . '/footer-extensions.php');
      require_once (AMBITION_STRUCTURE_DIR . '/content-extensions.php');
  
      /** Load Widgets and Widgetized Area */
      require_once (AMBITION_WIDGETS_DIR . '/ambition-widgets.php');
  
      // ==========================================================================
      // We don't load functions.php if we're in the backend or else CiviCRM breaks
      $full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
      $uri = (parse_url($full_url, PHP_URL_PATH));
      if($uri == '/wp-admin/admin.php') {
          ; // don't include
      } else {
          require_once (AMBITION_FUNCTIONS_DIR . '/functions.php');
      }
      // ==========================================================================
  
  }
  </code></pre>
  
  <p>Now it's working like a charm.</p>
  
  <p>Thanks everyone for your help!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-20T20:30:15.203Z
Answers.LastActivityDate: 2017-03-21T13:38:46.383Z
Answers.LastEditDate: 2017-04-13T12:53:13.207Z
Answers.UserDisplayName: msw
Body: <h2>Installation Details</h2>
  <ul>
  <li>WordPress 4.7.3</li>
  <li>CiviCRM 4.7.17</li>
  <li>CiviVolunteer 4.6-2.2.1</li>
  <li>Angular Profiles 4.6-1.0.2</li>
  <li>SparkPost 1.1 (verified working)</li>
  </ul>
  <h2>Problem Description</h2>
  <p>I have a CiviEvent set up. I check the box to Allow Online Registration, and after filling everything in, it won't allow me to save the changes. It tells me that I need to select a profile, but the section under &quot;Include Profile (top of page)&quot; there is no form field, no popup, nothing. I tried turning off CiviVolunteer to see if that was conflicting, but no dice. I <strong>do</strong> have profiles created, but none are showing. (Again, no text field, no popup, etc.)</p>
  <p>EDIT: Added Screenshot
  <a href="https://i.sstatic.net/KF3yB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KF3yB.png" alt="screenshot" /></a></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-17T19:25:49.690Z
Comments.Text: This sounds very similar to http://civicrm.stackexchange.com/questions/9635/civievent-unable-to-select-profiles-get-custom-field-is-not-assigned-to-the/17723
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-17T19:26:28.937Z
Comments.Text: It would help if you provided more detail about your set up, or closed this and added your situation as a Comment (not an Answer) on the other ticket. thx
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-17T21:26:24.740Z
Comments.Text: If you are running Jetpack, it's possible that OpenGraph is interfering with the script running the page. I've had similar issues before. You can try, initially, disabling Jetpack and if that works, I would reenable it and try disabling OG with either a bit of code in your theme's functions.php file or by using a plugin.
Comments.UserDisplayName: Barbara Forbes-Lyons
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-18T15:44:44.750Z
Comments.Text: @petednz-fuzion How much more detail about my setup do you need? I gave you all the info about the WP & CiviCRM versions and CiviCRM extensions and their versions. My bug doesn't seem to be anywhere close to the other problem. They're running Joomla, I'm running WordPress; they're able to see the profiles though they haven't selected one, I can't even see the profiles to select them.
Comments.UserDisplayName: msw
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-18T15:45:38.423Z
Comments.Text: @BarbaraForbes-Lyons Not running Jetpack.
Comments.UserDisplayName: msw
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-18T23:01:15.720Z
Comments.Text: in hindsight my comment seems less than helpful, if the WP details where there when i wrote it then i must have been blind. apologies. I do feel i have seen other tickets very similar, including WP ones eg http://civicrm.stackexchange.com/questions/7348/cannot-select-profile-for-online-event-registration-after-upgrading-civi-on-joom (which has a WP 'me too"). They seem to suggest it is a theme conflict.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-19T18:44:00.553Z
Comments.Text: @petednz-fuzion Tried a different theme. No change.
Comments.UserDisplayName: msw
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-20T14:18:15.350Z
Comments.Text: It may be a WP plugin causing the issue. I have seen this with Jetpack. since you are not running that I would suggest disabling any other WP plugins to see if the drop down appears.
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-20T16:17:08.617Z
Comments.Text: @KilakwaBT Tried turning off WP plugins in batches of 4-5 until I had them all turned off... no change. :(
Comments.UserDisplayName: msw
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-03-20T19:21:49.223Z
Comments.Text: What theme are you using ad what other theme did you try?
Comments.UserDisplayName: KilakwaBT
Tags: <civievent><registration>
Title: Online Registration not able to be enabled
ThreadText: # Online Registration not able to be enabled
  
  (Asked by: username_0 on 2017-03-17)
  
  ## Installation Details
  
  * WordPress 4.7.3
  * CiviCRM 4.7.17
  * CiviVolunteer 4.6-2.2.1
  * Angular Profiles 4.6-1.0.2
  * SparkPost 1.1 (verified working)
  
  ## Problem Description
  
  I have a CiviEvent set up. I check the box to Allow Online Registration, and after filling everything in, it won't allow me to save the changes. It tells me that I need to select a profile, but the section under "Include Profile (top of page)" there is no form field, no popup, nothing. I tried turning off CiviVolunteer to see if that was conflicting, but no dice. I **do** have profiles created, but none are showing. (Again, no text field, no popup, etc.)
  
  EDIT: Added Screenshot
  [![screenshot](https://i.sstatic.net/KF3yB.png)](https://i.sstatic.net/KF3yB.png)
  
  **Tags:** civievent, registration
  
  > **Comments:**
  > **username_1**: This sounds very similar to http://civicrm.stackexchange.com/questions/9635/civievent-unable-to-select-profiles-get-custom-field-is-not-assigned-to-the/17723  
  > **username_1**: It would help if you provided more detail about your set up, or closed this and added your situation as a Comment (not an Answer) on the other ticket. thx  
  > **username_2**: If you are running Jetpack, it's possible that OpenGraph is interfering with the script running the page. I've had similar issues before. You can try, initially, disabling Jetpack and if that works, I would reenable it and try disabling OG with either a bit of code in your theme's functions.php file or by using a plugin.  
  > **username_0**: @petednz-fuzion How much more detail about my setup do you need? I gave you all the info about the WP & CiviCRM versions and CiviCRM extensions and their versions. My bug doesn't seem to be anywhere close to the other problem. They're running Joomla, I'm running WordPress; they're able to see the profiles though they haven't selected one, I can't even see the profiles to select them.  
  > **username_0**: @BarbaraForbes-Lyons Not running Jetpack.  
  > **username_1**: in hindsight my comment seems less than helpful, if the WP details where there when i wrote it then i must have been blind. apologies. I do feel i have seen other tickets very similar, including WP ones eg http://civicrm.stackexchange.com/questions/7348/cannot-select-profile-for-online-event-registration-after-upgrading-civi-on-joom (which has a WP 'me too"). They seem to suggest it is a theme conflict.  
  > **username_0**: @petednz-fuzion Tried a different theme. No change.  
  > **username_3**: It may be a WP plugin causing the issue. I have seen this with Jetpack. since you are not running that I would suggest disabling any other WP plugins to see if the drop down appears.  
  > **username_0**: @username_3 Tried turning off WP plugins in batches of 4-5 until I had them all turned off... no change. :(  
  > **username_3**: What theme are you using ad what other theme did you try?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2017-03-20. Score: 0 | Accepted answer
  
  @petednz-fuzion pointed me in the right direction with this link:
  cannot select profile for online event registration after upgrading civi on Joomla
  So it turns out it was the theme after all. I am using Ambition from ThemeHorse and when I tried switching the theme to see if it was a theme problem, I should've picked a default theme to test; I did not.
  The offending chunk of code was somewhere in here, in functions.php:
  function ambition_load_files()
  
  I basically took the same approach in the link from @petednz-fuzion to prevent loading the functions.php file. The problem is that if the theme's functions.php isn't loaded on front-end pages where CiviCRM data is displayed (like on an event page) then the page doesn't load. So I prevented the functions.php file from loading only on backend pages like this:
  function ambition_load_files()
  {
  
      /**
       * ambition_add_files hook
       *
       * Adding other addtional files if needed.
       */
      do_action('ambition_add_files');
  
      /** Load functions */
      require_once (AMBITION_FUNCTIONS_DIR . '/i18n.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/custom-header.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/featured-content.php');
      require_once (AMBITION_ADMIN_DIR . '/ambition-metaboxes.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/custom-style.php');
      require_once (AMBITION_FUNCTIONS_DIR . '/customizer.php');
  
      /** Load Footer Info */
      require_once (AMBITION_SHORTCODES_DIR . '/ambition-footer-info.php');
  
      /** Load Structure */
      require_once (AMBITION_STRUCTURE_DIR . '/header-extensions.php');
      require_once (AMBITION_STRUCTURE_DIR . '/footer-extensions.php');
      require_once (AMBITION_STRUCTURE_DIR . '/content-extensions.php');
  
      /** Load Widgets and Widgetized Area */
      require_once (AMBITION_WIDGETS_DIR . '/ambition-widgets.php');
  
      // ==========================================================================
      // We don't load functions.php if we're in the backend or else CiviCRM breaks
      $full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
      $uri = (parse_url($full_url, PHP_URL_PATH));
      if($uri == '/wp-admin/admin.php') {
          ; // don't include
      } else {
          require_once (AMBITION_FUNCTIONS_DIR . '/functions.php');
      }
      // ==========================================================================
  
  }
  
  Now it's working like a charm.
  Thanks everyone for your help!
  
  
  ---
  
  