Skip Navigation

[Resolved] Blocks – issues

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 11 replies, has 2 voices.

Last updated by Luo Yang 5 years, 2 months ago.

Assisted by: Luo Yang.

Author
Posts
#1327545
content-templat.png
view-block.png

Hello,

i am trying to build a site completely in Gutenberg, but it does not work as it should. I am reporting some annoying things. And one thing I need help with - the crash when editing content template.

TB Single Field - Post Date
- have css class tb-field--left, but it does not have option to choose align and ignore text-center from bootstrap container then
- custom css class field missing

TB Heading
- custom css class field missing

View
- unusable when .svg image format is used. Making page very looooooong and hard to edit (see screenshot)

Content template Crash
- after some editing I went to other application, then I went back and editor says something about it cannot be saved because of json error, try reload page. After reloading Its Error 500 everytime. I can never edit my template again and I must create new one. Thats so bad.

#1327953

Hello,

Thanks for contacting Toolset support.

Q1) TB Single Field - Post Date
-- have css class tb-field--left, but it does not have option to choose align and ignore text-center from bootstrap container then
I can duplicate the same problem in my localhost, will escalate it.

Currently, you can edit that block as HTML, and remove CSS class name "tb-field--left"

Q2) custom css class field missing
Yes, you are right, there isn't such a built-in feature within, I suggest you add a feature request for it, our developers will evaluate it
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Same as above, you can edit that block as HTML, and setup the CSS class name manually.

Q3) unusable when .svg image format is used.
WordPress does not support uploading .svg image files by default, I assume you are using custom codes/plugin to allow upload .svg files.

And .svg file is different from other image file type, it does not have width and height file metadata, so it conducts the problem you mentioned above:
Making page very looooooong and hard to edit

You might consider to wrap the .svg file into a HTML div tag, and setup CSS codes in that div tag to set height and width. for example:

<div class="tb-field tb-field--left" style="width:20px; height:20px">
Here display your svg file or custom image shortcode
</div>

Q4) Content template Crash

This is abnormal, I don't see similar problem in my localhost in a fresh wordpress installation, please check these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, and test again

2) Also check if there is any PHP error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1328003

Maybe it is related to PHP 7.3?

#1328145

I have contacted webhosting support. They didnt find a problem. There is PHP info about the server if it helps.. hidden link

#1328597

Any news?

#1329071

Thanks for the details, I am downloading the files, will update here if there is any found

#1329165

For the fourth), I assume we are talking about the content template: "Články", ID: 103

When I open it, I see below PHP error message:
Fatal error: Uncaught Error: Maximum function nesting level of '256' reached, aborting! in \wp-content\plugins\types\vendor\toolset\toolset-common\bootstrap.php on line 620

Then I have checked the content of above content template in database, you have put post body codes into it:
[tb-dynamic provider="__current_post" post="current" source="post-content" ]
It conduct the infinite loop problem, you can not display the post body insider itself.

Please try these:
1) Dashboard-> Toolset-> Content templates
find the item "Články", click link "Change usage", disable option "Posts*", and save

2) Create a new content template, add a shortcode block, with below shortcode:
[wpv-post-body view_template="None" suppress_filters="true"]

And test again, more help:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-body
suppress_filters (opt):
'true' | 'false' (default)
If suppress_filters=’true’, all third party (non WordPress) filters hooked into the_content filter will be removed

#1329725

Thanks for the advice. Is it possible to repair the actual content template from database? I dont want to style it and build again :/...

Also this should be fixed in next toolset blocks release. Or add option to the single TB field where is possible to add the filter..

#1329743

I have tried it again with you duplicator package, after deactivate plugin "Gutenberg", then I can edit content template "Články" without any problem, it might be a compatibility problem with the plugin "Gutenberg", since "Gutenberg" is built-in feature of WordPress now:
https://wordpress.org/gutenberg/

Is there any special reason to install the plugin "Gutenberg" in your website?

#1329913

Yes, I am using the latest Gutenberg, because it has more columns options, also the content groups and more features.

#1330203

Since it is a compatibility problem, according to our workflow, I need to provide detail steps to our developers, so I am try to duplicate the same problem with Gutenberg plugin + Toolset plugins in my localhost, but it works fine even I put the post body block into the content template.
Do you have any clue to duplicate the same problem in a fresh WordPress installation?

And currently, you can edit that content template by deactivating Gutenberg plugin.

#1332127
editor-align.JPG

For the first issue: have css class tb-field--left
There is option to choose align within Gutenberg editor, see screenshot editor-align.JPG

You can setup align as left, center and right, It is in left-header of each block.