Extension, Fieldtype

Archived
Forum
(read-only)

Updatable Select Dropdown

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Denza

     

Conflict with Low Variables

General

bjp
bjp

Hi.  Just wondering if there’s a way around this conflict with Low Variables?

A PHP Error was encountered
Severity
Notice
Message
Undefined propertyAddons_extensions::$api_channel_fields
Filename
cstslct/ft.cstslct.php
Line Number
23
Fatal error
Call to a member function include_handler() on a non-object in /home/admin/public_html/sys5sh01/expressionengine/third_party/cstslct/ft.cstslct.php on line 23 

Thanks

denza
# 1
Developer
denza

Hi, please tell what vresion of EE are you using?

bjp
# 2
bjp

I’m using v2.1.3

DCalabrese
# 3
DCalabrese

Having same problem in EE 2.2.1.  Is this resolved yet?  Thanks Chris

denza
# 4
Developer
denza

Hi, could you try to replace line ~40 (/system/expressionengine/third_party/cstslct/ft.cstslct.php)

parent::Select_ft(); 

to

if(APP_VER '2.1.5'{
        parent
::EE_Fieldtype();
    
else {
        parent
::__construct();
    
DCalabrese
# 5
DCalabrese

Fixed first error and now back to low variables incompatible issue:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: Addons_extensions::$api_channel_fields
Filename: cstslct/ft.cstslct.php
Line Number: 23
Fatal error: Call to a member function include_handler() on a non-object in /var/www/www.domain.com/system/expressionengine/third_party/cstslct/ft.cstslct.php on line 23

Thanks for your support
Chris

denza
# 6
Developer
denza

try to add

$this->EE =& get_instance(); 

before line 23, like this:

$this->EE =& get_instance();
$this->EE->api_channel_fields->include_handler('select'); 
DCalabrese
# 7
DCalabrese

Bravo Denza!!  Works perfectly.  Great add-on Thanks for super support   Chris

TVPDan
# 8
TVPDan

I see the fixes you have suggested are in the most recent version of the add-on but I still get the same second error that was reported a while ago when I try to install Low Variables.

dynamo&son;
# 9
dynamo&son;

This comment seemed to fix the issue on us: https://devot-ee.com/add-ons/support/updatable-select-dropdown/viewthread/4513#15299