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) »
  • CiviCRM Forms don't submit
Pages: [1]

Author Topic: CiviCRM Forms don't submit  (Read 1752 times)

soundsculptor

  • Guest
CiviCRM Forms don't submit
January 26, 2008, 12:30:58 pm
Similar to this issue :
http://forum.civicrm.org/index.php/topic,1129.0.html

None of my forms in CiviCRM are submitting properly.
When I go to edit or create or delete a custom data field, a profile, a member type, ect... the changes are not applied.  I get to the form, fill it out, and submit. Everything looks fine, but nothing changes. No error. No logged apache errors. Just a silent failure.

I have CiviCRM 1.9 set up with Drupal 5.3 in a CentOS, Apache 2. MySQL 5, PHP 5.1 environment.
I DONT have "clean urls" enabled, for Drupal.

This is a new problem, just arisen this week.
We've been submitting forms successfully for two months. Recently we edited a few profiles, and contribution pages. Not sure of what the LAST thing that was done in CiviCRM before this problem.

Forms in Drupal work fine.
My co-workers, with different user accounts and on separate computers, experience the same results. Change to another (alternate) CiviCRM database and still same problem. I scanned the civicrm files on the server, and all are still in sync with the original downloaded package.

There IS also an issue with "profile not configured for this action" fatal error when a user logs in. Refresh the "/user" page, and all is well. I think this has to do with an existing profile being loaded by the user account page, but not being set to "profiles" in it's display settings. If so, I can't address this until I can submit a form.

Anybody have any idea what's the problem?
I've been stumped for two days!

Thanks,
Mani

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: CiviCRM Forms don't submit
January 27, 2008, 06:05:36 am

most likely something changed somewhere. Its highly unlikely for a problem to start happening all of a sudden :)

some random thoughts and suggesions:

1. check the mysql query log and see how the session update changes on every request. is the session getting corrupted by any chance?

2. truncate your session table just to make a clean start

3. ensure that your mysql partition has not run out of disk space /  inodes

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

soundsculptor

  • Guest
Re: CiviCRM Forms don't submit
January 27, 2008, 01:43:41 pm
Thanks Lobo,

Your random suggestions seem worth a look into. I'd like to follow them, but I'm still kind of lost.

I'm not experienced in MySQL (or civicrm) enough to know where to find the, query log, session table, or partition information. We are on a VPS, and I have root access via ssh.

I'm willing and able.
And I appreciate your time.
Could use more clarity.

Thanks,
Mani

test.organicathlete.org

soundsculptor

  • Guest
Re: CiviCRM Forms don't submit (still)
February 01, 2008, 08:02:14 pm
Well, after sleeping on it, and talking to a co-worker, I found the "sessions" table in the Drupal DB.  ;) I deleted MOST of the rows (120 of 150) and that seemed to fix the problem. I could then submit CiviCRM forms, and continue on with my work. Thanks for the tip, Lobo.

BUT... ???
After a short while it became obvious that the other users (I have the primary Drupal account) still can not submit CiviCRM forms. They are getting the following (different) error:
Quote
Sorry. A non-recoverable error has occurred.

Could not find valid Key

Return to home page.

I am not getting any errors, when using the primary Drupal account.
I DO get this error when submitting forms in CivCRM, using ANY other account.

We've made sure Drupal user #0 is present in the DB.
I've cleared the sessions table COMPLETELY since then.
We're (again) at a loss as to what might be the problem.

Anybody got any ideas?
Thanks,
M.M.

Developer
test.organicathlete.org

P.S.
Yes, I've searched these forums and found many entries relating to "Could not find valid Key" error. BUT none that only affect some users. (that I see) So, because my primary Drupal account has no problems, I'm even more puzzled.
« Last Edit: February 01, 2008, 08:07:22 pm by soundsculptor »

soundsculptor

  • Guest
Re: CiviCRM Forms don't submit
February 02, 2008, 08:12:53 pm
Update:
After an insightful observation on the part of  a co-worker,  we have more clues to work with. He observed that CiviCRM was using a "key" variable in the URL of search results pages. (which, in his case, resulted in the "Could not find valid key" error)

He emailed that key to me (remember, my primary login was not getting the error). When I went to his error page, I got the same error. When I posed the SAME search query on my own without an error, I sent HIM the URL. He got the error when he tried to visit the URL I sent him. Then I posted a NEW search query, with different results, and removed the "key" variable from the URL in the results page. I got the same NEW results. So the session is saved in a cookie, and the latest search results are saved in the session. I then deleted my cookies from this website, and NOW I get the same errors my coworkers do.  :) (I feel so normal)

So I guess all of this would be SOO obvious to a CiviCRM guru, but we are not that. So we are pretty proud to have figured this out (so far) by ourselves. It's taken us a few days of "Not getting work done" to trouble shoot this bug. We REALLY want to get back to work, but still haven't found a solution. Now that I am experiencing the SAME bug (after deleting my cookies), and (again) cannot submit forms in CiviCRM, we really can't get any work done.

I've tried:
  • Clearing the Drupal sessions table (solves one problem and causes another?)
  • Clearing the Drupal cache_content table
  • Drupal URL and CiviCRM site URL are the same
  • Disabling custom data field groups that I had altered via SQL queries

Any more ideas?
thanks,
M.M.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: CiviCRM Forms don't submit
February 05, 2008, 04:53:14 pm
I just tried some experiments with my cookies while logged into our 1.9 demo site (as demo / demo). I'm using Firefox with the Web Developer "add on"  - which I would recommend you download and install to try and debug this if you don't already have it.

With Web Developer - I tried "Clear Session Cookies", "Delete Domain Cookies" and "Delete Path Cookies".

Clearing Session Cookies - retried "Find Contacts" search and it worked fine
Deleting Domain or Path Cookies - retried "Find Contacts" and was logged out of Drupal immediately ("access denied" on the search page)

Logged back in - and search worked fine again.

For your situation - possibly playing with these controls - as well as using Web Developer's "View Cookie" tool might give more clues.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • CiviCRM Forms don't submit

This forum was archived on 2017-11-26.