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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
Pages: [1]

Author Topic: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.  (Read 2034 times)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 10, 2011, 10:24:52 am
Ran the upgrader today on a 3.3.5 site, newly upgraded (core only thus far) to Drupal 7 and the CiviCRM upgrader seems to have worked perfectly on a DB with 55K contacts, 2500 events and 130K activities. :)

Regarding the wiki CiviCRM 4.0 upgrade page, however, there is a bit of a catch-22 because the official Drupal 7 Upgrade Instructions include "Disable non-core modules" which includes CiviCRM. However the upgrade process for CiviCRM requires CiviCRM to be enabled. I think I shall put a note in the wiki to that effect.

The second issue is the additional settings in civicrm.settings.php. Due to the issue above, I actually ran the installer to get the civicrm menu item in my D7 and also it built a fresh civicrm.settings.php and I see it has a whole set of globals which didn't exist in previous versions. Does the upgrader add those if one upgrades?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 11, 2011, 03:01:24 pm
Quote
Ran the upgrader today on a 3.3.5 site, newly upgraded (core only thus far) to Drupal 7 and the CiviCRM upgrader seems to have worked perfectly on a DB with 55K contacts, 2500 events and 130K activities.
Kool

Quote
Regarding the wiki CiviCRM 4.0 upgrade page, however, there is a bit of a catch-22 because the official Drupal 7 Upgrade Instructions include "Disable non-core modules" which includes CiviCRM. However the upgrade process for CiviCRM requires CiviCRM to be enabled. I think I shall put a note in the wiki to that effect.
feel free to update the docs on wiki.

Quote
The second issue is the additional settings in civicrm.settings.php. Due to the issue above, I actually ran the installer to get the civicrm menu item in my D7 and also it built a fresh civicrm.settings.php and I see it has a whole set of globals which didn't exist in previous versions. Does the upgrader add those if one upgrades?
Nope upgrade does not add new variables to civicrm.settings.php. You will have to manually add it :(

Kurund
Found this reply helpful? Support CiviCRM

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 12, 2011, 06:17:16 am
Quote from: Kurund Jalmi on April 11, 2011, 03:01:24 pm
Nope upgrade does not add new variables to civicrm.settings.php. You will have to manually add it :(

Hmmm. OK, I will try to run some tests to see if that causes any issues, i.e. if one forgets to add those...
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 14, 2011, 01:54:42 am
We ran into the issue of not having the new settings - we installed civicrm using a dummy database, then just copied back the database line to the real database before running the upgrade script.... We'll post them here, if we can easily find the additional settings you can add to your civicrm.settings.php so you don't have to install to a dummy database to get them!!
« Last Edit: April 14, 2011, 02:15:34 am by Andrew Perry »
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 14, 2011, 02:35:03 am
Here's a diff showing the new variables I found - your line numbers may differ!  Something should be added to the wiki - preferably more helpful than this.... perhaps we should just suggest people add these lines to the bottom of their civicrm.settings.php (whereas the first diff below is not quite at the bottom).

209a195,200
>  * Setting to disable or enable profile double optini for add to group in profile
>  * This is disabled by default and functions only if Civimail is enabled.
>  */
>  define( 'CIVICRM_PROFILE_ADD_TO_GROUP_DOUBLE_OPTIN', 0 );
>
> /**

234c225,275
<  *
---
>  * Enables or disables workflow support for CiviMail. Also requires
>  * Drupal AND rules module being enabled
>  */
> define('CIVICRM_CIVIMAIL_WORKFLOW', 0 );
>
> /**
>  * Settings to enable external caching using a Memcache server.  This is an
>  * advanced features, and you should read and understand the documentation
>  * before you turn it on.
>  *
>  * @see http://civicrm.org/node/126
>  */
>
> /**
>  * If you have a memcache server configured and want CiviCRM to make use of it,
>  * set the following to 1.  You should only set this once you have your memcache
>  * server up and working, because CiviCRM will not start up if your server is
>  * unavailable on the host and port that you specify.
>  */
> define( 'CIVICRM_USE_MEMCACHE', 0 );
>
> /**
>  * Change this to the IP address of your memcache server if it is not on the
>  * same machine (Unix).
>  */
> define( 'CIVICRM_MEMCACHE_HOST', 'localhost' );
>
> /**
>  * Change this if you are not using the standard port for memcache (11211)
>  */
> define( 'CIVICRM_MEMCACHE_PORT', 11211 );
>
> /**
>  * Items in cache will expire after the number of seconds specified here.
>  * Default value is 3600 (i.e., after an hour)
>  */
> define( 'CIVICRM_MEMCACHE_TIMEOUT', 3600 );
>
> /**
>  * If you are sharing the same memcache instance with more than one CiviCRM
>  * database, you will need to set a different value for the following argument
>  * so that each copy of CiviCRM will not interfere with other copies.  If you only
>  * have one copy of CiviCRM, you may leave this set to ''.  A good value for
>  * this if you have two servers might be 'server1_' for the first server, and
>  * 'server2_' for the second server.
>  */
> define( 'CIVICRM_MEMCACHE_PREFIX', '' );
>
>
> /**
>  *
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 14, 2011, 02:53:48 am
Thanks for your post. I will update the wiki. Can you tell us what problems you had without those settings?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 14, 2011, 03:28:51 am
We'd just get a blank screen on the CiviCRM upgrade page and the apache2 error.log.

I have updated the WIKI at: http://wiki.civicrm.org/confluence/display/CRMDOC40/Upgrade+Drupal+Sites+to+4.0 in case this is not addressed a different way prior to final release.
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 14, 2011, 08:27:35 am
I added a note about not disabling CiviCRM when upgrading to Drupal 7 and also expanded your section 8 about adding the definitions. I put there the option of running the installer on a dummy DB, which creates the correct civicrm.settings.php file for you.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Andrew Perry

  • I post occasionally
  • **
  • Posts: 98
  • Karma: 1
  • Building empowering tools that comply with rules
    • Community Builders Australia
  • CiviCRM version: 3.x, 4.x
  • CMS version: Joomla 1.0.x, 1.5.x -> Drupal 6.x, 7.x, WordPress
  • MySQL version: 5.1, 5.5, 5.6
  • PHP version: 5.2, 5.3, 5.4
Re: Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.
April 19, 2011, 07:07:09 am
Sounds good - thanks!
Community Builders Australia Pty Ltd
www.communitybuilders.com.au

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 3.4 and 4.0 Releases Testing »
  • Drupal 7 CiviCRM 4.0 beta3 Upgrade Works.

This forum was archived on 2017-11-26.