Guides › HTML / PHP sites › Security & hacks

An AI-Built or AI-Edited Website Broke: What to Check

Code written by AI tools can run but still be unsafe or fragile. Back up, read errors, and review the risky parts.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.

AI tools can write a page or plugin in minutes. They can also write code that breaks on your server or opens security holes. If a site stopped working after AI-made changes, do this.

1. Stop editing live

Go back to the last working backup, or copy the site to a test location. See restore guide.

2. Read the real error

Turn on error logging, see debug log guide or PHP errors. Paste the exact error back to the AI with your PHP and WordPress versions.

3. Common problems

4. Review security

Check that forms validate input, database queries use prepared statements (guide), no passwords or keys sit in the code, and uploads are restricted.

5. Get a human review

For anything that takes payments or stores customer data, have an experienced developer review the code before it goes live.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.