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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Post-Upgrade: "Could not find valid value for ct"
Pages: [1]

Author Topic: Post-Upgrade: "Could not find valid value for ct"  (Read 1592 times)

renipub

  • Guest
Post-Upgrade: "Could not find valid value for ct"
March 26, 2009, 06:59:30 am
Hello all,

Upgraded from 2.1.6 to 2.2.1 - everything went smoothly, but now everytime I try to save a record upon editing, I get the following error:

Sorry. A non-recoverable error has occurred.
Could not find valid value for ct

Return to home page.


Everything else in CiviCRM and Drupal seems to work fine.  I just can't save values for records. I can create new records and delete old ones. I've posted the backtrace below.  Thanks!!!


/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Utils/Request.php, fatal, 108
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Contact/Form/Edit.php, retrieve, 170
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 312
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, buildForm, 122
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 245
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Utils/Wrapper.php, run, 114
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 177
/var/www/vhosts/frej.net/httpdocs/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 339
, civicrm_invoke,
/var/www/vhosts/frej.net/httpdocs/includes/menu.inc, call_user_func_array, 348
/var/www/vhosts/frej.net/httpdocs/index.php, menu_execute_active_handler, 18

Michał Mach

  • Ask me questions
  • ****
  • Posts: 748
  • Karma: 59
    • CiviCRM site
  • CiviCRM version: latest
  • CMS version: Drupal and Joomla latest
  • MySQL version: numerous
  • PHP version: 5.3 and 5.2
Re: Post-Upgrade: "Could not find valid value for ct"
March 26, 2009, 07:12:40 am
Hey,

Can you try cleaning up caches (search on this forum or http://docs.civicrm.org for specifics)?

Thx,
m
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

My absolute favourite: Wordpress Integration!.

Donate Now!

renipub

  • Guest
Re: Post-Upgrade: "Could not find valid value for ct"
March 26, 2009, 10:27:22 am
Thanks M,

Tried cleaning out the caches, but that didn't seem to work.  I added a SmartyDebug option to the URL on the Edit page, and I didn't see any errors except for at the very bottom.  Output it below.


{$session} CRM_Core_Session Object (0)
{$showBlocks} "'commPrefs','id_demographics_show','i..."
{$showCommBlock} 1
{$showDemographics} 1
{$showIM} true
{$showNotes} 1
{$showOpenID} true
{$showTagsAndGroups} 1
{$tagCount} 6
{$tplFile} "CRM/Contact/Form/Edit.tpl"
{$translatePermission} false
{$tsLocale} "en_US"
{$urlIsPublic} false
{$wizard} Array (6)
steps => Array (1)
  0 => Array (7)
    name => "Edit"
    title => "ERROR: Title is not Set"
    link => null
    step => true
    valid => true
    stepNumber => 1
    collapsed => false
currentStepNumber => 1
currentStepName => "Edit"
currentStepTitle => "ERROR: Title is not Set"
stepCount => 1
style => Array (8)
  barClass => ""
  stepPrefixCurrent => "»"
  stepPrefixPast => "√"
  stepPrefixFuture => " "
  subStepPrefixCurrent => "  "
  subStepPrefixPast => "  "
  subStepPrefixFuture => "  "
  showTitle => 1

renipub

  • Guest
Re: Post-Upgrade: "Could not find valid value for ct"
March 26, 2009, 01:31:15 pm
Made some progress.  Looks like part of the problem was that the auto_increment property was set on the uid field in the sessions table in the drupal database (whew!).  So now when I login as a user with admin permissions, everything works fine.

However, when I login as someone WITHOUT admin privileges, I still get the error.  So I'm assuming it's a table integration issue between CiviCRM and Drupal.  Anyone have any experience with this?

Thanks in advance for any suggestions.

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: Post-Upgrade: "Could not find valid value for ct"
March 26, 2009, 01:51:24 pm

i'm curious as to how the autoincrement was set on the uid field. how did this happen, and if so what other potential changes in the db schema (drupal or civicrm) have taken place

might be worth considering a super clean install of both drupal and civicrm with the schema as shipped in the package :)

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

renipub

  • Guest
Re: Post-Upgrade: "Could not find valid value for ct"
March 27, 2009, 06:25:01 am
Thanks Lobo,

I thought it was strange myself, but I'm also new to Civi and Drupal.  Just an old school CNE and MCSE here....lol.....  on a seperate note if you don't mind me asking:

I read that Drupal 5 uses a SEQUENCES table to assign AutoNumber values, and in Drupal 6 that has been replaced by using mySQL AUTO_INCREMENT properties.  I did upgrade from 5-6 a few months ago.  Perhaps that could be how it was set?

Just a thought.

renipub

  • Guest
Re: Post-Upgrade: "Could not find valid value for ct"
March 27, 2009, 01:43:54 pm
Get this:
 
I compared both the Drupal and FREJ database structures side by side to a clean installation of both, and they were fine. So I created a new role thinking it was a sync issue with drupal.  No dice.  I then took the SALES role and assigned it all permissions.  It worked!  Then I removed checkboxes one by one from EVERY permission in the list.
 
I've since fixed the problem, narrowing it down to two permissions that need to be checked:
 
SERVICE_LINKS MODULE:  ACCESS SERVICE LINKS
USER MODULE:  ACCESS USER PROFILES
 
As long as these are checked, everything works fine.  What in the hell would cause that?  When I looked up the service_links module, that's for social networking stuff.  It has nothing to do with CiviCRM.  So I'm assuming there's some data corruption somewhere. 

What do you think?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Post-Upgrade: "Could not find valid value for ct"

This forum was archived on 2017-11-26.