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

Support archive

Low Variables - Expressionengine 2.7 Problem

Jez Swinscoe 29 Aug 2013 13:39 problem, complete

Expressionengine 2.7 Problem
Upgrading to EE2.7 throws this error on the fieldtype and extension pages:
Fatal error: Declaration of Low_variables_ft::display_field() must be compatible with that of EE_Fieldtype::display_field() in /home/xxxx/public_html/system/expressionengine/third_party/low_variables/ft.low_variables.php on line 436

Prior to the upgrade everything was ok, tested this as an install into a 2.7 EE too and the same thing happened.

Not sure if 2.7 is doing something different or if i screwed up somewhere!

Replies

  1. Low 29 Aug 2013 13:58

    Hmm, what's your PHP version?

  2. Jez Swinscoe 29 Aug 2013 14:00

    Hi Low

    PHP version is 5.2.14

    Just looked at the EE2.7 docs and realise now it needs 5.2.4 - I guess that's the problem?

  3. Low 29 Aug 2013 14:04

    I can see where the problem is. Bit of a technical story, but it's a combination of the LV fieldtype being Matrix compatible, the changes to the fieldtype API in EE2.7 and PHP 5.2., by the looks of it.

    You can either try and upgrade to PHP 5.3 or apply a hack in the Low Variables fieldtype so it isn't Matrix compatible anymore.

    However, if you have any other Matrix compatible 3rd party fieldtypes, then the same error can occur elsewhere...

  4. Jez Swinscoe 29 Aug 2013 14:11

    Thanks Low! I think PHP 5.3 is the way to go

  5. Low 29 Aug 2013 14:14

    Just conferred with Brandon, too. I'll make some changes to LV to solve the issue for PHP 5.2 anyway. Will add that to the upcoming version.

  6. Jez Swinscoe 2 Sep 2013 18:36

    Thanks Low - as a quick update I moved the site to a different server where I changed php versions (I can do this per-folder) to php 5.4 and it worked perfectly so that was definitely the problem by the looks of it.