Results 1 to 4 of 4

Thread: Cron Fails in Windows Environment

  1. #1
    dmssmgr is offline Member
    Join Date
    Jul 2006
    Posts
    6

    Default Cron Fails in Windows Environment

    CRON.BAT as follows:

    cd E:\Inetpub\wwwroot\sugarcrm
    E:\PHP\php.exe -f cron.php > /dev/null 2>&1
    E:\PHP\php.exe -c E:\WINNT\php.ini -f cron.php

    I get the following FATAL ERROR:

    Call to a member function on a non-object in ...SugarBean.php on line 664

    $query .= $field."='".$GLOBALS['db']->quote(from_html($this->$field))."'";

  2. #2
    florenceit is offline Sugar Community Member
    Join Date
    Apr 2005
    Posts
    123

    Default Re: Cron Fails in Windows Environment

    I am getting the same error running the cron.php from a linux command prompt. it ran once successfully (or rather: there were no errors). now it continues with that exact error. I did some research and found some info (on a dotproject forum) stating its a php5 issue and that the file in querstion needs to be included. I actually have php 4.4.0, and I dont know anythingthing about php coding, anyone have any guidance?

    My exact error is:
    "Fatal Error: Call to a member function on a non-object in /pathtosugar/data/SugarBean.php on line 779"

    mine is a new install of sugarcrm 4.2.1
    trying to import emails ( a way cool feature, cant wait to see it work!)
    thanks!
    Last edited by florenceit; 2006-07-19 at 10:34 PM.

  3. #3
    cywolf's Avatar
    cywolf is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Toronto, Canada
    Posts
    223

    Default Re: Cron Fails in Windows Environment

    I'm pretty sure this is fixed by the 4.2.1a patch; try upgrading to that version.
    Andrew Whitehead
    The Long Reach Corporation
    http://infoathand.com

  4. #4
    florenceit is offline Sugar Community Member
    Join Date
    Apr 2005
    Posts
    123

    Default Re: Cron Fails in Windows Environment

    yes! just applied the patch (4.2.1a) and imported my test emails a-ok, thanks!


    (oh - this is on linux that is.. hopefully this does the trick for the OP - on windows)
    Last edited by florenceit; 2006-07-20 at 12:08 AM.
    Florence I.T. - A community IT shop for Western MA, US

Thread Information

Users Browsing this Thread

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

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
  •