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) »
  • Upgrade error from 3.4.8 to 4.1.beta1 on drupal6
Pages: [1]

Author Topic: Upgrade error from 3.4.8 to 4.1.beta1 on drupal6  (Read 1719 times)

rajm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.beta1
  • CMS version: drupal 6.6
  • MySQL version: 5.1.59
  • PHP version: 5.2.17
Upgrade error from 3.4.8 to 4.1.beta1 on drupal6
December 28, 2011, 01:44:03 pm
I found the following additional error while trying to update a contact after upgrade to 4.1 beta

The contact would not update and the http log error is:

PHP Fatal error: Call to undefined function og_membership_create() in /sites/all/modules/civicrm/CRM/Bridge/OG/CiviCRM.php on line 99, referrer: hostname/civicrm/contact/add?reset=1&action=update&cid=n

Hi!

There were three issues while upgrading from CiviCrm3.4.8 to CiviCrm4.1.beta1 on drupal6. 

First Issue:

While running the upgrade script,  I had the following warnings:

warning: file_get_contents(sites/all/modules/civicrm/drupal/../packages/jquery/jquery.js)[function.file-get-contents]: failed to open stream: No such file or directory in /var/www/html/includes/common.inc on line 2467

Two similar warnings for jquery-ui-1.8.11.custom.min.js and jquery.jstree.min.js

The script completed successfully without any errors.

Upon listing the directory the files are found in:
sites/all/modules/civicrm/packages/jquery folder.

The question I have is whether it is safe to ignore the warnings or anything needs to be updated for the correct jquery path?

Second Issue:
After upgrade, the screen would go blank rather than accessing drupal.  Upon checking the http error log files, the following error was found:
PHP Parse error: syntax error, unexpected T_VARIABLE, expecting ')' in /sites/all/modules/civicrm/CRM/Grant/BAO/Query.php on line 271.

The original function was
static function defaultReturnProperties ($mode
                                                               $includeCustomFields = true) {....}
On adding the comma between the field names, the program started to behave properly and the blank screen problem disappeared.

Third Issue:
The drupal modules page is still showing CiviCrmModule version as 3.4 instead of 4.1.  I don't know if this will affect any future upgrade?

The above issues may please be fixed in the download file for the convenience of others.

Thanks,
Raj


« Last Edit: December 28, 2011, 04:31:34 pm by rajm »

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade error from 3.4.8 to 4.1.beta1 on drupal6
December 28, 2011, 10:35:55 pm
First I hope you are using civicrm-4.1.beta1-drupal6.tar.gz from http://sourceforge.net/projects/civicrm/files/civicrm-latest/4.1.beta1/

Can you try clearing drupal cache and delete files/civicrm/template_c folder?

HTh
Kurund
Found this reply helpful? Support CiviCRM

rajm

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.1.beta1
  • CMS version: drupal 6.6
  • MySQL version: 5.1.59
  • PHP version: 5.2.17
Re: Upgrade error from 3.4.8 to 4.1.beta1 on drupal6
December 29, 2011, 07:27:43 pm
Hi!

I did download the right tar file as mentioned by you.

I did flush the cache and I did delete the templates_c folder, but still the errors persist.

On further research I found that og_membership_create is a function of og.module for Driupal 7 whereas Drupal6 og.module does not have any such function.  I am a newbie and I may be wrong, but it looks like that og_module functions are not the same in Drupal6 and 7.  I disabled the civicrm_og_sync module and tried to update contact and it seems to have worked.  Tomorrow I will add new contacts and see what happens.

I would appreciate any help on the following:

I have upgraded civcirm to 4.1 beta on drupal 6.6

Will it be safe to upgrade drupal to 7 and download the 4.0 civicrm pacakge for drupal 7 since I already have civicrm 4.1beta for drupal6? or will it make it worse.

Any help will be greatly appreciated.
Thanks for your help in advance
Raj

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Upgrade error from 3.4.8 to 4.1.beta1 on drupal6
January 04, 2012, 09:50:39 pm
Quote
On further research I found that og_membership_create is a function of og.module for Driupal 7 whereas Drupal6 og.module does not have any such function.  I am a newbie and I may be wrong, but it looks like that og_module functions are not the same in Drupal6 and 7.  I disabled the civicrm_og_sync module and tried to update contact and it seems to have worked.  Tomorrow I will add new contacts and see what happens.

It is possible that it might be bug in civicrm_og_sync module.

Quote
Will it be safe to upgrade drupal to 7 and download the 4.0 civicrm pacakge for drupal 7 since I already have civicrm 4.1beta for drupal6? or will it make it worse.
Since you are already on 4.1 beta1 I would do following:
1. Upgrade to drupal 7
2. install 4.1 beta1 for drupal 7 ( or wait for next beta release )

HTh

Kurund
Found this reply helpful? Support CiviCRM

bcaldwell

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
    • Pushing7
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.31
  • PHP version: 5.3.10
Re: Upgrade error from 3.4.8 to 4.1.beta1 on drupal6
June 12, 2012, 03:52:18 pm
Upgrading to D7 on my site isn't an option at the moment. Any chance we'll see a fix for this in the D6 version. I As long as I have CiviCRM OG Sync enabled, I'm unable to edit contacts in CiviCRM.

Looks like if the D6 version were to call og_group instead of og_membership_create it might work as expected, but I'd appreciate any advice from others who may have tackled this before I jump in.

Thanks,

-Ben

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade error from 3.4.8 to 4.1.beta1 on drupal6

This forum was archived on 2017-11-26.