lewisjenkins / craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.
Other
147 stars 11 forks source link

Doesn't work with the latest build (1.4.2509) #2

Closed joshangell closed 10 years ago

joshangell commented 10 years ago

Fieldtypes not appearing in the new field form and also existing fields going red in the field list view.

Assuming this is to do with a recent change to the craft fieldtypes api but not totally sure.

Last working in 1.4.2506.

lewisjenkins commented 10 years ago

Hi Josh

Thanks for letting me know. I'll take a look shortly and get back to you.

Lewis

Sent from my iPhone

On 21 Mar 2014, at 16:35, Josh Angell notifications@github.com wrote:

Fieldtypes not appearing in the new field form and also existing fields going red in the field list view.

Assuming this is to do with a recent change to the craft fieldtypes api but not totally sure.

Last working in 1.4.2506.

— Reply to this email directly or view it on GitHub.

lewisjenkins commented 10 years ago

Hi Josh

This has been acknowledged by Pixel and Tonic to be a new Craft bug caused by a recent change in the way plugin components are loaded. Brandon has confirmed that this has now been fixed in the next Craft release, but if you need the fix now then he says to open

craft/app/services/ComponentsService.php

and change strpos to strrpos in this line:

if (($pos = strpos($class, '_')) !== false)

and that will fix the problem :)

joshangell commented 10 years ago

Thanks lewis - I can confirm this fixed it :)