Answers.Body: <p>Have you gone and resaved all the menu items? The way the menu item saved in the most recent versions of CiviCRM in Joomla has changed. CiviCRM throws this error in Joomla if you haven't selected one of the necessary settings in the menu item.</p>
  
  <p>I would also check the (root)/media/civicrm/ConfigAndLog/CiviCRM.longRandomString.log. I have found it very useful.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-27T02:14:53.347Z
Answers.Text: Yes, I checked through the menu items and rebuilt each menu. The events themselves show up and are working fine. It's after hitting "Continue" on the registration page that the error pops up. It's a new one for me and all of the troubleshooting so far hasn't provided any clues!
Answers.UserDisplayName: LMK Web
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-27T03:17:14.377Z
Answers.Text: What is the content of the (root)/media/civicrm/ConfigAndLog/CiviCRM.longRandomString.log file?
Answers.UserDisplayName: David Hayes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-27T05:10:56.133Z
Answers.Text: It's similar to the error message, but with the backtrace info as well. I looked at it earlier but wasn't sure how to read it. It's too long for the comment so I've appended it to the original post.
  
  `code` Apr 26 22:13:33  [info] $Fatal Error Details = Array
  (
      [message] => id (value: ) is not of the type Positive
      [code] => 
  )
Answers.UserDisplayName: LMK Web
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-27T15:46:52.367Z
Answers.Text: Ok, so this line is the one throwing the error: `CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE)`
  
  Do you have customize CiviCRM templates?
Answers.UserDisplayName: David Hayes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-27T16:01:41.507Z
Answers.Text: Another thought -- CiviCRM is looking for a variable `id` to be passed in in the `$_REQUEST`. It is not being passed in. I believe it is the event id and it is provided by the menu item settings.
  
  If you check the source of one of the forms , is the Itemid set in the action url? 
  `<form action="https://example.com/index.php?option=com_civicrm&amp;task=civicrm/event/register&amp;Itemid=1168" method="post" name="Register" id="Register" class="CRM_Event_Form_Registration_Register" enctype="multipart/form-data" data-warn-changes="true">`
Answers.UserDisplayName: David Hayes
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-27T17:14:39.757Z
Answers.Text: Thanks - I finally managed to figure it out! Helped finding out when the error started showing up (last Thursday) and what had changed prior to that. Turns out someone changed one of the fields on the event reg profile and linked it to an internal ID, and changing that to an actual custom field fixed the problem.
Answers.UserDisplayName: LMK Web
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-26T23:12:47.713Z
Answers.LastActivityDate: 2016-04-26T23:12:47.713Z
Answers.UserDisplayName: David Hayes
Body: <p>All of the event registrations on our website are throwing the following error message:</p>
  
  <pre><code>    0 - &lt;div id="crm-container" class="crm-container" lang="en" xml:lang="en"&gt; &lt;style type="text/css" media="screen"&gt; @import url(/administrator/components/com_civicrm/civicrm/css/civicrm.css); @import url(/administrator/components/com_civicrm/civicrm/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css); &lt;/style&gt; &lt;div class="messages status no-popup"&gt; &lt;div class="icon red-icon ui-icon-alert"&gt;&lt;/div&gt; &lt;span class="status-fatal"&gt;Sorry but we are not able to provide this at the moment.&lt;/span&gt; &lt;div class="crm-section crm-error-message"&gt;id (value: ) is not of the type Positive&lt;/div&gt; &lt;p&gt;&lt;a href="https://www.usfashionindustry.com/" title="Main Menu"&gt;Return to home page.&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;script language="JavaScript"&gt; function toggle( element ) { var className = element.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } } &lt;/script&gt;
  
  You may not be able to visit this page because of:
  
      an out-of-date bookmark/favourite
      a search engine that has an out-of-date listing for this site
      a mistyped address
      you have no access to this page
      The requested resource was not found.
      An error has occurred while processing your request.
  
  Please try one of the following pages:
  
      Home Page
  
  If difficulties persist, please contact the System Administrator of this site and report the error below.
  
  &lt;div id="crm-container" class="crm-container" lang="en" xml:lang="en"&gt; &lt;style type="text/css" media="screen"&gt; @import url(/administrator/components/com_civicrm/civicrm/css/civicrm.css); @import url(/administrator/components/com_civicrm/civicrm/bower_components/jquery-ui/themes/smoothness/jquery-ui.min.css); &lt;/style&gt; &lt;div class="messages status no-popup"&gt; &lt;div class="icon red-icon ui-icon-alert"&gt;&lt;/div&gt; &lt;span class="status-fatal"&gt;Sorry but we are not able to provide this at the moment.&lt;/span&gt; &lt;div class="crm-section crm-error-message"&gt;id (value: ) is not of the type Positive&lt;/div&gt; &lt;p&gt;&lt;a href="https://www.usfashionindustry.com/" title="Main Menu"&gt;Return to home page.&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;script language="JavaScript"&gt; function toggle( element ) { var className = element.className; if ( className == 'crm-accordion-wrapper collapsed crm-fatal-error-details-block') { element.className = 'crm-accordion-wrapper crm-fatal-error-details-block'; } else { element.className = 'crm-accordion-wrapper collapsed crm-fatal-error-details-block'; } } &lt;/script&gt; 
  </code></pre>
  
  <p>The website is running Joomla 3.5.1 and CiviCRM 4.6.15. We've made some changes recently to the profiles and did a large site upgrade a few weeks ago, but I'm still trying to track down when the issue started. </p>
  
  <p>To troubleshoot, I've checked the resource URLs and the site config, all are setup to use <a href="https://www">https://www</a> and the URL doesn't change when moving from one page to the next. </p>
  
  <p>When I attempted to set up the Site Profile settings, that throws an error message as well:</p>
  
  <pre><code>There was an error in reading your site configuration.
  Snapshot ID uOV7F-LqpIP-vGUht-frahE
  Timestamp   2016-04-26 21:39 UTC
  Status  error
  Site URL    https://www.usfashionindustry.com/administrator/administrator/components/com_civicrm/civicrm/extern/cxn.php
  App URL https://mycivi.org/app:org.civicrm.profile/cxn/register
  Data    {"is_error":1,"error_message":"Client exception: Received garbled message","garbled_message":false}
  </code></pre>
  
  <p>I don't know why "administrator" shows up twice in the URL. With our Joomla install, there are two civicrm.settings.php files, and the one in the administrator directory has /administrator as part of the site URL. I tried changing this to see if that made a difference, but instead it broke some other back-end functionality.</p>
  
  <p>Enabling error messages and debugging also hasn't turned up additional clues. I also tried changing the template on a registration page to see if there was a scripting conflict with the template (which is old), but the error persisted. Any thoughts? I'm tempted to upgrade to 4.7.x to see if that solves the problem.</p>
  
  <p>The following is from the CiviCRM.randomstring file in the ConfigAndLog folder (with the root removed):</p>
  
  <pre><code>Apr 26 22:13:33  [info] $backTrace = #0 /administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(364): CRM_Core_Error::backtrace("backTrace", TRUE)
  #1 /administrator/components/com_civicrm/civicrm/CRM/Utils/Type.php(371): CRM_Core_Error::fatal("id (value: ) is not of the type Positive")
  #2 /administrator/components/com_civicrm/civicrm/CRM/Utils/Request.php(85): CRM_Utils_Type::validate("", "Positive", TRUE, "id")
  #3 /administrator/components/com_civicrm/civicrm/CRM/Event/StateMachine/Registration.php(52): CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE)
  #4 /administrator/components/com_civicrm/civicrm/CRM/Event/Controller/Registration.php(47): CRM_Event_StateMachine_Registration-&gt;__construct(Object(CRM_Event_Controller_Registration), TRUE)
  #5 /administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(307): CRM_Event_Controller_Registration-&gt;__construct("Event Registration", TRUE, "null", NULL, "false")
  #6 /administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:15))
  #7 /administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  #8 /components/com_civicrm/civicrm.php(86): CRM_Core_Invoke::invoke((Array:3))
  #9 /components/com_civicrm/civicrm.php(11): civicrm_invoke()
  #10 /libraries/cms/component/helper.php(405): require_once("/components/com_civicrm/civicrm.php")
  #11 /libraries/cms/component/helper.php(380): JComponentHelper::executeComponent("/components/com_civicrm/civicrm.php")
  #12 /libraries/cms/application/site.php(191): JComponentHelper::renderComponent("com_civicrm")
  #13 /libraries/cms/application/site.php(230): JApplicationSite-&gt;dispatch()
  #14 /libraries/cms/application/cms.php(257): JApplicationSite-&gt;doExecute()
  #15 /index.php(49): JApplicationCms-&gt;execute()
  #16 {main}
  </code></pre>
  
Tags: <civievent><joomla><error><registration>
Title: Error on CiviCRM event registration pages
ThreadText: # Error on CiviCRM event registration pages
  
  (Asked by: username_0 on 2016-04-26)
  
  All of the event registrations on our website are throwing the following error message:
      0 -     Sorry but we are not able to provide this at the moment. id (value: ) is not of the type Positive Return to home page.   
  
  You may not be able to visit this page because of:
  
      an out-of-date bookmark/favourite
      a search engine that has an out-of-date listing for this site
      a mistyped address
      you have no access to this page
      The requested resource was not found.
      An error has occurred while processing your request.
  
  Please try one of the following pages:
  
      Home Page
  
  If difficulties persist, please contact the System Administrator of this site and report the error below.
  
      Sorry but we are not able to provide this at the moment. id (value: ) is not of the type Positive Return to home page.    
  
  The website is running Joomla 3.5.1 and CiviCRM 4.6.15. We've made some changes recently to the profiles and did a large site upgrade a few weeks ago, but I'm still trying to track down when the issue started. 
  To troubleshoot, I've checked the resource URLs and the site config, all are setup to use https://www and the URL doesn't change when moving from one page to the next. 
  When I attempted to set up the Site Profile settings, that throws an error message as well:
  There was an error in reading your site configuration.
  Snapshot ID uOV7F-LqpIP-vGUht-frahE
  Timestamp   2016-04-26 21:39 UTC
  Status  error
  Site URL    https://www.usfashionindustry.com/administrator/administrator/components/com_civicrm/civicrm/extern/cxn.php
  App URL https://mycivi.org/app:org.civicrm.profile/cxn/register
  Data    {"is_error":1,"error_message":"Client exception: Received garbled message","garbled_message":false}
  
  I don't know why "administrator" shows up twice in the URL. With our Joomla install, there are two civicrm.settings.php files, and the one in the administrator directory has /administrator as part of the site URL. I tried changing this to see if that made a difference, but instead it broke some other back-end functionality.
  Enabling error messages and debugging also hasn't turned up additional clues. I also tried changing the template on a registration page to see if there was a scripting conflict with the template (which is old), but the error persisted. Any thoughts? I'm tempted to upgrade to 4.7.x to see if that solves the problem.
  The following is from the CiviCRM.randomstring file in the ConfigAndLog folder (with the root removed):
  Apr 26 22:13:33  [info] $backTrace = #0 /administrator/components/com_civicrm/civicrm/CRM/Core/Error.php(364): CRM_Core_Error::backtrace("backTrace", TRUE)
  #1 /administrator/components/com_civicrm/civicrm/CRM/Utils/Type.php(371): CRM_Core_Error::fatal("id (value: ) is not of the type Positive")
  #2 /administrator/components/com_civicrm/civicrm/CRM/Utils/Request.php(85): CRM_Utils_Type::validate("", "Positive", TRUE, "id")
  #3 /administrator/components/com_civicrm/civicrm/CRM/Event/StateMachine/Registration.php(52): CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE)
  #4 /administrator/components/com_civicrm/civicrm/CRM/Event/Controller/Registration.php(47): CRM_Event_StateMachine_Registration->__construct(Object(CRM_Event_Controller_Registration), TRUE)
  #5 /administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(307): CRM_Event_Controller_Registration->__construct("Event Registration", TRUE, "null", NULL, "false")
  #6 /administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:15))
  #7 /administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
  #8 /components/com_civicrm/civicrm.php(86): CRM_Core_Invoke::invoke((Array:3))
  #9 /components/com_civicrm/civicrm.php(11): civicrm_invoke()
  #10 /libraries/cms/component/helper.php(405): require_once("/components/com_civicrm/civicrm.php")
  #11 /libraries/cms/component/helper.php(380): JComponentHelper::executeComponent("/components/com_civicrm/civicrm.php")
  #12 /libraries/cms/application/site.php(191): JComponentHelper::renderComponent("com_civicrm")
  #13 /libraries/cms/application/site.php(230): JApplicationSite->dispatch()
  #14 /libraries/cms/application/cms.php(257): JApplicationSite->doExecute()
  #15 /index.php(49): JApplicationCms->execute()
  #16 {main}
  
  **Tags:** civievent, joomla, error, registration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-26. Score: 1
  
  Have you gone and resaved all the menu items? The way the menu item saved in the most recent versions of CiviCRM in Joomla has changed. CiviCRM throws this error in Joomla if you haven't selected one of the necessary settings in the menu item.
  
  I would also check the (root)/media/civicrm/ConfigAndLog/CiviCRM.longRandomString.log. I have found it very useful.
  
  > **Comments:**
  > **username_0**: Yes, I checked through the menu items and rebuilt each menu. The events themselves show up and are working fine. It's after hitting "Continue" on the registration page that the error pops up. It's a new one for me and all of the troubleshooting so far hasn't provided any clues!  
  > **username_1**: What is the content of the (root)/media/civicrm/ConfigAndLog/CiviCRM.longRandomString.log file?  
  > **username_0**: It's similar to the error message, but with the backtrace info as well. I looked at it earlier but wasn't sure how to read it. It's too long for the comment so I've appended it to the original post.  `code` Apr 26 22:13:33  [info] $Fatal Error Details = Array (     [message] => id (value: ) is not of the type Positive     [code] =>  )  
  > **username_1**: Ok, so this line is the one throwing the error: `CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE)`  Do you have customize CiviCRM templates?  
  > **username_1**: Another thought -- CiviCRM is looking for a variable `id` to be passed in in the `$_REQUEST`. It is not being passed in. I believe it is the event id and it is provided by the menu item settings.  If you check the source of one of the forms , is the Itemid set in the action url?  `<form action="https://example.com/index.php?option=com_civicrm&amp;task=civicrm/event/register&amp;Itemid=1168" method="post" name="Register" id="Register" class="CRM_Event_Form_Registration_Register" enctype="multipart/form-data" data-warn-changes="true">`  
  > **username_0**: Thanks - I finally managed to figure it out! Helped finding out when the error started showing up (last Thursday) and what had changed prior to that. Turns out someone changed one of the fields on the event reg profile and linked it to an internal ID, and changing that to an actual custom field fixed the problem.  
  
  ---
  
  