All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Error with Multi Relationships Plugin

BrandonSchmittling 26 Sep 2011 15:40 problem, complete

I've installed "Multi Relationships" and tried activating Low Variables. I get the following error message:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Addons_extensions::$api_channel_fields
Filename: mrelshp/ft.mrelshp.php
Line Number: 25

Fatal error: Call to a member function include_handler() on a non-object in [MY PATH]/system/expressionengine/third_party/mrelshp/ft.mrelshp.php on line 25

Line 24 and 15 of ft.mrelshp.php are:

$this->EE =& get_instance();
$this->EE->api_channel_fields->include_handler('rel');

Is there a fix for these two plugins so they play nice?

-Brandon

Replies

  1. BrandonSchmittling 26 Sep 2011 15:41

    I meant "Line 24 and 25", respectively NOT "line 15". Apologies.

  2. BrandonSchmittling 26 Sep 2011 15:46

    Update: This error occurs when attempting to enter a new License, not during activation. Use of the plugin (settings and admin) are restricted until the license is provided, which seems to make this plugin unusable with this error.

    The problem-link is: "Enter your key here: Low Variables Extension settings"

  3. Low 26 Sep 2011 15:49

    Hi Brandon,

    By the looks of that error message, it is caused by Multi Relationships, so you should probably ask its dev.

    That said, it would appear the API library is not loaded. Try replacing line 24 and 25 with this:

    $this->EE =& get_instance(); 
    $this->EE->load->library('api');
    $this->EE->api->instantiate('channel_fields');
    $this->EE->api_channel_fields->include_handler('rel');

  4. Low 26 Sep 2011 15:59

    Also, make sure you have Extensions enabled, under Add-ons -> Extensions.

  5. BrandonSchmittling 26 Sep 2011 16:07

    That was it! "Multi Relationships" users out there will enjoy this fix. Thanks, Low.

  6. Low 26 Sep 2011 16:13

    Cool, glad it's working for you now.