Skip Navigation

[Resolved] Error in creating post types

This support ticket is created 4 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.

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 12 replies, has 2 voices.

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

Assisted by: Luo Yang.

Author
Posts
#1847063

Tell us what you are trying to do?
I wanted to create a post type that didn't work. After I tried again, the page and the plugin are now defective.

Is there any documentation that you are following?
An error of type E_ERROR was found in line 345 of the file /var/www/vhosts/secret-affairs-escort.de/httpdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/post_type /from_types.php caused. Error message: Uncaught InvalidArgumentException in /var/www/vhosts/secret-affairs-escort.de/httpdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/post_type/from_types.php:345 Stack trace: # 0 /var/www/vhosts/secret-affairs-escort.de/httpdocs/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/post_type/repository.php(131): Toolset_Post_Type_From_Types-> set_registered_post_type () # 1 /var/www/vhosts/secret-affairs-escort.de/httpdocs/wp-includes/class-wp-hook.php(287): Toolset_Post_Type_Repository-> finish_load_type () /www/vhosts/secret-affairs-escort.de/httpdocs/wp-includes/class-wp-hook.php(311): WP_Hook-> apply_filters () # 3 / var / www / vhosts / secret-affairs-escort .de / httpdocs / wp-includes / plugin.php (478): WP_Hook-> do_action () # 4 /var/www/vhosts/secret-affairs-escort.de/httpdocs/wp-settings.php(546): do_action () # 5 /var/www/vhosts/secret-affairs-escort.de/httpdocs/wp-config.php(90): require_once ('/ var / www / vhosts ...') # 6 / va r / www / vhosts / secret-affairs-escort.de / h

#1847075

Hello,

The problem you mentioned above is abnormal, please try these:

1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, 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/

#1847991

Are you using the latest version of WordPress 5.5.3?

Please provide your website debug information by following our document:
https://toolset.com/faq/provide-debug-information-faster-support/

And you can use other Mysql tools, for example PHPmyadmin to export your website database,

#1848073
Escort.JPG
cpt.JPG

Thanks for the details, I can download your files and install it in my localhost.

For the original question of this thread:
create a post type that didn't work
It works fine in my localhost with your duplicator page, I can create new custom post type without any problem, see my screenshot cpt.JPG, and I can see you have already created a custom post type "Escort", it works fine too, see my screenshot Escort.JPG

Is above problem resolved? can you confirm it? thanks

For the new question:

insert this into Elementor with the View toolset it loses its structure and it no longer exists as a grid.

Please elaborate the question with more detail.
Which one is the View toolset? you can point out the view URL
Where are you going to insert it? please point out the Elementor URL, thanks

#1848093

Hello yes, the first question has been dealt with, I can also create Post Type.

The second question and my current problem.

If you go to the backup and pages you have two pages in WordPress.
1. Escort ladies
2. TEST001

Escort ladies was created as a view via Toolset
TEST001 is the elementor view in which the view from page 1 was used with the view toolset and no longer has a structure

Normally it should be displayed in a grid

#1848137

Thanks for the details, I assume we are talking about these:
1) the view block "Alle Escortdamen zeigen" in page "Escortdamen", this page is designed with WordPress Blocks editor
2) You are going to display above view block in another page "TEST001", this page is designed with Elementor page builder.

Toolset Blocks plugin is based on WordPress Blocks editor, WordPress Blocks editor and Elementor are different page builders, it is not recommended to use two page builders to design the same page, it will conduct unexpected result, as you mentioned above: it loses its structure and it no longer exists as a grid.

In your case, I suggest you try to setup the page "TEST001" with WordPress Blocks editor, and test again.

#1848141

Unfortunately, this is not possible because we have to add more elementor widgets to the page that are only available in elementor.

It must be possible for us, that was the question before the purchase whether the Toolset and Elementor function perfectly. As you can see now, Toolset and Elementor don't really work together and you can't use both in one theme.

There must be a way to integrate the view in Elementor with the structure, otherwise the Views widget toolset is free and worthless

#1848149

There is a misunderstand, as I mentioned above, the Toolset Blocks plugin is based on WordPress Blocks editor, so the view block won't work as expected in other page builders.

And there is a workaround, you can setup the view with classic editor, then put display view in Elementor page, for example:
1) Dashboard-> Toolset-> Settings-> General, in section "Editing experience", choose option " Show both the legacy and Blocks interface and let me choose which to use for each item I build", refresh the page

2) Dashboard-> Toolset-> Views, "Add New" view with classic Editor, then you will be able to display the new view in Elementor, see our document:
https://toolset.com/2018/07/toolset-elementor-integration/

#1848237

But I need programming knowledge for the classic editor, right?

#1848239

The classic editor is using shortcodes, it does not need PHP codes.
But you need to style and format the view with HTML codes + CSS codes

#1848245

Then it's complete messing around with customers on your website.
On your website there is no programming knowledge and can be perfectly integrated into elementor ?????

But you should change that quickly; this can also have legal consequences

#1848285

We have requested a refund because Toolset has been shown to be incompatible with Elementor

#1848293

Thanks for the feedback, there does exist another workaround without programming knowledge, you can design the page "TEST001" with WordPress Blocks editor:
- Setup the view block
- And insert the Elementor template from "Elementor Blocks for Gutenberg" plugin

see our document:
https://toolset.com/course-lesson/using-toolset-with-elementor-page-builder/#how-to-use-elementor-with-toolset
section "How to use Elementor with Toolset"

Thanks to the Elementor Library block (available after installing the Elementor Blocks for Gutenberg plugin), you can easily use Toolset and Elementor together from the Block Editor like this:

Create Elementor templates with your custom design.
Use WordPress Block Editor to insert Elementor templates into your pages.
Inside those same pages, use WordPress Block Editor to create and design all advanced features provided by Toolset.