mullema / k3-image-clip

Visually crop images with a handy image editor directly inside the panel
MIT License
40 stars 4 forks source link

Illegal string offset 'id' #1

Closed S1SYPHOS closed 5 years ago

S1SYPHOS commented 5 years ago

Hey there, when creating an image-clip field, I get this error message:

image

Any ideas how to fix this are appreciated! Thanks for this plugin, can't wait to use it :+1:

S1SYPHOS commented 5 years ago

In the meantime I found the source of my troubles: the field's name was cover. When changing it to something else, the problem was gone.

Q: I can see that cover is reserved, could you namespace it? Having cover as field name is very common I guess :smile_cat:

Have a good day, S1SYPHOS

S1SYPHOS commented 5 years ago

Well, my problem persists, and it might be even harder to debug: Now, I enter an image, save the page, visit another page, and everytime I come back, the field has the error shown above. When I change the field name once more, reload the page: I can select an image again! But, when saving, leaving the page, coming back: again, Illegal offset error ..

S1SYPHOS commented 5 years ago

See this discussion on the forum: Any chance to convert the 'normal' files type content to your 'id' based full path format?

mullema commented 5 years ago

@S1SYPHOS I am not able to reproduce your problem here:

In the meantime I found the source of my troubles: the field's name was cover. When changing it to something else, the problem was gone.

Could you give me some more information over here: https://github.com/mullema/k3-image-clip/issues/4