This support ticket is created vor 2 Jahren, 7 Monaten. 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.
Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.
I took a look at the original thread. I logged in to the site where you exported the Content Templates from.
There is currently no export/import support for anything created with the Block editor, and when I look at the list of templates 4 of the 7 are created with the Block editor.
Did you export all 7 templates to the new site? It would only be possible to export the 3 templates made with the classic editor.
Hold on, you're telling me that anything created with toolset blocks is not compatible to be exported/imported with toolset export/import? That just sounds silly.
Yes, Views/Content Templates build using Blocks can not be used to import/export as its not supported yet. As shared by Nigel you can add a new feature request and raise your voice in front of our product manager:
- https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/
This is also effecting non-block content templates. i.e. when I delete the block content template it moves the error to the next content template that is not created using blocks.
You're joking right? This error is what the entire thread is about. The error is:
Warning: Invalid argument supplied for foreach() in /home/customer/www/502deals.com/public_html/wp-content/plugins/wp-views/backend/Models/ContentTemplate/UsagePostType.php on line 141
I can see the warning you mentioned with the content template listing page:
=> versteckter Link
I would like to know first:
- did you removed all content templates that you imported to this site?
- I see the error with only the first template on content template listing page, I see there is another block template "Loop item in Listings Page" but I do not see the same error.
The content template with which you see the warning "Content Template for Listings w Email Gate" is this a brand new content template you created manually or it's the content template that you tried to import?
Can you please take the time to actually read the thread? Everything you are asking has already been discussed.
Yes, I have tried removing all content templates imported into the site. This issue happens on imported view and block content templates even though you say it should only happen on blocks.
As I have stated many times now, the error will remain. i.e. if I delete the top content template the error moves to the next content template.
I appreciate your help, but please actually read the thread. I have gone over all of this already.
I'm currently handling this thread. Nigel is indeed correct when he says that there isn't a way to migrate templates using the Block builder. The entire site will need to be migrated in order to move over your templates.
However in my testing when i've exported the templates that are giving the issue I wasn't able to generate the errors on my sandbox site.
Take a look below. versteckter Link
Given the case I can conclude that there isn't any issues with the templates itself as I was able to successfully migrate them. The culprit seems to be on your site where you're importing them.
What you can do is to let me know exactly which templates you want to import and I can export them from your old site and import it for you.
You might have mentioned that on the original thread...
I appreciate your help, but having your migration tool only work on the legacy format and no notification of that when trying to migrate using a current format that is not supported on top of having to open 2 threads just to get a solid answer is very frustrating.
The content templates that need to be migrated are:
Content Template for Listings w Email Gate — Block Editor
Edit Listings
Loop item in Featured Listing on Homepage
Loop item in Featured Listings on Homepage
Loop item in Listings Page — Block Editor