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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error with custom search
Pages: [1]

Author Topic: Error with custom search  (Read 651 times)

Tara_Penner

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Error with custom search
April 01, 2010, 04:09:33 pm
Hi there,

I was wondering if some one with a better understanding of PHP could help me troubleshoot a custom search I'm working on.  I've copied CRM/Contact/Form/Search/Custom/ActivitySearch.php to create a new custom search called "FunderActivity.php".

When I run the search I get:  Parse error: syntax error, unexpected T_VARIABLE in /home/wildsigh/public_html/sites/all/modules/civicrm/CRM/Contact/Form/Search/Custom/FunderActivity.php on line 106

I've attached the file with the full search, but line 106 is:

        $form->add( 'text', 'activity_subject', ts( 'Activity Subject' ) );

I'm just not sure what the issue is.  Any help would be greatly appreciated!!

Tara

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: Error with custom search
April 02, 2010, 06:41:37 am
Change line 103

       
Code: [Select]
$form->add('text', 'sort_name', ts('Name'))to
       
Code: [Select]
$form->add('text', 'sort_name', ts('Name'));

Kurund
Found this reply helpful? Support CiviCRM

Tara_Penner

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Error with custom search
April 02, 2010, 08:44:59 am
Thanks Kurund!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error with custom search

This forum was archived on 2017-11-26.