Error WP_POST_TYPE couldn’t’ be converted to string
-
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 54It’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)
Viewing 1 replies (of 1 total)
The topic ‘Error WP_POST_TYPE couldn’t’ be converted to string’ is closed to new replies.