Results 1 to 2 of 2

Thread: Best pratice to troubleshoot cron.php error

  1. #1
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Question Best pratice to troubleshoot cron.php error

    Hey guys,

    I got some trouble with the cron job. We are using sugar Version 6.1.2. When I try to run the cron from console I get the following error:

    Bad data passed in; <a href= "http://<webservername>/sugar">Return to home</a>
    Fatal error: Class 'LogicHook' not found in <Drive>:\<path>\sugar\include\utils.php on line 2602
    There are no additional information in the sugarcrm.log file. I had a look at the utils.php but I could not found anything telling me 'hey, I'm a wrong code line'.
    The line 2602 is just:

    PHP Code:
        LogicHook::initialize(); 
    Facts about the system:
    Windows system with xampp installation providing sugarCE 6.1.2 . Nearly standard installation, most customizations made in language files or by additional modules.

    Can someone tell me how to figure out what goes wrong with my corn run, please?
    How can i implement this class "LogicHook"?
    Last edited by Gilneas; 2011-04-20 at 08:55 AM. Reason: Added information

  2. #2
    Gilneas is offline Sugar Community Member
    Join Date
    Apr 2010
    Posts
    53

    Thumbs up Re: Best pratice to troubleshoot cron.php error

    Found this kb article
    http://www.sugarcrm.com/kb/tag/cron-jobs/

    I compared my batch file with the one from kb article. The reason for my cron job to fail was that the working directory was not changed to the dir which inherits cron.php.

    The cron job needs a correct working directory.

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. Replies: 3
    Last Post: 2006-10-09, 02:12 PM
  3. Cron Error
    By Proware in forum Help
    Replies: 0
    Last Post: 2006-05-08, 09:34 PM
  4. Help troubleshoot cron...
    By idealer in forum Help
    Replies: 0
    Last Post: 2006-01-25, 11:37 PM
  5. Any way to troubleshoot a data import ?
    By tofoli in forum Help
    Replies: 6
    Last Post: 2005-11-17, 08:23 AM

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
  •