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 »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • parse error
Pages: [1]

Author Topic: parse error  (Read 3916 times)

sincera

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: wordpress
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
parse error
February 15, 2012, 10:53:29 pm
I'm getting parse error
Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\wordpress\wp-content\plugins\civicrm\civicrm.settings.php on line 128
I'm using xampp 1.7.7 in windows xp
civicrm.settings.php
127 $civicrm_root = 'C:\xampp\htdocs\wordpress/wp-content/plugins\civicrm\civicrm\';

128 define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\\xampp\\htdocs\\wordpress/wp-content/plugins\\files\\civicrm\\templates_c\\' );

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: parse error
February 15, 2012, 11:13:49 pm
Try changing it to??
Code: [Select]
128 define( 'CIVICRM_TEMPLATE_COMPILEDIR', 'C:\xampp\htdocs\wordpress/wp-content/plugins\files\civicrm\templates_c\' );
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

sincera

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: wordpress
  • MySQL version: 5.5.16
  • PHP version: 5.3.8
Re: parse error
February 15, 2012, 11:26:05 pm
Thanks for your reply but didn't work ???

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: parse error
February 15, 2012, 11:27:39 pm
Strange, I can not see anything wrong with the statement itself.......
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

ljelewis

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.1
  • CMS version: Wordpress 3.3.2
  • MySQL version: 5.0.8
  • PHP version: 5.3.8
Re: parse error
June 12, 2012, 07:53:04 am
A bit late but what you need to do is double-up the backslashes on line 127 like so:

127 $civicrm_root = 'C:\\xampp\\htdocs\\wordpress/wp-content/plugins\\civicrm\\civicrm\\';

maoski

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: Version 4.1.3
  • CMS version: Wordpress 3.4
  • MySQL version: 5.5.16-log
  • PHP version: 5+
Re: parse error
June 19, 2012, 02:55:32 pm
Quote from: ljelewis on June 12, 2012, 07:53:04 am
A bit late but what you need to do is double-up the backslashes on line 127 like so:

127 $civicrm_root = 'C:\\xampp\\htdocs\\wordpress/wp-content/plugins\\civicrm\\civicrm\\';

thank you @ljelewis that worked for me :)

adamsteele

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.0.beta3
  • CMS version: Drupal 7, Joomla 1.6
  • MySQL version: 5.0.8-dev - 20102224 - $Revision: 310735
  • PHP version: 5.3.8
Re: parse error
March 15, 2014, 11:35:50 pm
Hi ljelewis,

If, I may put in a bit of appreciation for your solution to this issue.
It was spot on and accurate.  :)
The line directly above define( 'CIVICRM_TEMPLATE_COMPILEDIR' defines the $civicrm_root.
Replacing all single backslashes with doubled backslashes worked instantly.

Thank you and very much appreciated.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • parse error

This forum was archived on 2017-11-26.