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) »
  • From 4.2.6 to 4.3.1 upgrade script error
Pages: [1]

Author Topic: From 4.2.6 to 4.3.1 upgrade script error  (Read 612 times)

Micah Lee

  • I post occasionally
  • **
  • Posts: 31
  • Karma: 4
  • CiviCRM version: 4.1.0
  • CMS version: Drupal 7
  • MySQL version: 5.1.49
  • PHP version: 5.3.3
From 4.2.6 to 4.3.1 upgrade script error
May 02, 2013, 10:48:43 am
I'm upgrading my development site to CiviCRM 4.3.1 following these instructions http://wiki.civicrm.org/confluence/display/CRMDOC43/Upgrade+Drupal+Sites+to+4.3+-+Drupal+7. After replaces the old civicrm with the new ones, I tried running the upgrade script at civicrm/upgrade?reset=1, but it throws this error:

Code: [Select]
Fatal error: [] operator not supported for strings in /www/civitest/docs/sites/all/modules/civicrm/CRM/Core/Session.php on line 508
My googling seems to indicate that no one else has seen this error. Here's the function in question (with line numbers):

Code: [Select]
488   static function setStatus($text, $title = '', $type = 'alert', $options = array()) {
489     // make sure session is initialized, CRM-8120
490     $session = self::singleton();
491     $session->initialize();
492
493     // default options
494     $options += array('unique' => TRUE);
495
496     if (!isset(self::$_singleton->_session[self::$_singleton->_key]['status'])) {
497       self::$_singleton->_session[self::$_singleton->_key]['status'] = array();
498     }
499     if ($text) {
500       if ($options['unique']) {
501         foreach (self::$_singleton->_session[self::$_singleton->_key]['status'] as $msg) {
502           if ($msg['text'] == $text && $msg['title'] == $title) {
503             return;
504           }
505         }
506       }
507       unset($options['unique']);
508       self::$_singleton->_session[self::$_singleton->_key]['status'][] = array(
509         'text' => $text,
510         'title' => $title,
511         'type' => $type,
512         'options' => $options ? json_encode($options) : NULL,
513       );
514     }
515   }

Any ideas how I can start troubleshooting? Thanks!

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: From 4.2.6 to 4.3.1 upgrade script error
May 05, 2013, 08:01:07 am
No one may have had this issue with CiviCRM, but the error itself has been discussed in other contexts. I don't know what the issue is for you, but I would try

print_r(self::$_singleton->_session[self::$_singleton->_key]);die;

just before 508 to see what's going on.
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.

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

This forum was archived on 2017-11-26.