Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: 4.2.1 = Broken incoming Emails

  1. #1
    alsutton is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    127

    Default 4.2.1 = Broken incoming Emails

    Did the update, got the following from the cron job;

    PHP Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/argosytelcrest.co.uk/httpdocs/crm/data/SugarBean.php on line 779

    Thought, Oh well, thats Sugar Quality for ya, so reinstaled with the full package, guess what, output from cron;

    PHP Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/argosytelcrest.co.uk/httpdocs/crm/data/SugarBean.php on line 779

    My schedulers list is empty apart from the job to poll monitored incoming mailboxes. If I take that out the error goes away.

    So much for managing our inbound mail using it.
    Al Sutton
    Argosy TelCrest
    www.argosytelcrest.com

  2. #2
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: 4.2.1 = Broken incoming Emails

    line 779 is a curly brace for me - what's the code that is erroring?

  3. #3
    alsutton is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    127

    Default Re: 4.2.1 = Broken incoming Emails

    In the 4.2.0 -> 4.2.1 patch SugarBean.php has the following on line 779;

    $query .= $field."='".$GLOBALS['db']->quote(from_html($this->$field))."'";
    Al Sutton
    Argosy TelCrest
    www.argosytelcrest.com

  4. #4
    sugarchris's Avatar
    sugarchris is offline Sugar Community Member
    Join Date
    Sep 2005
    Location
    San Francisco, CA
    Posts
    861

    Default Re: 4.2.1 = Broken incoming Emails

    ok, I think I know what the error is. we refactored quite a bit of DB layer code for preparation for SQL Server and Postgres/EDB integration, and there may be a missing link there.

    I can't be exactly sure where the fix should go, so i'll forward this to the guy most responsible for the code changes. He should get in here and offer a solution once the holiday is done.

  5. #5
    mmgareth is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    11

    Default Re: 4.2.1 = Broken incoming Emails

    I got the same problem I look forward to testing the fix


    Gareth

  6. #6
    lbarth is offline Junior Member
    Join Date
    Jul 2006
    Posts
    2

    Default Re: 4.2.1 = Broken incoming Emails

    Hi,

    I've just upgraded to 4.2.1 and had this problem. To fix it replace:

    File: data/SugarBean.php
    Line:799
    PHP Code:
    $query .= $field."='".$GLOBALS['db']->quote(from_html($this->$field))."'"
    with:
    PHP Code:
    $query .= $field."='".$this->db->quote(from_html($this->$field))."'"

    This is working for me here. I did not work with sugar befor so i might be wrong but it look like that $GlOBALS['db'] got relaced with $this->db

    Hope this helps

    Bye
    Lorenz
    Last edited by lbarth; 2006-07-05 at 07:36 PM.

  7. #7
    lukemilton1 is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    36

    Default Re: 4.2.1 = Broken incoming Emails

    Seems to be working for me as well. Thanks

  8. #8
    mmgareth is offline Sugar Community Member
    Join Date
    Jul 2006
    Posts
    11

    Default Re: 4.2.1 = Broken incoming Emails

    Quote Originally Posted by lbarth
    File: data/SugarBean.php
    Line:799
    I think this is line 779, but it works for me too Thanks a lot!

    Anyone know the official verdict from the Sugar team?



    Gareth

  9. #9
    alsutton is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    127

    Default Re: 4.2.1 = Broken incoming Emails

    Quote Originally Posted by mmgareth
    I think this is line 779, but it works for me too Thanks a lot!

    Anyone know the official verdict from the Sugar team?



    Gareth

    The official response seems to be the usual.... tell it's going to be fixed then tell us nothing, not even confirmation that Lorenz's fix worked

    And yup.. it worked for me....
    Al Sutton
    Argosy TelCrest
    www.argosytelcrest.com

  10. #10
    jstevensr is offline Member
    Join Date
    Nov 2005
    Location
    Castro Valley, CA
    Posts
    8

    Default Re: 4.2.1 = Broken incoming Emails

    Worked for me On win XP with XAMPP.
    SugarBean.php file located here:
    C:\Program Files\xampp\htdocs\SugarSuite-Full-4.0.0\data
    Line to change: 779, not 799.
    also, make a copy of the SugarBean.php from the 4.21 zip archive, then modify it, then rename old file then rename changed file to SugarBean.php.

    -Steve

Page 1 of 2 12 LastLast

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
  •