Skip Navigation

[Gelöst] Content Template error on line 141

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.

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

Supporter timezone: America/Jamaica (GMT-05:00)

Dieses Thema enthält 11 Antworten, hat 4 Stimmen.

Zuletzt aktualisiert von Shane vor 2 Jahren, 7 Monaten.

Assistiert von: Shane.

Author
Artikel
#2351977

Everything is addressed in this ticket that was marked as resolved even though it is not: https://toolset.com/forums/topic/content-template-error-on-line-141/

#2352373

Nigel
Supporter

Sprachen: Englisch (English ) Spanisch (Español )

Zeitzone: Europe/London (GMT+00:00)

Hi Oliver

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.

You can add your voice to the request to add support for exporting/importing block-based content at https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

#2352623

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.

#2353431

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

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/

#2353811

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.

#2354109

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

What error you experience - Could you please share more details about that.

#2354441

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

#2355253

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

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?

#2355499

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.

#2356415

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Olivier,

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.

Thanks,
Shane

#2356443

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

#2356545

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hi Olivier,

I've attempted to import the templates onto your site, however the issue still remains.

This leaves me to believe that the problem is with the site itself and not the template.

Secondly i've checked the templates and given that they are not complex in nature it would be best to rebuild the templates on this site manually.

Thanks,
Shane