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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • issue when add custom field
Pages: [1]

Author Topic: issue when add custom field  (Read 383 times)

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
issue when add custom field
January 07, 2015, 12:00:40 am
hi all,

i am facing this issue ;

when i add custom filed , the page appear this error :

Fatal error: Call to undefined function views_invalidate_cache() in /home/cpsorgsg/public_html/MRM/sites/all/modules/civicrm/drupal/civicrm.module on line 1023

so , i open the file civicrm.module and give coment higlehted below


function civicrm_civicrm_postProcess($formName, $form) {
  // Reset Views Cache when CiviCRM components page is saved
  if ($form instanceof CRM_Admin_Form_Setting_Component || $form instanceof CRM_Custom_Form_Group || $form instanceof CRM_Custom_Form_Field) {
    if (module_exists('views')) {
      // views_invalidate_cache();
    }
  }
}


am i do rith way ?

 or what I should do to fix this issue

drupal 7.x civicrm 4.4.11

thank for help



JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: issue when add custom field
January 07, 2015, 05:39:16 am
Dear henro,

I wonder if this was perhaps caused by your efforts to resolve the issue here. Is this 4.4.11 install 100% fresh?

It seems to me that commenting out random bits of CiviCore isn't the solution. I would recommend making sure that all of your URLs / resource paths are set correctly. Feel free to copy and paste them here if you're unsure. You can find them here:

civicrm/admin/setting/path?reset=1
civicrm/admin/setting/url?reset=1

J
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
Re: issue when add custom field
January 07, 2015, 06:20:20 am
thanks for your replay JohnFF

my civicrm has installed on local then i zipp , then i upload and install on production site

is me wrong ?

thanks again

henro

  • I post occasionally
  • **
  • Posts: 115
  • Karma: -1
  • CiviCRM version: 4.5.0
  • CMS version: drupal
  • MySQL version: 4.2.7.1
  • PHP version: 5.2.0
Re: issue when add custom field
January 07, 2015, 06:21:47 am
i also set the url to the right path ( afaik)

JohnFF

  • I post frequently
  • ***
  • Posts: 235
  • Karma: 6
  • CiviCRM version: 4.4.13
  • CMS version: Drupal 7.28
  • MySQL version: 5.5.31-1
  • PHP version: 5.3.27
Re: issue when add custom field
January 08, 2015, 02:40:01 am
Yes henro, there are a lot of things wrong with doing just that.

Firstly you need to check the civicrm.settings.php and settings.php file to check that the URLs and databases in their match what is on your live site.

Secondly you need to check the resource URLs. I doubt they will match what's on your live server.

My recommendation to you is to hire a consultant. They will be able to check these things for you.
If you like empowering charities in a free and open way, then you're going to love Civi.

Email Amender: https://civicrm.org/extensions/email-amender
UK Phone Validator: https://civicrm.org/extensions/uk-phone-number-validator
http://civifirst.com
https://twitter.com/civifirst

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • issue when add custom field

This forum was archived on 2017-11-26.