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 »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Parse error
Pages: [1]

Author Topic: Parse error  (Read 1810 times)

Milarepathemovie

  • Guest
Parse error
July 01, 2007, 09:03:15 pm
Hi,

I just installed drupal, and am trying to add the civicrm module. I went through the first steps listed, and I was able to see the module added in drupal, but after trying to add the module on the site the whole site is giving me this error:

Parse error: syntax error, unexpected ',', expecting '(' in /home/.irene/milarep1/www.milarepamovie.com/drupal/sites/all/modules/civicrm/drupal/civicrm.module on line 432

Any ideas on how to fix it?

thanks!

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Parse error
July 02, 2007, 03:04:52 am
Are you sure you downloaded the right file for your PHP version (PHP 4 vs. PHP 5)? This error usually happens when one installs the PHP 5 version on a PHP 4 server.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Milarepathemovie

  • Guest
Re: Parse error
July 02, 2007, 05:39:44 am
I just check again on dreamhost, and it says I'm running verison 5. I have a feeling it might have to do with the editing the settings.php file since I don't fully understand what I am supposed to do there.

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Parse error
July 02, 2007, 09:53:15 am
There are cases when the host offers both PHP 4 and PHP 5, and assumes PHP 4 for *.php files (and PHP 5 for *.php5 files, for example). Check the Dreamhost documentation and your config (like the .htaccess file).

You can also put
Code: [Select]
<?php
phpinfo
();
?>

in any of the files that get loaded (like drupal/civicrm.module) and thus double-check whether it’s really PHP 5.
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

dmm1673

  • Guest
Re: Parse error
December 10, 2007, 01:13:14 pm
Quote from: Milarepathemovie on July 01, 2007, 09:03:15 pm
Hi,

I just installed drupal, and am trying to add the civicrm module. I went through the first steps listed, and I was able to see the module added in drupal, but after trying to add the module on the site the whole site is giving me this error:

Parse error: syntax error, unexpected ',', expecting '(' in /home/.irene/milarep1/www.milarepamovie.com/drupal/sites/all/modules/civicrm/drupal/civicrm.module on line 432

Any ideas on how to fix it?

thanks!

Did you also check the directory you are in?  Dreamhost for some reason usually adds something to the directory like /.irene/    You could try /home/milarep1/www.milarepamovie.com/drupal/sites/all/modules/civicrm/drupal/civicrm.module on line 432

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Parse error

This forum was archived on 2017-11-26.