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) »
  • Empty delimiter Error on Upgrade
Pages: [1]

Author Topic: Empty delimiter Error on Upgrade  (Read 1439 times)

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Empty delimiter Error on Upgrade
November 26, 2013, 12:05:47 pm
Hi!
I'm trying to upgrade civicrm from 4.0.7 to 4.4.2. When I launch the upgrade script I get the following error:
Code: [Select]
Warning: strpos() [function.strpos]: Empty delimiter in CRM_Utils_System_Drupal::formatResourceUrl() (line 426 of /kunden/251568_1030/webseiten/crmupdate2/sites/all/modules/civicrm/CRM/Utils/System/Drupal.php).I can't find anything on that error, can anyone help me?
Thanks!
Tosca

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: Empty delimiter Error on Upgrade
November 26, 2013, 11:12:06 pm
Can you check if you have copied files correctly, because CiviCRM 4.4.2 does not have any strpos on line 426 for CRM/Utils/System/Drupal.php

Kurund
Found this reply helpful? Support CiviCRM

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Empty delimiter Error on Upgrade
November 26, 2013, 11:38:04 pm
Hi!
I re-downloaded the files, but I always got that error. I tried another route now and had some success:

1) Upgrade to 4.2.14 (worked!)
2) Backup
3) Attempt upgrade to 4.4.2

However, I got this error during the Upgrade from 4.2.14 to 4.4.2:

Code: [Select]
[Error: Create financial records for contributions]:
[...]
INSERT INTO civicrm_financial_item (transaction_date, contact_id, amount, currency, entity_table, entity_id, description, status_id, financial_account_id, f_trxn_id) SELECT REPLACE(REPLACE(REPLACE(ft.trxn_date, '-', ''), ':', ''), ' ', ''), con.contact_id, IF(ft.total_amount < 0 AND con.contribution_status_id = 3, -li.line_total, li.line_total) as line_total, con.currency, 'civicrm_line_item', li.id as line_item_id, li.label as line_item_label, IF(con.contribution_status_id = 2, 3, ) as status_id, efa.financial_account_id as financial_account_id, ft.id as f_trxn_id FROM civicrm_line_item li INNER JOIN civicrm_contribution con ON (li.entity_id = con.id AND li.entity_table = 'civicrm_contribution') INNER JOIN civicrm_financial_trxn ft ON (con.id = ft.contribution_id) LEFT JOIN civicrm_entity_financial_account efa ON (li.financial_type_id = efa.entity_id AND efa.entity_table = 'civicrm_financial_type' AND efa.account_relationship = 1) WHERE con.contribution_status_id IN (1, 3) OR (con.is_pay_later = 1 AND con.contribution_status_id = 2) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') as status_id, efa.financial_account_id as financial_account_id, ft.id a' at line 7]

We're getting closer though. Thanks for looking into this!


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: Empty delimiter Error on Upgrade
November 27, 2013, 12:06:29 am
Well can't say anything after looking at the error, may be something specific to your install is causing the failure..

Kurund
Found this reply helpful? Support CiviCRM

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: Empty delimiter Error on Upgrade
November 27, 2013, 02:39:24 am
Is this a multi-lingual install? If yes, can you try changing default language to English and then upgrade.

HTh
Kurund
Found this reply helpful? Support CiviCRM

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Empty delimiter Error on Upgrade
November 27, 2013, 02:54:42 am
YES! That did the trick! Thank you, I would never have figured this out myself  :)

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: Empty delimiter Error on Upgrade
November 27, 2013, 02:58:10 am
This looks like a bug in upgrade, can you please file a bug report in issue tracker. Ideally upgrade should work for non-english languages too.

Kurund
Found this reply helpful? Support CiviCRM

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Empty delimiter Error on Upgrade
November 27, 2013, 03:08:03 am
I will! Thanks again for resolving this so quickly!

Edit:
I filed a bug report here: http://issues.civicrm.org/jira/browse/CRM-13847
« Last Edit: November 27, 2013, 07:54:57 am by tosca »

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: Empty delimiter Error on Upgrade
November 29, 2013, 05:38:47 am
Can you try this patch: https://github.com/civicrm/civicrm-core/pull/2122 ( i.e apply this patch to 4.4.2 before upgrade )

Let us know if it works for you..

Kurund
Found this reply helpful? Support CiviCRM

tosca

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
  • CiviCRM version: 4.5.2
  • CMS version: Drupal 7.31
  • MySQL version: 5.6.19-67.0
  • PHP version: 5.4.30
Re: Empty delimiter Error on Upgrade
December 02, 2013, 04:22:46 am
Hi!
I used the workaround you suggested and completed the upgrade, but I still have a copy of the previous state. I'll try the fix asap!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Empty delimiter Error on Upgrade

This forum was archived on 2017-11-26.