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 »
  • Using Profiles (Moderator: Dave Greenberg) »
  • anonymous profile form problem
Pages: [1]

Author Topic: anonymous profile form problem  (Read 3016 times)

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
anonymous profile form problem
April 24, 2009, 04:50:08 am
I'm using 2.0.6 w/ Drupal and recently converted a functioning standalone profile form to the built-in one, because I needed to add a captcha. The profile form is here:

http://www.fairvote.ca/civicrm/profile/create?gid=1&reset=1

It's being used to collect anonymous signups. Unfortunately, after converting it to the built-in form, it's started giving me fatal errors. The short version is that the form posts to the same url (without the gid/reset query string), and gives the error:

Sorry. A non-recoverable error has occurred.

The requested Profile (gid=) is disabled, OR there is no Profile with that ID, OR a valid 'gid=' integer value is missing from the URL. Contact the site administrator if you need assistance.

The corresponding backtrace in the Error Log is below.

Apr 24 07:35:32  [info] $Fatal Error Details = Array
(
    [message] => The requested Profile (gid=) is disabled, OR there is no Profile with that ID, OR a valid 'gid=' integer value is missing from the URL. Contact the s
ite administrator if you need assistance.
   
Code: [Select]
=>
)


Apr 24 07:35:32  [info] $backTrace = /var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 265
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Profile/Form/Edit.php, fatal, 89
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 300
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/StateMachine.php, buildForm, 142
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/var/www/drupal/5/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/var/www/drupal/5/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 223
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Utils/Wrapper.php, run, 77
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 916
/var/www/drupal/5/sites/all/modules/civicrm/CRM/Core/Invoke.php, profile, 130
/var/www/drupal/5/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 329
, civicrm_invoke,
/var/www/drupal/5/includes/menu.inc, call_user_func_array, 418
/var/www/drupal/5/index.php, menu_execute_active_handler, 15

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: anonymous profile form problem
April 24, 2009, 06:42:13 am
additional details that are hopefully not relevant ..

1. I had set up a custom template for it, though later removed it to see if that was the problem [it didn't seem to make a difference]. So conceivably there might be something stuck in a session/cache somewhere.

2. the form works if you're logged in.

3. the still form doesn't work if you're not logged in, even when I remove the captcha [i'd thought the captcha was messing something up].

If this isn't something really stupid I've done, I'll put this down as an example of really unhelpful error messages ... But I'm really confused that I can't find anyone else with this error message, since it seems eerily familiar..

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: anonymous profile form problem
April 24, 2009, 06:49:22 am

1. can u ensure that drupal caching is disabled

2. can u ensure that there is an entry in the drupal users table for uid = 0

the symptoms below indicate that sessions are not the same for anon users on different page requests from the same user. if the above two dont fix it, can you get on IRC :)

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

adixon

  • I post frequently
  • ***
  • Posts: 314
  • Karma: 19
    • Blackfly Solutions
Re: anonymous profile form problem
April 24, 2009, 07:08:42 am
1. drupal page caching - checked [it's on, but there's an exception in the settings file, and i just turned it off and the problem is the same]

2. yikes! you're right. I thought that was fatal in many places, but that is exactly the problem and adding the uid = 0 user fixed it.

I wonder how many other mystery problems that might be causing.

Did you also know that my only core patch to Drupal was to solve this exact problem? http://drupal.org/node/70302

Anyway, many thanks for the quick and accurate reply!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • anonymous profile form problem

This forum was archived on 2017-11-26.