• Resolved gaetano1974

    (@gaetano1974)


    My site cannot display the taxonomies accommodation-facility and accommodation-category, a blank page comes out. I noticed, however, that by deactivating Schema, these pages are displayed. I am checking for days but I can’t understand where the problem is.
    Can you help me? the theme is Palmeria with hotel booking
    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Magazine3

    (@magazine3)

    Can you please turn on debug mode and check what exact error is having on your page? Then let us know.

    For reference please follow this tutorial: https://structured-data-for-wp.com/docs/article/how-to-debug-fatal-errors-500-error-or-blank-screen/

    Thread Starter gaetano1974

    (@gaetano1974)

    ok 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;
    }
    }

    Plugin Author Magazine3

    (@magazine3)

    Thank you for sharing the errors. We have created a ticket for this issue. We will fix this issue as soon and let you know when the issue fixed.

    Reference: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/1127

    Thread Starter gaetano1974

    (@gaetano1974)

    Hi, I have delete

    \ob_start();
    $description = \do_shortcode( $description );
    \ob_end_clean();

    and the pages are ok

    I was wrong?
    TKS

    Plugin Support Sanjeev Kumar

    (@sanjeevsetu)

    No need to delete these code. You just use our latest version. Error should not come

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘white page taxonomies’ is closed to new replies.