Could not find valid value for id when applying code to event with price set
Created by: Stoob
The documentation seems to infer that without specific price sets specified, a discount will be applied to ALL price fields, but instead it returns an error. (see attached and backtrace below)
backTrace #0 /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(380): CRM_Core_Error::backtrace() #1 /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Utils/Request.php(105): CRM_Core_Error::fatal("Could not find valid value for id") #2 /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/StateMachine/Registration.php(53): CRM_Utils_Request::retrieve("id", "Positive", Object(CRM_Event_Controller_Registration), TRUE) #3 (closed) /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Event/Controller/Registration.php(43): CRM_Event_StateMachine_Registration->__construct(Object(CRM_Event_Controller_Registration), TRUE) #4 (closed) /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(330): CRM_Event_Controller_Registration->__construct("Event Registration", TRUE, "null", NULL, "false") #5 /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(79): CRM_Core_Invoke::runItem((Array:15)) #6 /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3)) #7 /home/resolutions/www/www/wp-content/plugins/civicrm/civicrm.php(525): CRM_Core_Invoke::invoke((Array:3)) #8 internal function: CiviCRM_For_WordPress->invoke("<div class="shortcode1-2">\n<h1 style="text-align: left;"><span style="c...") #9 /home/resolutions/www/www/wp-includes/plugin.php(213): call_user_func_array((Array:2), (Array:1)) #10 (closed) /home/resolutions/www/www/wp-content/themes/greenearth-v1-07/page.php(27): apply_filters("the_content", "[column col="1/2"]\r\n<h1 style="text-align: left;"><span style="color: ...") #11 (closed) /home/resolutions/www/www/wp-includes/template-loader.php(74): include("/home/resolutions/www/www/wp-content/themes/greenearth-v1-07/page.php") #12 (closed) /home/resolutions/www/www/wp-blog-header.php(16): require_once("/home/resolutions/www/www/wp-includes/template-loader.php") #13 (closed) /home/resolutions/www/www/index.php(17): require("/home/resolutions/www/www/wp-blog-header.php") #14 {main}
Sorry but we are not able to provide this at the moment. Could not find valid value for id
Return to home page.