Fatal error: Cannot declare class

Hi there,

I’m pretty new on WordPress, and so on Local.
I have a fatal error when I try to launch a website that was running an hour ago :slightly_frowning_face:

`Fatal error: Cannot declare class ET_Builder_Post_Query_Layouts, because the name is already in use in /Users/Alex/Documents/DIVI/Websites/stephy/app/public/wp-content/themes/Divi/includes/builder/post/query/Layouts.php on line 0` 

I’ve seen here some others had similar issues, but not exactly the same, and I’m clearly not enough expert to see exactly what to do.

Here is the full error :

Can someone explain me what I should understand, and how to correct it?

Thanks very much in advance !


Do please someone can help me get my website back?
I assume there is something quite easy to do (like deleting a duplicate file), but I really have no idea :slightly_frowning_face:

Thank you in advance !

Switch to a default theme. There’s something in Divi theme that’s resulting in a problem. Once you get the site back deactivate all plugins that add anything to Divi, switch back to Divi and add the plugins back one by one to find the conflict.

OMG thank you very much afragen !

Since I did not have any clue on how to do what you told me to do, a quick search brought me here and it worked (just saying for others beginners like me - it may help)

Now I have to determine which plugin causes trouble… :slight_smile:

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.