Fieldtype

Developer
Supported

VZ Range

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Eli Van Zoeren

     

You must be logged in to post.

Call to undefined method EE_Fieldtype::EE_Fieldtype() in EE 2.8

Bug Report

mvdesign
mvdesign

I installed this with EE 2.8 and got an error (I’ve edited the error slightly to remove the path to the addon):

Fatal error: Call to undefined method EE_Fieldtype::EE_Fieldtype()  on line 23

Poked around on devot-ee and found other add-ons with similar issues.

The fix appears to involve replacing:

function Vz_range_ft()
{
    parent
::EE_Fieldtype(); 

With:

function __construct()
 
{
  
if (version_compare(APP_VER'2.1.4''>')) { parent::__construct(); else { parent::EE_Fieldtype(); 
Eli Van Zoeren
# 1
Developer
Eli Van Zoeren

I’ve updated. Thanks for letting me know.