• That’s odd, I always used this awesome and easy plugin on my projects, but I started one this week and I can’t activate this plugin anymore. When I activate I face critical error with this log:

    Fatal error: Uncaught Error: Object of class WP_Post_Type could not be converted to string in /app/wp-content/plugins/duplicate-post/src/post-republisher.php:54 Stack trace: #0 /app/wp-content/plugins/duplicate-post/src/duplicate-post.php(77): Yoast\WP\Duplicate_Post\Post_Republisher->register_hooks() #1 /app/wp-content/plugins/duplicate-post/duplicate-post.php(71): Yoast\WP\Duplicate_Post\Duplicate_Post->__construct() #2 /app/wp-includes/class-wp-hook.php(324): __duplicate_post_main('') #3 /app/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /app/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /app/wp-settings.php(559): do_action('plugins_loaded') #6 /app/wp-config.php(86): require_once('/app/wp-setting...') #7 /app/wp-load.php(50): require_once('/app/wp-config....') #8 /app/wp-admin/admin.php(34): require_once('/app/wp-load.ph...') #9 /app/wp-admin/plugins.php(10): require_once('/app/wp-admin/a...') #10 {main} thrown in /app/wp-content/plugins/duplicate-post/src/post-republisher.php on line 54

    It’s not the theme because it’s happening even if I change to a default theme. What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Hi @giovancruz

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

Viewing 1 replies (of 1 total)

The topic ‘Error WP_POST_TYPE couldn’t’ be converted to string’ is closed to new replies.