gaetano1974
Forum Replies Created
-
Forum: Plugins
In reply to: [Schema & Structured Data for WP & AMP] white page taxonomiesHi, I have delete
\ob_start();
$description = \do_shortcode( $description );
\ob_end_clean();and the pages are ok
I was wrong?
TKSForum: Plugins
In reply to: [Schema & Structured Data for WP & AMP] white page taxonomiesok debug. here is the error it displays
Fatal error: ob_start(): Cannot use output buffering in output buffering display handlers in /web/htdocs/www.stabiaholidayhouse.it/home/wp-content/plugins/wordpress-seo/src/integrations/front-end/category-term-description.php on line 44
file category-term-description.php
<?php
/**
* WPSEO plugin file.
*
* @package Yoast\WP\SEO\Integrations\Front_End
*/namespace Yoast\WP\SEO\Integrations\Front_End;
use Yoast\WP\SEO\Conditionals\Front_End_Conditional;
use Yoast\WP\SEO\Integrations\Integration_Interface;/**
* Adds support for shortcodes to category and term descriptions.
*/
class Category_Term_Description implements Integration_Interface {/**
* @inheritDoc
*/
public static function get_conditionals() {
return [ Front_End_Conditional::class ];
}/**
* @inheritDoc
*/
public function register_hooks() {
\add_filter( ‘category_description’, [ $this, ‘add_shortcode_support’ ] );
\add_filter( ‘term_description’, [ $this, ‘add_shortcode_support’ ] );
}/**
* Adds shortcode support to category and term descriptions.
*
* This methods wrap in output buffering to prevent shortcodes that echo stuff
* instead of return from breaking things.
*
* @param string $description String to add shortcodes in.
*
* @return string Content with shortcodes filtered out.
*/
public function add_shortcode_support( $description ) {
\ob_start();
$description = \do_shortcode( $description );
\ob_end_clean();return $description;
}
}Hi Dmytro,
I tried to do everything you told me, but nothing to do. I don’t know what to do sincerely ….Ciao Dmytro e grazie per la risposta.
Come ho detto se disabilito Yoast seo, le pagine si aprono.
i plug-in istallati sono:
Akismet Anti-Spam
Autoptimize
Classic Editor
Click to Chat
Contact Form 7
Enable Gzip Compression
Getwid
Hotel Booking Lite
Hotel Booking Styles
jetpack by WordPress.com
One Click Demo Import
Polylang
Schema & Structured Data for WP & AMP
Site Kit by Google
TinyMCE Advanced
WP Super Cache
Yoast SEO
Secondo te con quale dovrei provare?
Grazie ancora