Results 1 to 10 of 10

Thread: Fatal error: Call to a member function getQuery() on a non-object in

  1. #1
    PCODIV2 is offline Member
    Join Date
    Sep 2008
    Posts
    8

    Exclamation Fatal error: Call to a member function getQuery() on a non-object in

    I am getting this error on my home and contacts page.
    It happened after I tried to upload a new module.
    Any ideas?


    Fatal error: Call to a member function getQuery() on a non-object in /home/ckepro93/public_html/processcontroloutlet.com/sug/modules/Contacts/Contact.php on line 461

    Version 5.2.0c (Build 5505)

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    Which module are you trying to upload?
    Did you upgrade your system from an older version?
    This error refers to the relationship between Contacts and Users.
    Go to Admin -> Repair -> Rebuild Relationships

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    PCODIV2 is offline Member
    Join Date
    Sep 2008
    Posts
    8

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    Thanks for the reply.

    I was trying to install opensales quotes.
    it was a fresh install.
    I did the rebuild and got this message:

    Warning: require_once(include/logging.php) [function.require-once]: failed to open stream: No such file or directory in /home/ckepro93/public_html/processcontroloutlet.com/sug/modules/Quotation/Quotation.php on line 5

    Fatal error: require_once() [function.require]: Failed opening required 'include/logging.php' (include_path='/home/ckepro93/public_html/processcontroloutlet.com/sug/include/..:.:/usr/lib/php:/usr/local/lib/php') in /home/ckepro93/public_html/processcontroloutlet.com/sug/modules/Quotation/Quotation.php on line 5

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    Did you face any issue when installing such package?

    The possible reasons for this issue: either the package has a missed file (nclude/logging.php) or the include folder is not writable.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    PCODIV2 is offline Member
    Join Date
    Sep 2008
    Posts
    8

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    I got the same message:

    Warning: require_once(include/logging.php) [function.require-once]: failed to open stream: No such file or directory in /home/ckepro93/public_html/processcontroloutlet.com/sug/modules/Quotation/Quotation.php on line 5

    Fatal error: require_once() [function.require]: Failed opening required 'include/logging.php' (include_path='/home/ckepro93/public_html/processcontroloutlet.com/sug/include/..:.:/usr/lib/php:/usr/local/lib/php') in /home/ckepro93/public_html/processcontroloutlet.com/sug/modules/Quotation/Quotation.php on line 5

    I also, made the directory writable, but to no avail.

  6. #6
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    Unzip the installer and make sure both manifest refers this field (in the copy array) and this field exist path specified in the manifest.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  7. #7
    Jashank is offline Sugar Community Member
    Join Date
    Nov 2010
    Posts
    15

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    Another thing to check here is permissions on your SugarCRM installation directory. If the web server cannot write to cache and it's subdirectories, it'll break with a traditional misdirected error message..

    Jashank

  8. #8
    ottoverg is offline Sugar Community Member
    Join Date
    Nov 2011
    Posts
    12

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    I´m getting the same error message.

    I created a module using the MODULE BUILDER, after module implementation, I started getting this message. I checked the INCLUDES folder and there is no file with that name in there.

    Any suggestion how to solve this issue???

    Thanking in advace,

    Otto

  9. #9
    gorave is offline Junior Member
    Join Date
    Dec 2011
    Posts
    5

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    im getting this error...any idea????

    Fatal error: Call to a member function login() on a non-object in G:\wamp\www\SugarCE-Full-6.4.0beta6\SugarSoap.php on line 27

  10. #10
    gorave is offline Junior Member
    Join Date
    Dec 2011
    Posts
    5

    Default Re: Fatal error: Call to a member function getQuery() on a non-object in

    Quote Originally Posted by jashank View Post
    another thing to check here is permissions on your sugarcrm installation directory. If the web server cannot write to cache and it's subdirectories, it'll break with a traditional misdirected error message..

    Jashank

    how to chk permission in directory???

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 8
    Last Post: 2010-01-19, 01:41 AM
  2. Replies: 2
    Last Post: 2008-02-27, 09:34 PM
  3. Replies: 4
    Last Post: 2006-09-26, 02:21 PM
  4. Replies: 0
    Last Post: 2005-12-18, 08:16 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
  •