CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Could not find valid value for gid" on PROD server, but not devel
Pages: [1]

Author Topic: "Could not find valid value for gid" on PROD server, but not devel  (Read 3367 times)

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
"Could not find valid value for gid" on PROD server, but not devel
February 08, 2009, 07:57:21 am
Hi all,

I have a search profile that always errors (Could not find valid value for gid) on my PROD server, but never errors on my DEV server. I literally just dumped the code and sql (using phpMyAdmin) from one to the other, so they should be indentical (same drupal, php, & mysql, too).

The error never occurs for logged in users, only anonymous (drupal). Have I missed a setting somewhere?

TIA!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Could not find valid value for gid" on PROD server, but not devel
February 08, 2009, 06:03:39 pm

can u ensure that there is a uid of 0 (anonymous user) in the users table. most likely that is missing and hence anon users dont get a session created for them

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

michaels23

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 1
Re: "Could not find valid value for gid" on PROD server, but not devel
February 08, 2009, 06:21:22 pm
Thanks; that did the trick.

Glad I asked. I never would have found that myself.

dbiviano

  • Guest
Re: "Could not find valid value for gid" on PROD server, but not devel
February 04, 2010, 09:16:03 am
I have a similar problem.  I created a custom profile for email subscribe for anonymous users to join my email update list in my template:

http://bivforbrooklyn.com/index.php/poll

when submit I get same error.

Oddly, it was working at some point but when I destroyed the session by closing browser it never worked again.  I created a uid=0 in joomla user table with various gid=N  and nothing worked.

I also recall having a similar problem in my last campaign where email opt-out's didn't work.

Any suggestions?  These functions are vital to me.  Thanks in advance. 

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: "Could not find valid value for gid" on PROD server, but not devel
February 04, 2010, 11:17:16 am

that url is wrong

https://bivforbrooklyn.com/index.php?option=com_civicrm&task=civicrm/profile&reset=1

the error message is valid, the url is missing a gid=XXX

i'm not sure where/how you created that html. you might want to chat with your developer/integrator

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

dbiviano

  • Guest
Re: "Could not find valid value for gid" on PROD server, but not devel
February 04, 2010, 02:53:36 pm
Thank you Donald.  I fixed it by recopying the HTML snippet given in the admin HTML Form Snippet.  It's working again.  In editing, some form parameters got changed.  Sorry to have taken your time.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • "Could not find valid value for gid" on PROD server, but not devel

This forum was archived on 2017-11-26.