Error rendering repeater options

failcookie - 3 weeks ago

I am running into an issue where I am trying to access the data from a repeater on a Page level, but throwing a 500. So far its only been happening on repeaters with image FT in them. I get this error:

(ErrorException(code: 0): An exception has been thrown during the rendering of a template (\"Illegal offset type in isset or empty\"). at /core/anomaly/repeater-field_type/resources/views/partials/controls.twig:7, Twig_Error_Runtime(code: 0): An exception has been thrown during the rendering of a template (\"Illegal offset type in isset or empty\").

I did the normal php artisan assets:clear && php artisan view:clear && php artisan cache:clear

ryanthompson - 3 weeks ago

Dig into that view and dd what looks like the field type object and see what's up.

ryanthompson - 3 weeks ago

Also post some code if you can.

failcookie - 3 weeks ago

Sorry! Forgot an important part.. it's an admin page. Clicking "Add Row" to display a new FT image option is causing the beautiful 500 error modal.

ryanthompson - 3 weeks ago

Sounds like misconfiguration. Check your field type in the repeater stream.