On my civievent, people get the error message " could not find valid value for id" on wordpress 4.8.1

  • I'd like to help you, but I'll need some more information. What are the specific steps that led to this error? Viewing the event page? Registering for the event? Can you provide a screenshot? Does everyone get the error? Are you able to reproduce it consistently? Can you post a link to the event page so others can look at it? What is working? Other events? Are the any recent changes you're aware of that could help us diagnose the problem?
    – Sean
    Sep 1 '17 at 23:34
  • In addition to Sean's questions - the most helpful info you can give is the debugging info. In CiviCRM, go to Administer menu > System Settings > Debugging and Error Handling, select "Yes" to both "Enable Debugging" and "Display Backtrace", and press "Save". Repeat the steps that caused your error, and you'll see much a more detailed error. Please update this question with the expanded error and backtrace - and don't forget to disable debug/backtrace when you're done! Sep 2 '17 at 16:08

I had this problem intermittently for some time when embedding event registration forms using a Wordpress shortcode. It has to do with page caching. CiviCRM parses the shortcode to capture the event ID and adds the id value to the global $_GET object. If the page is loaded from cache (usually when the back/forward button is pressed) the code that parses the shortcode does not run, and the event ID is not added to $_GET.

I was able to fix this issue by making a page cache exception with the caching plugin I'm using.

I think this behavior is essentially a bug and CiviCRM should output a hidden form variable with the event ID so that it still gets passed to the "Thank You" page if the registration form is loaded from cache.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.