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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
Pages: [1]

Author Topic: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM  (Read 8459 times)

rjm

  • I post occasionally
  • **
  • Posts: 86
  • Karma: 1
  • CiviCRM version: 4.4.1
  • CMS version: Drupal 6.28
resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
March 12, 2013, 04:06:22 am
When running cli.php from php, we are getting the following error:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/oursite/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/BAO/Settings.php on line 443

Wordpress 3.5.1
CiviCRM 4.3 beta 2

Does anyone know what is going on here or how to fix it? 

Thank you for any tips you can give.

Rob

UPDATE: If you are faced with this issue, look at your PHP version.  This error is a PHP 5.2 error.  We are our server in a dual 5.2/5.3 mode.  The shell must be executing the default 5.2 level as Apache has not been recompiled (and therefore the default libraries for the system) to the PHP 5.3 level.  So if you are getting this error, look at PHP.
« Last Edit: March 13, 2013, 01:15:04 pm by rjm »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
March 14, 2013, 06:21:20 am
And if you don't speak Hebrew and are wondering what "T_PAAMAYIM_NEKUDOTAYIM" means, see here:

http://en.wikipedia.org/wiki/Scope_resolution_operator

:)
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.

Katy J

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 4
    • Third Sector Design
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
June 27, 2013, 09:47:48 am
I'm getting this error on a local instance of a drupal 7/civicrm 4.3.3 site copied from a live server.

I hear that it's a php issue, but can anyone be more explicit about whether there's actually any fix? (and if there is, explain on very simple terms :))

Thank you
Do what you love, it's your gift to the universe

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
June 27, 2013, 10:34:59 am
Fix should be to upgrade PHP to 5.3
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.

jahwah

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
July 19, 2013, 03:22:16 pm
I am running PHP 5.3.13 and am getting this error while enabling/disabling modules using Drush command line tool for Drupal. Modules were enabled/disabled despite the error:

Error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /sites/all/modules/civicrm/CRM/Core/BAO/Setting.php, line 489

Currently running 4.3.4. Will upgrade and report back if that fixes the issue.

EDIT: upgraded to 4.3.5 and still getting above error in Drush when enabling/disabling modules.
« Last Edit: July 24, 2013, 09:43:07 pm by jahwah »

LoganBear

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 1
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.67
  • PHP version: 5.3.28
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
August 08, 2013, 07:47:42 am
I had the same problem.  While the website was using PHP 5.3, the command line php was 5.2,  (php -v).  So I found the path to the php 5.3 on my system and set the php path for crush:

export DRUSH_PHP=/usr/local/php53/bin/php

Once I tested this to make it work, I added it to my .bash_profile

jahwah

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
August 10, 2013, 07:41:17 pm
Thanks LoganBear! That did the trick.

mhm

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
August 13, 2013, 01:56:31 pm
I'm getting this same error (except the line referenced is 489). It does seem that the command line was using an older version of php, but I have updated it so it now confirms via -v that is using php 5.4. (And I've given it about 15 minutes, in case it takes a little while for that change to propagate.)

Are there other solutions I can try? When I've updated some things for a mediawiki install via the command line (where I can specify where it should find php) we've had good luck. Is there a way to run the update via the command line?

jahwah

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
August 13, 2013, 02:06:27 pm
Maybe try logging out and back in again? I think changes to .bash_profile require that to take effect.

mhm

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 2
Re: resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
August 14, 2013, 02:15:46 pm
Ultimately I had to check with my host - apparently there was something in my .htaccess that was conflicting (I thought the changes from the command line would have overridden anything there, but apparently I was wrong). Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.3 Release Testing (Moderator: pdelbar) »
  • resolved: cli.php parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

This forum was archived on 2017-11-26.