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) »
  • Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
Pages: [1]

Author Topic: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3  (Read 2727 times)

mrmeech

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 14, 2011, 01:12:10 pm
Hi,

I believe there is a critical issue with views in 4.0.3, where there is an extra ");" and can cause blank white screen after update:

sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc

Line 5928

Can anyone else confirm this?

elichka

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.03
  • CMS version: Drupal 7
  • MySQL version: 14.14
  • PHP version: 5.3.6
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 14, 2011, 03:43:26 pm
Confirmed. Resolved by commenting out line indicated (5928).
views module installed: 7.x-3.0-beta3

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 15, 2011, 07:21:06 am
Had the same issue. Removed the extra ");" from line 5928 and working fine now.

mrmeech

  • I’m new here
  • *
  • Posts: 24
  • Karma: 1
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 15, 2011, 11:26:14 am
Ok - created issue tracker ticket:  http://issues.civicrm.org/jira/browse/CRM-8313

thomjoh

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 15, 2011, 09:16:51 pm
Same as jaymcgraw: Had the same issue. Removed the extra ");" from line 5928 and working fine now.

Thanks for the great software and the great support!  :)

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 18, 2011, 05:47:30 pm
I too encountered this views error and thought I had it fixed by commenting out the offending line. Then I got another error shortly afterwards that I wasn't getting before:

Fatal error: Call to undefined function rules_events_hook_civicrm_arguments() in .../sites/all/modules/civicrm/drupal/modules/civicrm_rules/civicrm_rules.rules.inc on line 58

Not sure if this is connected or a completely separate issue. I've rolled back to 4.02 and everything seems ok - neither error occurs.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 18, 2011, 09:01:36 pm
Both the views issues & the rules issue are fixing in SVN - if you are able to replace the files in the drupal/modules with these 3 files it should be sorted


http://svn.civicrm.org/civicrm/branches/v3.4/drupal/modules/civicrm_rules/civicrm_rules_entities.rules.inc
http://svn.civicrm.org/civicrm/branches/v3.4/drupal/modules/civicrm_rules/civicrm_rules.module
http://svn.civicrm.org/civicrm/branches/v4.0/drupal/modules/views/civicrm.views.inc
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

crispinbailey

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 1
  • CiviCRM version: 4.0.5
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 19, 2011, 10:14:05 am
@Eileen, the new files seem to fix the Views bug - THANKS! - but I'm still getting the Rules error in civicrm_rules.rules.inc on line 58. 

    Fatal error: Call to undefined function rules_events_hook_civicrm_arguments()

Replacing civicrm_rules.rules.inc with the one from 4.02 seems to resolve it.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 19, 2011, 12:15:01 pm
That will do fine. I will check the 4.0.3 version later as have only looked at 3.4.3 version really.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

mat8iou

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
  • CiviCRM version: 4.0.3
  • CMS version: Drupal 7.2
  • MySQL version: 5.0.91
  • PHP version: 5.2.17
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 21, 2011, 09:39:21 am
Thanks for these updated files - they fixed the problem for me and everything seems to be working correctly again now.

carlosmirandalevy

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0.3
  • CMS version: Drupal 7.02
  • MySQL version: 5.1.41
  • PHP version: 5.3.2
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
June 21, 2011, 11:02:45 am
I took a quick look at the other two v3.x files and they can be used to replace their equivalent files in 4.x to avoid errors.

Just navigate to the proper directory and wget the above listed files.

For example (change ~/ for your drupal path in the server):

cd ~/sites/all/modules/civicrm/drupal/modules/civicrm_rules
mv civicrm_rules_entities.rules.inc civicrm_rules_entities.rules.inc.old
mv civicrm_rules.module civicrm_rules.module.old
wget http://svn.civicrm.org/civicrm/branches/v3.4/drupal/modules/civicrm_rules/civicrm_rules_entities.rules.inc
wget http://svn.civicrm.org/civicrm/branches/v3.4/drupal/modules/civicrm_rules/civicrm_rules.module

cd ~/sites/all/modules/civicrm/drupal/modules/views
mv civicrm.views.inc civicrm.views.inc.old
wget http://svn.civicrm.org/civicrm/branches/v3.4/drupal/modules/views/civicrm.views.inc

The install will work correctly.
« Last Edit: June 21, 2011, 05:06:45 pm by Eileen »

jsvasan

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • JS
    • J Srinivasan's website
  • CiviCRM version: None. Intending to start
  • CMS version: Drupal 7+
  • MySQL version: 5.0.92
  • PHP version: 5.2.13
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
July 10, 2011, 01:36:10 pm
I replaced the 3 files through ftp and now get a new error:

Fatal error: Class 'rules_data_type' not found in /sites/all/modules/civicrm/drupal/modules/civicrm_rules/civicrm_rules_entities.rules.inc on line 144

I have a Drupal 7.4 Install and CiviCRM v.4.04

I also dont have access to command line ops.

Help!
Thanks.
JS

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
July 10, 2011, 01:41:47 pm
Can you try moving the stuff from line 144 onwards out of that file into civicrm_rules.rules.inc
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

jsvasan

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • JS
    • J Srinivasan's website
  • CiviCRM version: None. Intending to start
  • CMS version: Drupal 7+
  • MySQL version: 5.0.92
  • PHP version: 5.2.13
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
July 10, 2011, 01:48:55 pm
Thanks for the quick response @Eileen.
Gosh! All I know is to move furniture  :)
I can ftp a file. Thats how far I go  :(
Thanks.
JS

jsvasan

  • I’m new here
  • *
  • Posts: 7
  • Karma: 1
  • JS
    • J Srinivasan's website
  • CiviCRM version: None. Intending to start
  • CMS version: Drupal 7+
  • MySQL version: 5.0.92
  • PHP version: 5.2.13
Re: Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3
July 10, 2011, 02:08:32 pm
Okay.. I just re-extracted v4.04 all over again in the /sites/all/modules and the site is up again  ;D

To be honest, this is my 3rd attempt at getting CiviCRM going!

Thanks!
Thanks.
JS

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Possible Views error in civicrm.views.inc after upgrade from 4.0.2 to 4.0.3

This forum was archived on 2017-11-26.