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) »
  • Error upgrading from 3.4.7 to 4.3.5
Pages: [1]

Author Topic: Error upgrading from 3.4.7 to 4.3.5  (Read 900 times)

ehowland

  • I’m new here
  • *
  • Posts: 25
  • Karma: 0
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
  • MySQL version: various
  • PHP version: various
Error upgrading from 3.4.7 to 4.3.5
July 31, 2013, 02:16:57 pm
On upgrading I have a problem with resourceBase getting set.

I see many errors like:
warning: strpos(): Empty delimiter in /var/wcadv6/html/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php on line 435.

This refers to these a test in formatResourceUrl(&$url)  It seem this comparison fails:
Code: [Select]
// Handle relative urls
    elseif (strpos($url, $base) === 0) {

This is because $base is empty. It is not set by:
Code: [Select]

static function formatResourceUrl(&$url) {
  $internal = FALSE;
  $base = CRM_Core_Config::singleton()->resourceBase;

I see that JoeCivi had this problem back in June:
http://forum.civicrm.org/index.php/topic,29108.msg124789.html#msg124789

His solution was to follow the advice at:
http://civicrm.org/blogs/spidersilk/best-practices-upgrading-drupal-6-7-and-civicrm-3-4-same-time

I am also following that advice to upgrade on Drupal6 before moving to Drupal7 however I also had this same issue when I did it the other way.

I have seen other posts suggesting that other CRM_Core_Config problems can be browser specific.  I have tried both Firefox and Chrome.

As might be expected if I supply the right answer in formatResourceUrl() that part works but I do not get much farther before it dies again.



Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Error upgrading from 3.4.7 to 4.3.5
August 01, 2013, 05:33:06 am
Not sure why you're getting that error, but I would definitely suggest you try running smaller, incremental upgrades, as that may solve the problem.
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) »
  • Error upgrading from 3.4.7 to 4.3.5

This forum was archived on 2017-11-26.