We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Call to a member function getField() on null in ee/ExpressionEngine/Addons/fluid_field/ft.fluid_field.php:158 when using Preview

Development and Programming

Giraffentoast's avatar
Giraffentoast
152 posts
2 years ago
Giraffentoast's avatar Giraffentoast

Seeing above error when using the Preview functionality.

Enabling all error output leads to this notice

Undefined offset: 844 ee/ExpressionEngine/Addons/fluid_field/ft.fluid_field.php, line 158

Thought this is due to some Fluid field that had been deleted, so I tried to filter out the ID (field ID 844). After doing so same error with different ID came up. Looking at the existing Fluid field IDs I noticed that the IDs that cause the undefined offset seem to be bogus IDs, since our Fluid field IDs end at something like 200.

As a quick fix I added this line to the ft.fluid_field.php at line 157 - obviously no real fix, but it works for now.

if($id>400): continue; endif;

EE version is 7.2.12 with no additional plugins/add-ons.

Any idea what’s causing the original error?

Thanks: Lars Schwarz

       
Tom Jaeger's avatar
Tom Jaeger
449 posts
2 years ago
Tom Jaeger's avatar Tom Jaeger

Hi Lars,

Thanks for posting this. We did just push an update yesterday that will likely fix as part of the 7.2.13 release. Any chance you can update and confirm this error is no longer present?

Thanks,

-Tom Jaeger

? 1
       
Giraffentoast's avatar
Giraffentoast
152 posts
2 years ago
Giraffentoast's avatar Giraffentoast

Hey Tom,

Indeed! Updating to 7.2.13 and reversing my dirty quick-fix fixed that issue.

Thanks: Lars

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.