Notifications
Clear all

Using hide_content_until_iframe_color gives json error in wordpress

7 Posts
2 Users
0 Likes
476 Views
Posts: 12
Topic starter
(@morbificagent)
Eminent Member
Joined: 2 years ago

Hi again,

 

i am trying to use hide_content_until_iframe_color="#ffffff|keep" in the shortcode but everytime i want to save it wordpress (6) is showing an json error (the response isnt a valid json-response).

If i remove the hide_content... in the shortcode its working... Is it a bug or do i anything wrong?

many thanks

6 Replies
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

Hi,

you are using the block editor?  
Does hide_content_until_iframe_color="#ffffff"
make the same problem? 

have you tried the classic editor as well?

I will check tonight what can cause the problem.

Best regards,

Michael

Reply
1 Reply
(@morbificagent)
Joined: 2 years ago

Eminent Member
Posts: 12

@admin yes I am using the block editor... And yes, without the keep the same error happens.

I haven't tried the classic editor but I will...

I have tried a little bit around and it looks like the json error happens only when I use the hide_content... together with specific other options. Because I have written another shortcode with other options and there it's working...

But I don't know which combination results in this error... I have to try a little bit to find some working and some not working combinations. 

Reply
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

I already found the issue. It is the auto save functionality which seems to work different now. 

There the detection that the Gutenberg editor is active returns false by the Wordpress method :(.

I also found a solution. There is a method I can check if it is the auto save call.

I will add this to the next version. 

So the classic editor should work fine for now. If you need a quick solution please let me know and I create a patch for you. I'm currently working on a new other feature so I do not have a stable local version.

Best regards,

Michael

Reply
2 Replies
(@morbificagent)
Joined: 2 years ago

Eminent Member
Posts: 12

@admin Great you found it!

And its ok for me to wait for the next version.

 

Many thanks!

Reply
(@morbificagent)
Joined: 2 years ago

Eminent Member
Posts: 12

@admin Great you found it!

And its ok for me to wait for the next version.

 

Many thanks!

Reply
TinyWebGallery
Posts: 874
Admin
(@admin)
Prominent Member
Joined: 15 years ago

:). Thanks for the feedback...

Reply