dnnsys
dnnsys

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 Alt text Alt text

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

This is my first experience in October CMS in general, so please help me :) Thanks!

Last updated

Davox
Davox

Hi! I have the same problem but when using the richeditor inside a repeater. Did you find the solution?

dnnsys
dnnsys

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