Uncaught Error: Object of class WP_Post_Type could not be converted to string
-
Just reporting this bug, I think :). I have checked the code it seems that your directly concatenating string to object class which cause fatal error on php v8.1.0
PHP Fatal error: Uncaught Error: Object of class WP_Post_Type could not be converted to string in /var/web/site/public_html/wp-content/plugins/breadcrumb-block/includes/breadcrumbs.php:345
Current Code in breadcrumb-block/includes/breadcrumbs.php:345
do_action( 'breadcrumb_block_single_' . $post_type, $post, $this );
Fixed Code in breadcrumb-block/includes/breadcrumbs.php:345
do_action( 'breadcrumb_block_single_' . $post_type->labels->name, $post, $this );
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Uncaught Error: Object of class WP_Post_Type could not be converted to string’ is closed to new replies.