Results 1 to 4 of 4

Thread: upgrade problem: GLOBALS['db']

  1. #1
    fredman is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    15

    Default upgrade problem: GLOBALS['db']

    i upgraded from 4.2.0.b to 4.2.1

    now i get error messages when cron.php is running, called by a scheduled task:

    -------
    php notice: undefined index: db in ...\data\SugarBean.php on line 779
    php fatal error: call to a member function quote() on a non-object in ...\data\SugarBean.php on line 779
    -------

    the scirpt can't find the var GLOBALS['db']

    can anyone help ?

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

    Default Re: upgrade problem: GLOBALS['db']

    Change $GLOBALS['db'] to $this->db - this has been mentioned a couple times on the board, and will likely be fixed by the 4.2.1a patch later today.
    Andrew Whitehead
    The Long Reach Corporation
    http://infoathand.com

  3. #3
    clint's Avatar
    clint is offline Sugar Team Member | Forums Lead Moderator
    Join Date
    Aug 2004
    Location
    Silicon Valley
    Posts
    2,120

    Default Re: upgrade problem: GLOBALS['db']

    This is fixed 4.2.1 patch A which we just posted.

    See this thread for links to the release notes and the bits.
    Sugar Developer Zone - developer resources | Sugar University - user and admin training
    Sugar Docs - user and admin documentation |
    Sugar Bug Tracker - Enter or view bugs
    SugarForge- open source modules, themes, lang packs | SugarExchange - commercial extensions

    Clint Oram
    Chief Technology Officer and Co-founder
    SugarCRM

  4. #4
    rbarrero is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    21

    Default Re: upgrade problem: GLOBALS['db']

    Not cool.... sooo not cool. Just wasted hours trying to figure this out.

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
  •