Results 1 to 2 of 2

Thread: ERROR : X-Powered-By: PHP/5.2.17 Content-type: text/html cron.php is CLI only.

  1. #1
    shantypath is offline Junior Member
    Join Date
    Jul 2011
    Posts
    3

    Default ERROR : X-Powered-By: PHP/5.2.17 Content-type: text/html cron.php is CLI only.

    I am using SugarCRM CE
    on Windows Server

    I have scheduled the cron job
    But when the Cron.php is executed, I get this output in my email

    X-Powered-By: PHP/5.2.17
    Content-type: text/html

    cron.php is CLI only.


    I browsed the forum, i got some steps which suggests that i have to comment few lines in cron.php
    i did that, and cron.php got executed,
    But the task like check email etc arent functioning as it should be, though it shows that last executed time as it was just executed.

    doubt the the commented lines

    //$sapi_type = php_sapi_name();
    //if (substr($sapi_type, 0, 3) != 'cli') {
    // sugar_die("cron.php is CLI only.");
    //}

    are causing this problem.

    I am confused.

  2. #2
    jmertic's Avatar
    jmertic is offline Sugar Community Manager
    Join Date
    Dec 2007
    Posts
    3,996

    Default Re: ERROR : X-Powered-By: PHP/5.2.17 Content-type: text/html cron.php is CLI only.

    What is the call php_sapi_name() returning?
    John Mertic
    Sugar Community Manager

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Client found response content type of 'text/html', but expected 'text/xml'
    By jitchavan in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2008-07-11, 07:05 AM
  2. Replies: 0
    Last Post: 2008-07-11, 06:06 AM
  3. Replies: 0
    Last Post: 2008-07-11, 06:04 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
  •