Results 1 to 2 of 2

Thread: Open-Realty 3.0.7 Fatal error: Using $this when not in object context

  1. #1
    Join Date
    Jun 2004
    Posts
    1,067

    Default Open-Realty 3.0.7 Fatal error: Using $this when not in object context

    Hi,

    If you are getting an error message like this "Fatal error: Using $this when not in object context" after upgrading to Open-Realty 3.0.7, it is being caused by one of the addons you have installed.

    Add-on Developers.

    In the past, to check for a user permission level you used to do the following:

    PHP Code:
    $security login::loginCheck('Admin'true); 
    You can no longer use login:: to call the login class. You must include the login class and call it as an object like this.

    PHP Code:
    global $config;
        require_once(
    $config['basepath'] . '/include/login.inc.php');
        
    $login = new login();
        
    $security $login->loginCheck('Admin'true); 

  2. #2
    Join Date
    Jul 2005
    Location
    Sao Paulo, BRAZIL
    Posts
    3,763

    Default Re: Open-Realty 3.0.7 Fatal error: Using $this when not in object context

    Thanks. I will be updating all my add-ons.

    Eduardo

    [EDITED]
    Add-ons updated:
    - blogicondate - version 1.0.2 - Sep,16/2010
    - addondemo - version 3.0.3 - Sep,16/2010
    - unBOMit! - version 3.0.2 - Sep,16/2010
    - menueditor - version 1.0.8 - Sep,16/2010 // version 1.0.9 - Jan,27/2011
    - iconizer - version 3.0.2 - Sep,16/2010

    Above, are the add-ons compatible with O-R v.3.x - the others are not.
    [/EDITED]
    Last edited by ebmarques; 01-27-2011 at 11:54 AM. Reason: list of add-ons updated

    Open-Realty® DOCs
    We can easily forgive a child who is afraid of the dark; the real tragedy of life is when men are afraid of the light. (Author Unknown)

Similar Threads

  1. Upgrade error MoveNext() on non object
    By Arne in forum Installation/Configuration Help (CLOSED)
    Replies: 6
    Last Post: 07-04-2009, 12:52 PM
  2. Fatal error: Call to a member function RecordCount() on a non-object
    By nicholasong in forum General Help (CLOSED)
    Replies: 1
    Last Post: 10-22-2008, 12:05 PM
  3. impossible install open realty=> admin/index.php?action=configure=> fatal error
    By steffy in forum Installation/Configuration Help (CLOSED)
    Replies: 4
    Last Post: 03-11-2008, 12:37 PM
  4. Fatal error: Call to a member function on a non-object
    By AdolphousC in forum HELP (CLOSED)
    Replies: 1
    Last Post: 10-29-2005, 09:37 AM
  5. Fatal error: Call to a member function on a non-object ??
    By Anonymous in forum HELP (CLOSED)
    Replies: 0
    Last Post: 09-02-2003, 02:55 PM

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
  •