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) »
  • Couple of errors during upgrade from 3 to 4 in drupal 7
Pages: [1]

Author Topic: Couple of errors during upgrade from 3 to 4 in drupal 7  (Read 1111 times)

nsummy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.07
  • CMS version: Drupal 7
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Couple of errors during upgrade from 3 to 4 in drupal 7
November 09, 2011, 09:01:21 pm
I just upgraded drupal from 6 to 7.  Successfully upgraded all modules.  Saved civicrm for last.  Let me first detail a couple of steps that may be causing problems.  I copied my whole drupal installation to a new directory to person all upgrades there (along with a new datasbase with everything imported).  Once done, I will move everything back into the main site.  I created a new database for civicrm, exported everything from the old (current) civicrm database using phpmyadmin then imported it into the new database using the same process.  I then edited civicrm.settings.php to reflect these changes (along with adding the additional code).  I uploaded the new 7 compatible module.  Upon enabling it I receive the following errors:

Notice: Undefined variable: data in civicrm_views_plugins() (line 6917 of /home/j4moreap/public_html/ndo7/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc).
    Notice: Use of undefined constant id - assumed 'id' in civicrm_views_data() (line 4861 of /home/j4moreap/public_html/ndo7/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc).
    Notice: Use of undefined constant id - assumed 'id' in civicrm_views_data() (line 4940 of /home/j4moreap/public_html/ndo7/sites/all/modules/civicrm/drupal/modules/views civicrm.views.inc).
    Notice: Undefined variable: data in civicrm_views_plugins() (line 6917 of /home/j4moreap/public_html/ndo7/sites/all/modules/civicrm/drupal/modules/views/civicrm.views.inc).


When I try to run the upgrade to the civicrm database I get this:


Fatal error: Only variables can be passed by reference in /home/j4moreap/public_html/ndo7/sites/all/themes/bluemasters/page.tpl.php on line 8

Not sure if the 2 errors are related.  Coding is greek to me.  Any clue what could cause this?  Thanks!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Couple of errors during upgrade from 3 to 4 in drupal 7
November 09, 2011, 11:53:35 pm
The fatal error is happening at your theme layer - try switching to Garland before you run the upgrade

The views error is a 'notice' - ie. coding that doesn't meet the latest standards rather than a bug. You can turn off this reporting (& probably should)

http://www.citytree.be/blog/undefined-index-quick-fix-in-drupal7-error-reporting
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

nsummy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.07
  • CMS version: Drupal 7
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Couple of errors during upgrade from 3 to 4 in drupal 7
November 10, 2011, 07:27:18 pm
Thanks for the response, I did both suggestions to no avail, even cleared the cache.  Should that line go anywhere specific in settings.php?  Also, any ideas on the theme issue?  A quick google search shows that others have had the problem but I can't find a solution.  Thanks!

nsummy

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.07
  • CMS version: Drupal 7
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: Couple of errors during upgrade from 3 to 4 in drupal 7
November 21, 2011, 09:26:35 pm
Just to follow up on this in case anyone has the same problem.  The problem was in civicrm.settings.php.  I went through it and forgot to update one of the settings to reflect the new location of my drupal/civicrm installation.  $civicrm_root = ' to be exact.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Couple of errors during upgrade from 3 to 4 in drupal 7

This forum was archived on 2017-11-26.