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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Unable to save/update anything (plus ct error to boot)
Pages: [1]

Author Topic: Unable to save/update anything (plus ct error to boot)  (Read 1545 times)

fcreek

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Unable to save/update anything (plus ct error to boot)
October 04, 2008, 10:16:44 pm
I've searched throughout the forum and have been unable to find anything with this specific error, so if you're up for a challenge, here goes...

Running multi-site Drupal 5 w/ CiviCRM 2.0.6. PHP 5 and MySQL 5. I am not able to duplicate this issue on the demo site.

On my default site, I am unable to update anything in CiviCRM. I first noticed this when I tried to add a new profile. After entering the name and checking a "used for" box then clicking "Save" it just brought back the New CiviCRM Profile page without having saved the profile. Multiple attempts even using different profile settings did not work.

After further research, I found that no CiviCRM settings will update, including Global Settings.

Furthermore, when I try to save a contact, even if no changes are made, I get the infamous "Could not find valid value for ct" message.

I have tested this on multiple machines (Win XP Pro, Vista) and browsers (IE, Firefox) on different networks.

Updating Drupal works just fine. And other sites through this multi-site installation are working just fine.

I've tried unactivating every module on the site and switched themes, including using the default Garland. Same CiviCRM issues. I say "issues" and not "errors" because I get no error messages, other than the ct error on contacts.

Another weird thing, the AJAX for the Contact Search box in the sidebar does not work. Typing in part of a known contact's name brings up no listing. Hitting search brings up a search page with no results. Typing part of a known contact's name in the search page and hitting "Search" brings back the search page with no results.

Any takers? I've tried everything I can think of and have come up short. Your thoughts and feedback are much appreciated.

Thanks,
Allen

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Unable to save/update anything (plus ct error to boot)
October 21, 2008, 04:13:42 am
I installed the civicrm_error module and have been taking a close look at the errors generated.

One thing I notice is that the session values of the users who see this happen are quite large. About 850KB (I had to hack the civicrm_error module to display the whole session value).

I'm wondering if this gets too big as the number of contacts edit grows. Try clearing your session (eg log out, restart browser etc) and see if that helps the situation??

Just a guess, but worth a crack ...
@xurizaemon ● www.fuzion.co.nz

fcreek

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Re: Unable to save/update anything (plus ct error to boot)
October 21, 2008, 08:35:48 am
Thanks very much for your reply! No, I've tried clearing the browser cache, logging out/in, etc to no avail. But I will install the civicrm_error module as you recommended.

If I wanted to tweak the session time, how would I do that? In the .htaccess file?

Thanks again!

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Unable to save/update anything (plus ct error to boot)
October 21, 2008, 04:33:31 pm
I've modified the civicrm_error.module slightly, you might like this version as it formats the output a little more readably (IMO)

(hmm ... I can attach an MPG but not a tgz or ZIP?)

http://www.giantrobot.co.nz/blog/modified-version-civicrmerror-module-drupal

Will fire a patch thru to Advomatic so they can update the official version if they like it

Update: patch filed
« Last Edit: October 21, 2008, 05:11:05 pm by xurizaemon »
@xurizaemon ● www.fuzion.co.nz

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: Unable to save/update anything (plus ct error to boot)
October 21, 2008, 05:25:19 pm
So, we continue seeing this error a lot. It affects several users, and happens when they try to edit a contact's details.

Could not find valid value for ct

So far our workaround is "please repeat the edit". If the user reloads the edit page, then saves the details again, the details are correctly saved.

Perhaps a contact-specific corruption which is resolved on the first attempted save, and then won't occur on the second?

The error is being thrown from line 152 of CRM/Contact/Form/Edit.php:
Code: [Select]
            $this->_contactType = CRM_Utils_Request::retrieve( 'ct', 'String',
                                                               $this, true, null, 'REQUEST' );

fcreek, you can compare this by looking at the "backtrace" output from civicrm_error - the actual error is the THIRD entry in the backtrace for us.

Also, fcreek (or anyone else experiencing "Could not find valid value for ct" errors), can you confirm if a second attempt at saving the same contact details will work?
@xurizaemon ● www.fuzion.co.nz

fcreek

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Re: Unable to save/update anything (plus ct error to boot)
October 21, 2008, 05:56:31 pm
Xurizaemon, thank you very very much. I tried installing the civicrm_error module this morning, but then realized I couldn't update CiviCRM at all, including the resource urls. So... since it was a fairly new site I ended up just deleting the database and creating a new one. Now it works like a charm.

But on another site, now I can't get the country drop down to work when I try to add a new contact! Lots of love for CiviCRM, and still a lot of work to be done...

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Unable to save/update anything (plus ct error to boot)
October 21, 2008, 07:31:50 pm
Have you checked what Countries you have opted to show in Admin >> Configure >> GLobal settings >> Localisation??
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Unable to save/update anything (plus ct error to boot)

This forum was archived on 2017-11-26.