Parse error: syntax error, unexpected T_START_HEREDOC

496 views
Skip to first unread message

Ivan Rivera

unread,
Jul 30, 2013, 8:44:18 AM7/30/13
to ica-ato...@googlegroups.com
Hi everyone,

I made a fresh install of ICA ATOM 1.3.1 on a Webfaction webserver, following all the instructions of the installation documentation and the software pre-requisites, and when i tried to run any command with the "symfony" file like " php symfony cc"  i got a syntax error: Parse error: syntax error, unexpected T_START_HEREDOC in /home/username/webapps/icaatom/lib/task/runCustomLogicTask.class.php on line 34. I read this topic [1] but no solution where provided; my installation enviroment had PHP 5.4.16 and MySQL 5.5.30.

Thanks,

Iván Rivera

[1] https://groups.google.com/forum/#!searchin/ica-atom-users/$20T_START_HEREDOC%7Csort:relevance/ica-atom-users/U_KThcWZRhw/xinQHYAx6j0J

Jesús García Crespo

unread,
Jul 30, 2013, 10:31:44 AM7/30/13
to ica-ato...@googlegroups.com
Hi Ivan,

I'm using PHP 5.4.17 here, and it seems to work fine for me.

The syntax check works as shown below:

$ php -l lib/task/runCustomLogicTask.class.php
No syntax errors detected in lib/task/runCustomLogicTask.class.php

Can you try the same?

$ php -v
PHP 5.4.17-1~precise+1 (cli) (built: Jul 17 2013 18:14:06)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies


--
You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ica-atom-users/428a1842-604a-4df8-898a-e62a99f6c9b1%40googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Jesús García Crespo,
Software Engineer, Artefactual Systems Inc.
http://www.artefactual.com | +1.604.527.2056

Jesús García Crespo

unread,
Jul 30, 2013, 10:39:58 AM7/30/13
to ica-ato...@googlegroups.com
Ok, I've seen your response in the other thread. Let's use this one.

So you run php -v and this is what you got:

Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies 

I've never seen that before. Is ionCube a fork of PHP or something like that? I'd recommend you to use the official PHP release that you can find under the php.net domain. I've been testing AtoM in PHP 5.4 and it works great, but we never used a stack different than the standard, that may be your problem.
 

Ivan Rivera

unread,
Jul 30, 2013, 11:03:44 AM7/30/13
to ica-ato...@googlegroups.com
This is what i got when i run php -l lib/task/runCustomLogicTask.class.php

Parse error: syntax error, unexpected T_START_HEREDOC in lib/task/runCustomLogicTask.class.php on line 35
Errors parsing lib/task/runCustomLogicTask.class.php

Ivan Rivera

unread,
Jul 30, 2013, 11:06:10 AM7/30/13
to ica-ato...@googlegroups.com
I will try to make another fresh installation but with PHP 5.3 and tell you if it worked.

Jesús García Crespo

unread,
Jul 30, 2013, 11:05:49 AM7/30/13
to ica-ato...@googlegroups.com
Definitely some weird stuff going on with your PHP interpreter.
Is there any chance of installing the official release?


You received this message because you are subscribed to the Google Groups "ICA-AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ica-atom-user...@googlegroups.com.
To post to this group, send email to ica-ato...@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jesús García Crespo

unread,
Jul 30, 2013, 11:07:20 AM7/30/13
to ica-ato...@googlegroups.com
On Tue, Jul 30, 2013 at 8:06 AM, Ivan Rivera <ivanj...@gmail.com> wrote:
I will try to make another fresh installation but with PHP 5.3 and tell you if it worked.
 
I'd recommend PHP 5.4 as it is faster, but don't use unofficial releases.

--
Jesús García Crespo

Ivan Rivera

unread,
Jul 30, 2013, 11:18:48 AM7/30/13
to ica-ato...@googlegroups.com
I can't is a shared webhost. I create a ticket on Webfaction, hope they fix it.

Jesús García Crespo

unread,
Jul 30, 2013, 11:20:45 AM7/30/13
to ica-ato...@googlegroups.com
On Tue, Jul 30, 2013 at 8:18 AM, Ivan Rivera <ivanj...@gmail.com> wrote:
I can't is a shared webhost. I create a ticket on Webfaction, hope they fix it.

If you are looking for alternatives, I tried these unmanaged virtual private servers @ DigitalOcean for 5$/mo. and they are pretty good: https://www.digitalocean.com/pricing - AtoM works great there if you don't have much traffic.

Ivan Rivera

unread,
Jul 30, 2013, 9:19:51 PM7/30/13
to ica-ato...@googlegroups.com
Hi again,


For every user that uses Webfaction you need to know that the default PHP is the 5.2 version. To run any ICA-AtoM file with php you need to append "54" to the php command like this  "php54 symfony cc & php54 symfony cc"
Reply all
Reply to author
Forward
0 new messages