Results 1 to 5 of 5

Thread: Problem Accepting Meetings in 2.4.1 Upgrade

  1. #1
    RupertF is offline Junior Member
    Join Date
    Jul 2006
    Posts
    3

    Default Problem Accepting Meetings in 2.4.1 Upgrade

    Hi,

    I think I've found a problem when upgrading to Sugar 2.4.1....

    Our users complained that when they were clicking the link to accept an emailed meeting request, they were getting the errors:

    Notice: Undefined index: db in
    /var/www/html/SugarSuite-Full-4.2.0a/data/SugarBean.php on line 3035

    Fatal error: Call to a member function quote() on a non-object in /var/www/html/SugarSuite-Full-4.2.0a/data/SugarBean.php on line 3035

    Obv, I had turned php display_errors on, otherwise they just get nothing!

    After a bit of hunting, I believe I've solved the problem. It appears that during the upgrade the $GLOBAL['db'] variable was replaced by $this->db, moving away from Globals towards Classes. Think that there are three instances of $GLOBAL['db'] in the /data/SugarBean.php file that needs to be changed.

    If this is right, hurray! - I've fixed it. However, if I'm being amazingly stupid can someone let me know before I break anything else!

    Thanks in advance,

    Rupes

  2. #2
    jhardebeck is offline Sugar Community Member
    Join Date
    Nov 2004
    Posts
    11

    Default Re: Problem Accepting Meetings in 2.4.1 Upgrade

    Rupes,

    You mean 4.2.1, right?

    I encountered this same issue today after upgrading yesterday. What exactly did you do to fix the issue? You replaced 3 instance of something with something in sugarbean.php, correct? I want to make sure I make the correct changes; would be great if you could post exactly what you did for a non-PHP programmer!

    Thanks!

    Jason

  3. #3
    RupertF is offline Junior Member
    Join Date
    Jul 2006
    Posts
    3

    Default Re: Problem Accepting Meetings in 2.4.1 Upgrade

    Yeah, 4.2.1!! Obviously not that good at typing...

    In the SugarBean.php file, there are three instances of $GLOBAL['db'] that need to be replaced with $this->db. So, all you need to do really is open the file in notepad, vi or whatever, search for $GLOBAL['db'], and replace it with $this->db . That'll fix the problem, and if your not a php person and really don't want to know why it does this then don't worry.

    Basically, I think original versions of Sugar registered the database type/name as a global variable, so the every subsiquent script could then use this to reference to the database. Upgrading to 4.2.1 means that this is now replaced with a class, allowed the database and subsiqent function that need to be applied to it to be referenced easiler, and more securely...

  4. #4
    alfonso_ce is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    21

    Default Re: Problem Accepting Meetings in 2.4.1 Upgrade

    I can't find any $GLOBAL['db'] antry in my SugarBean.php file!?

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

    Default Re: Problem Accepting Meetings in 2.4.1 Upgrade

    This is fixed in 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

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
  •