• When the plugin is activated the 404page of the website doesnt show the normal 404 page but browser error page. What could be?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter rebeccamantel

    (@rebeccamantel)

    In case anyone else had the same problem I added the following code in wp-content/mu-plugins/webyx-404-fix.php


    <?php

    /**

     * Fix Webyx 404 issue – allow theme 404 template to display.

     */

    add_filter('template_include', function ($template) {

        global $post;

        if (

            class_exists('Webyx_FG') &&

            ! $post &&

            strpos($template, 'webyx') !== false

        ) {

            // Return default theme template for 404s

            return get_query_template('404');

        }

        return $template;

    }, 5);
    Plugin Author Rodolfo Cucchiella

    (@rodolfocucchiella)

    Hi Rebecca,

    thanks for contacting us.

    Could you please tell us which Theme are you using?

    Have you found the same situation with other templates of your theme (not only the 404 one)?

    Let us know,

    Best regards

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with 404 page not working’ is closed to new replies.