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) »
  • mb_string extension causes PHP error, unable to access site
Pages: [1]

Author Topic: mb_string extension causes PHP error, unable to access site  (Read 1162 times)

Wonder95

  • Guest
mb_string extension causes PHP error, unable to access site
April 14, 2008, 08:44:31 pm
My CiviCRM site was running fine, and then the mb_string PHP extension was added.  Now, I am unable to get to any page on my site, because I get this message:

Code: [Select]
Parse error: syntax error, unexpected ',', expecting '(' in /home/campus/public_html/members/sites/all/modules/civicrm/drupal/civicrm.module on line 477

The offending code is this starting at line 475:
Code: [Select]
    if ( $userID ) {
        $html = CRM_Core_BAO_UFGroup::getEditHTML( $userID, '',
                                                   CRM_Core_Action::UPDATE, true,
                                                   $reset, null,
                                                   $doNotProcess, $ctype );
    }

so line 477 is the line with "CRM_Core_Action::UPDATE, true".

Does CiviCRM have any known issues with the mb_string extension?

Thanks.

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: mb_string extension causes PHP error, unable to access site
April 14, 2008, 09:29:18 pm

1. please do a search before you post a new topic

2. if you do a search on "civicrm.module 477" you will see one of your own posts and a few others that will give you the most likely cause, i.e. php4 instead of php5 which civicrm needs

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

Wonder95

  • Guest
Re: mb_string extension causes PHP error, unable to access site
April 15, 2008, 07:30:58 am
Thanks for the "suggestions", but when I do that search, all I get is this thread.  In addition, PHP had already been upgraded on my server, so my assumption was that I was already running PHP 5 (as indicated by my other threads).  It turned out to be something in my .htaccess.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • mb_string extension causes PHP error, unable to access site

This forum was archived on 2017-11-26.