Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to a member function getClassHandle() on null #67

Open
edolyne opened this issue Apr 6, 2017 · 3 comments
Open

Call to a member function getClassHandle() on null #67

edolyne opened this issue Apr 6, 2017 · 3 comments

Comments

@edolyne
Copy link

edolyne commented Apr 6, 2017

Current Install:

CraftCMS version: 2.6.2968
LinkIt version: 2.3.4

With this installed, and attempting to create or edit entries that use a LinkIt field type I am getting a internal server error of: Call to a member function getClassHandle() on null

The runtime logs show:

#17 /storage/av04327/www/craft/plugins/fruitlinkit/fieldtypes/FruitLinkItFieldType.php(136): Craft\TemplatesService->render('fruitlinkit/_fi...', Array)
#18 /storage/av04327/www/craft/app/vendor/twig/twig/lib/Twig/Template.php(615): Craft\FruitLinkItFieldType->getInputHtml('buttonLink', '')
@edolyne
Copy link
Author

edolyne commented Apr 8, 2017

It looks like this issue is only arising when a LinkIt field is within a matrix, when the field is outside of a matrix field everything functions appropriately.

@lukepearce
Copy link

Also receiving the same error.

I had just enabled a custom element type to be selectable.

Running Craft 2.6.3002 and Linkit 2.3.4

@kotyy
Copy link

kotyy commented Jan 22, 2019

I ran into this issue as well. In my case, it was caused because I had failed to select any Link Types for the field. It was also inside a matrix, but I did not test it outside of a matrix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants