Skip Navigation

[Closed] Can't edit or create post types

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

This topic contains 10 replies, has 2 voices.

Last updated by Christopher Amirian 2 years, 2 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2665867

I am trying to:

Edit a post type (I've imported post types from another site where they're working fine)

I expected to see:
The edit post type page

Instead, I got:
Wordpress critical error page

Note: All other functions are working - I can edit custom field etc., just not the types themselves.

#2666247

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

That might be an issue with the method you used to import the custom post types.

I suggest that you re-try the import to see the result.

Meanwhile, I suggest that you enable WordPress debug mode so instead of the critical error you can give what the error actually say:

Would you please access your website files and edit the "wp-config.php" file on the root folder of your WordPress installation and add the code below into the file:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

Finally, Toolset uses the native WordPress methods to create the custom posts, so if it works somewhere and not the other place it shows there is some sort of database problem when the import is done.

Here is a recommended way to import/export Toolset custom post types:

https://toolset.com/course-lesson/import-posts-from-csv-with-relationships-using-wp-all-import/

Thanks.

#2666451

Hi Christopher

Thanks for your reply.

I updated the wp-config file and now get the following debug info:

#2666569

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you for the debug information. I checked and there is not much that I can suggest there. I am waiting to the result of the other steps I asked you to test on the first reply.

Thanks.

#2667239

Ok, thanks.

A new import didn't solve the issue. I will try your other suggestions.

But - I should probably mention that the problem occurred BEFORE the import. In fact I did the import in an attempt to solve it. In fact, Toolset's behaviour did not change at all due to the import.

#2668225

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you. WOuld you please give the login information of the copy of the website so we can test without the fear of changing the site live?

Please set the next reply as private.

Also please tell me where to go and what to do to see the error.

Meanwhile, please get back to us with the result of the test below:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- Switch to the default theme such as "TwentyTwenty" by going to "WordPress Dashboard > Appearance > themes".
- Go to "WordPress Dashboard > Plugins" and deactivate all plugins except Toolset and its add-ons.
- Check if you can still recreate the issue.
- If not, re-activate your plugins one by one and check the issue each time to find out the plugin that causes the problem.

Thanks.

#2668251

Hello again

I'll get back to you with login information.
So far, I've noticed two plugins that seem to conflict with Toolset Types:

qTranslate-XT (which is no longer supported, and needs to be replaced with something like WPML)

But also Bambora Online Checkout - which I need to process payments for WooCommerce in Denmark.
(hidden link)

The errors appear only on my development site which is behind a .htaccess password protection. Could that be part of the problem?

Yours,
Kim

#2668491

Christopher Amirian
Supporter

Languages: English (English )

Hi Kim,

That needs to be checked as I am not sure if htaccess one might cause the problem.

To see if the compatibility issue is happening I created a clean Toolset installation and also installed Woocommerce.

Can you install the payment plugin there and see if the same issue happens there?

hidden link

Also, yes you will need to use WPML as Toolset is working ok with WPML:

https://wpml.org/plugin/types-2/

Thanks.

#2670243

Christopher Amirian
Supporter

Languages: English (English )

Hi Kim,

I did some tests on the website and it seems that the issue the qTranslate pluign and not the payment plugin you mentioned.

As soon as I deactivate the qTranslate plugin the page and posts editor works ok.

Toolset needs WPML for translation so for that you will need to install and setup WPML and you can transfer from qTranslate using this steps:

https://wpml.org/documentation/related-projects/qtranslate-importer/

Thanks.

#2670273

Thanks for checking it out.

But I still have trouble editing custom post types - such as:

hidden link

#2670767

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

Thank you. I do see the error and this should be handled by the plugin developer as the error is generated from the code of the plugin:

wp-content/plugins/bambora-online-checkout/bambora-online-checkout.php

The error is: Uncaught Error: Call to a member function get_id() on bool

I'd appreciate it that you also replicate the issue on the installation below as I mentioned in the previous answer so in my turn I can report to the dev team to see if there is something that we can point to the plugin developers:

hidden link

Thanks.

The topic ‘[Closed] Can't edit or create post types’ is closed to new replies.