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) »
  • CiviCRM 2.2.8 to 3.1.2 upgrade error
Pages: [1]

Author Topic: CiviCRM 2.2.8 to 3.1.2 upgrade error  (Read 1523 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
CiviCRM 2.2.8 to 3.1.2 upgrade error
February 14, 2010, 12:59:36 pm
Hello,

I hit the following error upgrading 2.2.8 to 3.1.2

Symptom = White screen on CiviCRM homepage

warning: require_once(CRM/Contact/Page/View/DashBoard.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/d6c22-html/sites/all/modules/civicrm/CRM/Core/Invoke.php on line 188.

The entry in the civicrm_menu is set to this value which presumably should have changed during the upgrade:


mysql> select page_callback from civicrm_menu where path = 'civicrm';

I was able to fix it with this SQL

Update civicrm_menu set page_callback = 's:26:"CRM_Contact_Page_DashBoard";'
WHERE page_callback = 's:31:"CRM_Contact_Page_View_DashBoard";'
+-----------------------------------------+
| page_callback                           |
+-----------------------------------------+
| s:31:"CRM_Contact_Page_View_DashBoard"; |
+-----------------------------------------+
1 row in set (0.00 sec)

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 14, 2010, 01:18:14 pm
Also had to run this

Update civicrm_menu set page_callback = 's:29:"CRM_Contact_Page_View_Summary";'
WHERE page_callback = 's:28:"CRM_Contact_Page_View_Tabbed";';
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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 14, 2010, 01:45:50 pm

can u send me the 2.2.8 DB?

upgrade is supposed to call menu/rebuild which fixes the menu structure. seems like there is a bug in there somewhere. a few other folks have also reported issues and we'd like to track and fix before 3.1.3

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 15, 2010, 10:57:20 pm
Eileen,

After upgrade process, did you click on "Return to Home page"? When you click on that it will do menu rebuild..

Kurund

Found this reply helpful? Support CiviCRM

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 15, 2010, 11:05:20 pm
I can't remember specifically. If it looked like a step that was part of the upgrade I would have but if it just looked like a navigation option I may not have.
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

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: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 15, 2010, 11:20:50 pm
You get this link on success page screen. I think may be we should explicitly change this link to something like "Click here to finish upgrade process" so that people don't miss it.

Kurund
Found this reply helpful? Support CiviCRM

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 16, 2010, 01:24:35 pm
That makes sense. Otherwise it sounds optional
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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 17, 2010, 11:40:55 am

i think we should do this automatically. why do people need to click to do it?

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: CiviCRM 2.2.8 to 3.1.2 upgrade error
February 17, 2010, 04:17:47 pm
FYI, 2 out of 2 of my upgrades from 3.0.4 to 3.1.2 have resulted in a blank Dashboard page and this error on any page except the Dashboard.  After each upgrade, CiviCRM reported success.  I did not click "return to home page" as Kurund suggested.


warning: require_once(CRM/Contact/Page/View/DashBoard.php) [function.require-once]: failed to open stream: No such file or directory in /home/amprogress/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php on line 188.


This solves the problem:
http://<drupal_site>/index.php?q=civicrm/menu/rebuild&reset=1

I agree with Kurund is that if clicking "return to home page" is now required to prevent errors, then it should at the very least say something instead like "Click here to finish the installation" or something that indicates it is not an optional step.  Even better is to rebuild the menus automatically, as Lobo suggests.
« Last Edit: February 17, 2010, 10:15:29 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • CiviCRM 2.2.8 to 3.1.2 upgrade error

This forum was archived on 2017-11-26.