pagehaus

Guides

Your AI-made website works on your computer but not online

An AI assistant made you a website. It looks right when you open it on your computer, but once it's online the images are missing, the page is blank, or the contact form sends nothing. It's almost always one of a dozen causes, and most take a minute to fix. They're the same on any host.

Find your symptom below. If you'd rather not fix it by hand, copy the cause into the chat and ask the assistant to fix the files: it usually can, once it knows what's wrong.

The page shows code instead of the website

You see a starter page, a list of files, or "not found" at your address

Images don't show

The same causes as images: case (About.html vs about.html), paths on your computer, or a page the assistant mentioned but never wrote. Links to localhost or 127.0.0.1 only work while a program runs on your computer; replace them with your page names.

The page is blank

The contact form sends nothing

Forms need something on the server to receive them, and what assistants write often isn't there:

On Pagehaus, change the form to action="/_form/contact" method="post" and messages are emailed to you, with no other code. See contact forms without PHP.

What you save disappears, or other people can't see it

Bookings, orders, comments or an "admin panel" that saves without a database usually keep everything in your own browser (it's called local storage). It works when you try it, but each visitor sees only what they entered on their own device, and clearing the browser wipes it. Sharing data between visitors needs a server or a service. For orders and bookings, a form that emails you each one is often enough.

A login page with the password in the code

If the assistant made a login or admin page that checks the password in the page itself, anyone can read the password: right-click → View page source shows it. It isn't protection. For a private area, use a host's password protection (on Pagehaus, password-protected pages on a Personal or Pro plan), or keep that page off the internet.

The page uses an API key

A page that talks to ChatGPT, a map service or a database often has a secret key written into its code. Anyone can copy it from the page and run up your bill. Don't publish it. If you already did, remove the page and create a new key with the service (the old one is exposed for good). Features like that need a small server that keeps the key private.

PHP, Python or Node files

Files ending in .php, .py or a server.js are programs meant to run on a server. Hosts for plain websites, Pagehaus included, don't run them. Ask the assistant whether the site can work without them; a surprising amount can, with a form service for the parts that send something.

It looks wrong on a phone

Tiny text and a zoomed-out layout mean the page is missing one line in its <head>:

<meta name="viewport" content="width=device-width, initial-scale=1">

Your change doesn't show

Reload without the browser's saved copy: Ctrl+F5 on Windows, Cmd+Shift+R on a Mac. If it still doesn't show, check you replaced the file in the right place: two copies called index.html in different folders is a common mix-up.

Find these problems automatically

Not online yet? Make a free site, drop your files on its Files tab, and it's live at https://yoursite.pagehaus.site/.