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 »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • New error
Pages: [1]

Author Topic: New error  (Read 2249 times)

mixxmedia

  • Guest
New error
July 23, 2007, 02:21:27 pm
I am calling up Profiles on a Joomla front end. The Profile displays, but when we try to perform a Search function we get the following error:

Fatal error: Call to undefined function: explode() in /usr/home/insaradm/public_html/test/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact.php on line 1832

We have made sure that the Search box is ticked within each of the Profile settings.

Anywhere else we should be looking?

thanks

mxm

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: New error
July 23, 2007, 04:05:19 pm

What version of php are you using?

explode is a standard php function that we use in quite a few places in the code: http://nz2.php.net/manual/en/function.explode.php

so the below error is indeed quite strange. Are u using an accelerator?

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

mixxmedia

  • Guest
Re: New error
July 23, 2007, 07:21:19 pm
php v4.4.4

mxm

mixxmedia

  • Guest
Re: New error
July 23, 2007, 07:58:40 pm
line 1832 in the Contact.php file that the error refers to reads

list( $fieldName, $id, $type ) = CRM_Utils_System::explode( '-', $name, 3 );

Could there be something in the System.php file that's missing?


mxm

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: New error
July 24, 2007, 01:44:57 am

The function explode should be present in CRM/Utils/System.php. You can check and ensure that it is there

The error is a php error that does not make sense in this case. am a bit lost here to help out meaningfully :(

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

mixxmedia

  • Guest
Re: New error
July 24, 2007, 07:16:34 am
Perhaps a clean install of v1.7 is the answer?  :'(

Thanks anyway

mxm

mixxmedia

  • Guest
Re: New error
July 24, 2007, 11:25:28 am
I did a clean install of the latest v1.7 and the problems have cleared themselves.

BTW, another tech support offered this solution:

It looks to me that you are using the explode function using negative limits, "explode( '-', $name, 3 );" Support for negative limits is only supported with php 5.1


My host currently only has php4.4.4, but that wouldn't explain why a clean install of the latest version resolved the issue.

Thanks anyway

mxm

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • New error

This forum was archived on 2017-11-26.