• Resolved Aurovrata Venet

    (@aurovrata)


    Dear Peter,

    I have your plugin installed on a network multisite with Polylang. Upgrading from version 2.1 to 2.2 breaks the plugin. I get a black page instead of the 404 error page. There are a couple of PHP error messages in the log file,

    [14-Nov-2016 05:29:46 UTC] PHP Warning:  include(404.php): failed to open stream: No such file or directory in /home/martinha/public_html/beta3/wp-includes/template-loader.php on line 75
    [14-Nov-2016 05:29:46 UTC] PHP Warning:  include(404.php): failed to open stream: No such file or directory in /home/martinha/public_html/beta3/wp-includes/template-loader.php on line 75
    [14-Nov-2016 05:29:46 UTC] PHP Warning:  include(): Failed opening '404.php' for inclusion (include_path='.;/path/to/php/pear') in /home/martinha/public_html/beta3/wp-includes/template-loader.php on line 75
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Aurovrata Venet

    (@aurovrata)

    It would appear to be a path issue, the $this->template variable is missing a path, it only stores the 404.php file name, hence changing the function on p194 to,

    
    function change_404_template( $template ) {
        // we have to check if the template file is there because if the theme was changed maybe a wrong template is stored in the database
            
        $user_template = get_stylesheet_directory().'/'.$this->template;
    
        if ( file_exists( $user_template ) || '' != locate_template( $user_template ) ) {
          return $user_template;
        } 
        return $template;
      }
    

    fixes the problem for me.

    Plugin Contributor Peter Raschendorfer

    (@petersplugins)

    Hi,

    thanks a lot for your effort. I’ve already identified this as an issue and it is fixed in the upcoming v 2.3. If you’d download the current development version https://downloads.www.ads-software.com/plugin/404page.zip it should be solved.

    Regards,
    Peter

    Plugin Contributor Peter Raschendorfer

    (@petersplugins)

    Final version 2.3 is out. Could you please confirm it works for ypu?

    Peter

    Plugin Contributor Peter Raschendorfer

    (@petersplugins)

    No response since about 6 weeks. Marked as resolved.

    Thread Starter Aurovrata Venet

    (@aurovrata)

    Very sorry peter, for some reason I didn’t get notices from WP about your replies. I appreciate the quick response for your end as well as the fix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blank page instead of 404 error page’ is closed to new replies.