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) »
  • Options Not Updating... Custom Profile Fields Not Saving....
Pages: [1] 2

Author Topic: Options Not Updating... Custom Profile Fields Not Saving....  (Read 3175 times)

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Options Not Updating... Custom Profile Fields Not Saving....
December 27, 2009, 10:38:17 pm
Hi All,

I just installed Drupal 6.15 and Civicrm 3.0.3 on a Linux server running PHP 5.2.10 and Mysql 14.14. I reinstalled an entire installation because I thought I screwed up something and that a clean install would solve the problems but they are still around.....

Here are my civicrm problems. Every time I try and update or add an option under
Home » CiviCRM » Administer CiviCRM » Option Groups I get an error

"Sorry. A non-recoverable error has occurred.

We experienced an unexpected error. Please file an issue with the backtrace

Return to home page."

here is the back trace.


/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 256
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Admin/Page/Options.php, fatal, 95
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Admin/Page/Options.php, preProcess, 193
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 209
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 333
, civicrm_invoke,
/hsphere/local/home/***/www.***.org/includes/menu.inc, call_user_func_array, 348
/hsphere/local/home/***/www.***.org/index.php, menu_execute_active_handler, 18


My other problem is that whenever I try and add a custom profile field it does not add. No error it just does not add.

The user name on the database has full dba access to the database.

The drupal install and the civicrm install share the same database.

The drupal install is configured to use a table prefix ie drupal_table_name.

Any help would be awesome because I am totally lost!


Thanks,

Christopher, NewFound Technologies

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 28, 2009, 10:31:47 am
What URL are you hitting when you get that error?
Are other admin functions throwing errors or only that one?

The specific backtrace error indicates that we can't retrieve the option group name from the query string - but not sure what would cause that.

Note the 'group=activity_type' in this example URL from the public drupal demo:

http://drupal.demo.civicrm.org/civicrm/admin/options/activity_type&reset=1&group=activity_type
Protect your investment in CiviCRM by  becoming a Member!

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 28, 2009, 01:06:20 pm
Thanks for the reply. This happens all over the civiCRM almost all of the (option lists throw an error) and when I try and update a field or add something it never gets into the database but it correctly pull information from the database site so its not just specific to that example. I will try and provide more information. FYI I am using FireFox 3.5.6.

For example the url goes from this at the form

http://www.***.org/civicrm/admin/options/individual_suffix?group=individual_suffix&action=add&reset=1

To this after the form is submitted

http://www.***.org/civicrm/admin/options/individual_suffix

In this example I wanted to add the suffix "MD" without quotes to the CIVICRM system list of suffixes and in return I got the same error as below but with the following backtrace.

/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 256
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Admin/Page/Options.php, fatal, 95
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Admin/Page/Options.php, preProcess, 193
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 209
/hsphere/local/home/***/www.***.org/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 333
, civicrm_invoke,
/hsphere/local/home/***/www.***.org/includes/menu.inc, call_user_func_array, 348
/hsphere/local/home/***/www.***.org/index.php, menu_execute_active_handler, 18

 
« Last Edit: December 28, 2009, 04:30:47 pm by newfoundcivicrm »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 28, 2009, 03:21:03 pm
Your problem might be related to inconsistent settings for your main drupal URL (i.e. http://www.mysite.com vs. http://mysite.com). I would check the various steps in this document:

http://wiki.civicrm.org/confluence/display/CRMDOC/Moving+an+Existing+Installation+to+a+New+Server+or+Location
Protect your investment in CiviCRM by  becoming a Member!

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 28, 2009, 04:44:49 pm
I have tried the stuff in the link and it did not fix anything. The thing is that I have not moved the site at all. It is a fresh install on both fronts, drupal and civicrm.

1. A couple of questions. I know in another version of civicrm there was a problem with drupal using table prefixes and you had to add something to the settigns.php file, could that have something to do with the problems? Do I need to add that code to the settings.php file?

2. Could this be caused by a file or folder permissions problem ie not having something set to 777 vs 755?

3. What is CRM_CORE_DAO? because if I read the backtrace right isn't that where the problem is coming from?

4. The user on this install has dba permissions on two other databases that were used for drupal / civicrm test installs could that be a problem causer too?

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 28, 2009, 05:21:05 pm
I tried to disable clean urls thinking that maybe something is not getting posted right and that did nothing to solve the problem.

Could this have something to do with the fact that there is a bug in the path_auto module that I have installed currently has some sort of bug?

Since I seem to be the only one with this problem is there a list of drupal modules that are NOT compatible with civicrm that I can check with to see if one of them are causing the problem? Also is it possible to just reinstall civicrm without loosing my drupal install? and if so is there a link to the reinstall procedure available that I can fallow?

Also after trying other configuration options like adding a membership it seems to me that it will read from the database but no matter what I do it will not update the database. I even went as far as creating a new database and user just for civicrm and doing the delete civicrm.settings.php file move to reinstall civicrm and that did nothing! The only thing at this point that works is creating an event from the civicrm drupal event node thought the create content link in the navigation menu....
« Last Edit: December 29, 2009, 01:18:20 am by newfoundcivicrm »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 12:03:25 pm
At this point you might want to contact Web Access for install / configuration support - http://www.webaccessglobal.com/opensource/civicrm-professional-services
Protect your investment in CiviCRM by  becoming a Member!

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 12:13:41 pm
Yeah thanks for the help so far but I'm not going to pay $700 for the answer to a series of questions which I would assume someone would know since they seem to be common open source type questions, ie compatablility, installation problems, etc.

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 12:14:00 pm
Just an idea..  What browser are you using?  I've been fighting jquery problems with IE 8.

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 02:22:47 pm
Firefox 3.5.6 is the browser that I am using I have the Web Developer Add-on Installed along with some others but I don't think that is causing the problems....

As an update I just blew away my entire civicrm installation including the tables as well as the drupal/civicrm tables (two of them). My current plan is to try the newest beta and if that doesn't work my plan is to delete again and install an older version of civicrm that I know worked at one point.

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 03:47:48 pm
Here is the update. I think this is all about JavaScript and CSS things are not getting posted back to the site correctly. Civicrm when accessed with my custom theme through drupal appears as it should but when accessed with IE it starts to fall apart. First my menu (nice menu) starts to loose its set colors and the text in the left col nav menu starts to look funny. My first thought was to switch a drupal default theme to see if that fixed things. Well it is enabled me (in IE only) to post to the options and edit the options without error. The only problem is that nothing looks like it should! Civicrm is a Javascript and CSS monster! So does this spur any other thoughts???

Here is a short list of the modules (copy and paste from the admin->config section) that I have installed does anyone know if they might cause css or javascript compatibility issues?

Actions
Administration theme
Charts
CiviGroup Roles Sync
CiviMember Roles Sync
Clean URLs
Community tags
Configure decisions
Date and time
Devel settings
GMap
GMap Location
Global Redirect
Google Analytics
Image assist
Image toolkit
Images
Input formats
Job queue
Languages
Link checker
Location
Logging and alerts
Mailhandler
Mime Mail
Nice Menus
Performance
Performance logging
Printer, e-mail and PDF versions
Private messages
SWF Tools
Search settings
Simplenews
Tagadelic configuration
Voting API

Thanks,
« Last Edit: December 29, 2009, 03:52:58 pm by newfoundcivicrm »

midloman

  • I post occasionally
  • **
  • Posts: 62
  • Karma: 1
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 04:12:18 pm
First, If you are using IE 8, make sure you are using compatibility mode.  Second thing, turn off all the modules.  Third, use the default drupal theme until you are positive that CiviCRM and Drupal is working correctly.

Debug one issue at a time instead of trying everything at once. 

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
December 29, 2009, 07:56:32 pm
thats a good point. though I have not directly tried things just one time at a time I will tonight.

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
January 01, 2010, 01:58:37 pm
I have come to the conclusion that the module that is causing problems is the nicemenus module. I still think that it is a css or js problem. I disabled the js jquery file that drupal includes by blanking it and that did not work (thinking it was naming collision). I then tried to copy the jquery file provided by civicrm to the drupal js file and blanking the civicrm jquery js file and drupal worked fine but civicrm started showing errors that javascript wasn't turned on in my browser! That makes no sense to me because the original civicrm jquery js file was still being loaded just in a different file location..... I never had this problem with civicrm 2.8 and down so does this new information help stir any thoughts (and nice menus was enabled then as well)??????


thanks

newfoundcivicrm

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 0
Re: Options Not Updating... Custom Profile Fields Not Saving....
January 01, 2010, 02:26:48 pm
well maybe it is not a css or js script problem with nicemenus because the module i have installed has not changed since 2008. does anyone know if civicrm impelents a menu hook? better yet has anyone used civicrm and nicemenus before? or something close to it?

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Options Not Updating... Custom Profile Fields Not Saving....

This forum was archived on 2017-11-26.