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) »
  • PHP errors - how to define which version of PHP CiviCRM should use?
Pages: [1]

Author Topic: PHP errors - how to define which version of PHP CiviCRM should use?  (Read 447 times)

KGates

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.4.2
  • CMS version: Drupal
  • MySQL version: 5.1.72
  • PHP version: 5.3.18
PHP errors - how to define which version of PHP CiviCRM should use?
July 03, 2014, 05:06:25 pm
Hello:
My hosting company up and upgraded by dedicated server to php 5.3 which caused major problems for my Drupal 6 legacy sites. So they set it up so that I could add a line in the .htaccess files for each of the Drupal 6 sites telling them to use PHP 5.2. ("AddHandler application/x-httpd-php52 .php")
This actually worked great and those sites are now running php 5.2 no problem.

Except for the one site that uses CiviCRM. Somewhere, CiviCRM is still using PHP 5.3 and this is causing it to break badly.
http://aqueduct.org.

"Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/hdaly/public_html/sites/aqueduct.org/modules/civicrm/CRM/Core/DAO.php on line 1321"

Does anyone out there know how to tell CiviCRM to use PHP 5.2 instead of the default on the server?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: PHP errors - how to define which version of PHP CiviCRM should use?
July 05, 2014, 02:03:46 pm
If the .htaccess fix worked for the other sites, it should work for this one also. CiviCRM is not special in any way that it's immune to .htaccess. :)

Are the other sites Drupal? The status report page says 6.2? What does that page say for this site?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Chris Burgess

  • Ask me questions
  • ****
  • Posts: 675
  • Karma: 59
Re: PHP errors - how to define which version of PHP CiviCRM should use?
July 05, 2014, 05:56:07 pm
Sounds like CiviCRM is breaking because you've told it to run in PHP5.2 when CiviCRM requires PHP5.3.3+

You are going to have to let that Drupal site run PHP5.3 I'm afraid, not the other way around.
@xurizaemon ● www.fuzion.co.nz

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • PHP errors - how to define which version of PHP CiviCRM should use?

This forum was archived on 2017-11-26.