Results 1 to 4 of 4

Thread: cron.php error in CE6.1.2

  1. #1
    ww
    ww is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Question cron.php error in CE6.1.2

    I added a job in crontab: * * * * * cd /SugarCE; php cron.php /dev/null 2>&1
    but no scheduled job is running, then
    I did the following test:
    run command in SSH: ~/sugarCE/php cron.php
    get the error message:Parse error: syntax error,unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in sugarCE/include/utiles.php on line2609

    I am not sure it is a bug or I did something wrong.
    Please help me out.

  2. #2
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: cron.php error in CE6.1.2

    CE 6.2.4
    Osx Server 10.5.8
    Apache - MySql - Php built-in
    sorry for my good english

  3. #3
    tarunleekha's Avatar
    tarunleekha is offline Senior Member
    Join Date
    Jan 2011
    Posts
    62

    Default Re: cron.php error in CE6.1.2

    hi , pls let me know the solution .... iam also facing same issue .... pls help iam trying to show the alert box at specified time through schedulers

  4. #4
    ww
    ww is offline Junior Member
    Join Date
    Mar 2011
    Posts
    2

    Default Re: cron.php error in CE6.1.2

    Problem solved.
    Because both PHP version 4 and 5 are available in my hosting, the default one is version 4, but sugar need version 5. I have to change the cron job from * * * * * cd /SugarCE; php cron.php /dev/null 2>&1
    to * * * * * cd /SugarCE; php5 cron.php /dev/null 2>&1. My hosting company is 1and1, for other hosting might be use other alias.

    Thanks for all the replies.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Parse error: syntax error, unexpected T_STRING from cron 5.1.0b
    By johnsopaul in forum Installation and Upgrade Help
    Replies: 4
    Last Post: 2008-12-04, 09:54 PM
  2. php - cron job error
    By ksooty in forum Help
    Replies: 4
    Last Post: 2007-07-02, 07:54 AM
  3. Cron - Sugar Log Error
    By aguerrave in forum Help
    Replies: 9
    Last Post: 2006-05-10, 10:57 AM
  4. Cron Error
    By Proware in forum Help
    Replies: 0
    Last Post: 2006-05-08, 09:34 PM
  5. Cron.php error on Mac OS X server
    By siros in forum Help
    Replies: 4
    Last Post: 2006-01-26, 07:14 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •