WordPress: styling has all gone....

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

WordPress: styling has all gone....

Post by simonmlewis »

Hi there.
I have dragged the contents of a blog folder in a subdomain to the blog folder in the live domain.

The data is working, as it's showing content, but wp-admin doesn't work, and no styling is working. It's like CSS is removed.

But it is there, I can see it in the FTP folder.

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /blog/wp-content/themes/lovecraft/style.css was not found on this server.</p>
<hr>
<address>Apache Server at beta.domainname.co.uk Port 80</address>
</body></html>

I don't know why it's still looking for beta. Any ideas?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress: styling has all gone....

Post by simonmlewis »

Could it be because we had an old Blog in that blog folder. I deleted it and now it's confused it - is there some method to change that beta, so it points to the right place? I'm sure it's something in the core of it that's not sure. Rather than be binning it and starting over, be good to be able to fix it.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress: styling has all gone....

Post by Celauran »

WP stores full URLs in the database. Check WP_HOME and WP_SITEURL values in your wp-config.php. If they're not there, add them.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress: styling has all gone....

Post by simonmlewis »

No they are not in wp-config.php.

How do I code that in there please?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: WordPress: styling has all gone....

Post by Celauran »

Code: Select all

define('WP_HOME', 'http://yoursite.com');
define('WP_SITEURL', 'http://yoursite.com');
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress: styling has all gone....

Post by simonmlewis »

Got it - but now the images at the top don't show. But they are in there...... Trying to suss out why.

It's the images that are still looking for the BETA portion of the URL.
Is that in the database somewhere, or elsewhere?
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
simonmlewis
DevNet Master
Posts: 4435
Joined: Wed Oct 08, 2008 3:39 pm
Location: United Kingdom
Contact:

Re: WordPress: styling has all gone....

Post by simonmlewis »

It's ok, I've sorted it. The main image had a beta in the URL.
The other few ones were correctly URLd but still didn't work. Jsut removed and started those again.

thanks for your guidance.
Love PHP. Love CSS. Love learning new tricks too.
All the best from the United Kingdom.
Post Reply