This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
Hi everyone! Repeater very cool stuff that can satisfy my needs. But I ran into one problem in php7.2. When i use richeditor or mediafinder fields for my repeater i got an error.
My fields.yml
text_block_img:
    label: 'Text blocks with image'
    prompt: 'Add new item'
    span: full
    type: repeater
    form:
        fields:
            reverse_block:
                label: 'Reverse block'
                span: auto
                type: checkbox
            main_text_block:
                label: 'Main text block'
                span: right
                type: checkbox
            text_block_text:
                label: Text
                size: ''
                span: auto
                type: richeditor
            text_block_image:
                label: Image
                mode: image
                span: auto
                type: mediafinder
I added: protected $jsonable = ['text_block_img']; into my Model
Repeater field as $table->json('text_block_img');
When i'm trying to save i got an error:
count(): Parameter must be an array or an object that implements Countable

Logs says that it's trying to save a string instead of array

This is my first experience in October CMS in general, so please help me :) Thanks!
Last updated
Hi! I have the same problem but when using the richeditor inside a repeater. Did you find the solution?
Davox said:
Hi! I have the same problem but when using the richeditor inside a repeater. Did you find the solution?
Hi! I was a little surprised but php artisan october:update hepled me :)
1-3 of 3