Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CiviCRM 5.x Fancy Participant Search Throws Error - 'Call to undefined function split()' #4

Open
zkrebs opened this issue Aug 9, 2019 · 1 comment

Comments

@zkrebs
Copy link

zkrebs commented Aug 9, 2019

Error: Call to undefined function split() in CRM_Eventhelper_Form_Search_FancyParticipantSearch->__construct() (line 43 of /sites/all/modules/civicrm_extensions/com.fountaintribe.eventhelper/CRM/Eventhelper/Form/Search/FancyParticipantSearch.php).

CiviCRM 5.11.0

If I change line 43 of /com.fountaintribe.eventhelper/CRM/Eventhelper/Form/Search/FancyParticipantSearch.php

from

$tmp_cur = split('_' ,$curUserChoice );

to

$tmp_cur = explode('_' ,$curUserChoice );

Then it works. I believe split() was deprecated and removed in PHP 7.0
https://phppot.com/php/reasons-why-split-is-deprecated/

@zkrebs zkrebs changed the title Fancy Participant Search Throws Error CiviCRM 5.x Fancy Participant Search Throws Error - 'Call to undefined function split()' Aug 9, 2019
@zkrebs
Copy link
Author

zkrebs commented Aug 9, 2019

oops, already solved

13dba7c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant