• Resolved tastabasta

    (@tastabasta)


    Amp-theme-framework-master custom theme + DIVI for non AMP
    Fatal error after last update of AMP plugin.

    Fatal error: Cannot redeclare my_has_comments_filter() (previously declared in [stripped]/wp-content/themes/divi-child/divi-extensions/ds-custom-modules.php:295) in [stripped]/wp-content/themes/divi-child/divi-extensions/ds-custom-modules.php on line 295

    https://prntscr.com/k0e2xu

    Also error 500 in built-in designs. I suppose if I’ll enable error reporting I’ll see the same error.

    custom frontpage template starts with

    echo "<pre>";
    var_dump("custom frontpage template"); // to see that it's a template we use ))
    echo "</pre>";
    amp_header(); 
    <div>;
    

    if I choose another page as homepage in settings – my custom frontpage template works, but <title> is from chosen page ))

    https://prntscr.com/k0e48h

    • This topic was modified 6 years, 8 months ago by tastabasta.
    • This topic was modified 6 years, 8 months ago by tastabasta.
    • This topic was modified 6 years, 8 months ago by tastabasta.
Viewing 1 replies (of 1 total)
  • Thread Starter tastabasta

    (@tastabasta)

    Fixed with function_exists in /wp-content/themes/divi-child/divi-extensions/ds-custom-modules.php

    but it’s a plugin bug I think because this file was loaded twice

Viewing 1 replies (of 1 total)
  • The topic ‘fatal error on custom homepage’ is closed to new replies.