Howdy folks;

Question, has anyone had issues setting up CiviCRM to run within 4.7? I've had the following paraphrased error as follows:

Parsing Error: Unexpected '%'in .... on line 1 .

Looking at other posts, according to more than a few, this is cuased when a specific version of php is not compatiable with the module. However, I loaded the php5 version of the module, and i know for certain that my hosting company is running php5 on their side as well. I even tried loading CiciCRM for php4 just for testing and got the same parsing error.

I'm oh so close to getting this module going, but this is an essential one as the site is for a non-profit. Any suggestions? Thanks, as I've seen more than a few people running into this same issue. Thanks!

Heres a few bits about what I'm running if that's useful:

PHP version 5.0.4
MySQL version 4.1.19-standard

Mike
911 Media Arts Center

Comments

dgeilhufe@yahoo.com’s picture

So we have only seen this error with the PHP4/5 issue you already ruled out. Next step is to go to the CRM-dev email list and get some ideas from the crew there.
http://www.openngo.org/mailinglists.html

David Geilhufe
Managing Partner, CivicSpace

kirkcaraway’s picture

Here is what I am getting when I just installed civicrm on Drupal 4.7:

Parse error: parse error, unexpected '.', expecting '(' in /home/renot2/public_html/drupaltest/modules/civicrm/civicrm.module on line 134

Has anyone else run into this?

smikey’s picture

from what they told me on the mailing list; this has to do with which version of php your running. this error occurs when one installs a version of civicrm that's not compatible with which type of php is installed on your server.

however, i did install the correct version on my site, and STILL get this error. when posting this question to the mailing list, no one responded to me... :( make sure you know which versions of php and sql you are running, and install the appropriate module...

jsimonis’s picture

I've run into this as well.

I deleted the files and tried a little bit older version of CiviCRM-- php4-v1.4-rev5723M as opposed to php4-v1.4-rev6012M.

Everything now works fine.

--
Jenni S.

jsimonis’s picture

Actually, I was wrong. It got rid of that error, but now there's another problem-- the user registration page doesn't show up.

I've commented about this on another issue report where someone was reporting the same error showing up.

--
Jenni S.

jsimonis’s picture

Apparently the problem that causes this error on line 134 is that there are two civicrm modules installed: one in the modules/civicrm directory and one in the modules/civicrm/modules directory.

Remove the one in the modules/civicrm directory, and then move the one from the modules/civicrm/modules to the modules/civicrm directory. Doing this removed the error for me.

--
Jenni S.

trantt’s picture

Folks,

According to wiki.civicrm.org website, we need to unzip all civicrm version 1.4 files to modules/civicrm folder. What's about civicrm.module that I downloaded from drupal website? Should I drop it into the same modules/civicrm folder?

Thanks

jsimonis’s picture

I'm using the civicrm.module that comes with the CiviCRM files, not the one off the Drupal site.

--
Jenni S.

trantt’s picture

Just installed CivicCrm 4.7 module and got the below message when click on the Adminstration/Module

Parse error: parse error, unexpected '.', expecting '(' in .../modules/civicrm/civicrm.module) on line 134

I don't think this had anything to do with PHP version number. I'm using php 4 (which is standard with drupal) and still having the same problem.

pwolanin’s picture

I just got CiviCRM working with Druapl 4.7 using PHP 4.4.2. I had a different (but similarly cryptic) error that killed me at first, but which eventually turned out to be my own fault (more or less) because of the values I entered into civicrm.settings.php.

FYI, I downlaoded the latest version from OpenNGO.org: civicrm-drupal-php4-v1.4-rev6012M

---
Work: BioRAFT

trantt’s picture

pwolanin,

can you send me the link to the installation documentation? I downloaded it from OpenNGO.org but have no idea how to install it.
Also, I droped the folder into the drupal module and it was complained about civicrm.settings.php. Can you tell me what it is?

Thanks

pwolanin’s picture

I just used the OpenNGO website installation guide:

http://wiki.civicrm.org/confluence/display/CRM/CivicSpace+and+Drupal+-+M...

---
Work: BioRAFT

jsimonis’s picture

Could you explain the error that was causing it, so we can make sure we're not doing the same thing?

thanks!

--
Jenni S.

pwolanin’s picture

I got a fatal PHP error, so if you're futher along than that, it's probably not the same error.

See: http://issues.civicrm.org/jira/browse/CRM-1114

---
Work: BioRAFT