Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-04-11 22:20:25

delia
New Member
Registered: 2011-04-11
Posts: 9

moved to a new server

Brand new to text pattern- moved an established site to my server. Everything looks fine except there’s no css being applied. Did I miss a file or is there a trick to this? Since I can’t see what css files are supposed to be pulled in besides css.php. I’m pretty clueless here.

Offline

#2 2011-04-11 22:45:04

delia
New Member
Registered: 2011-04-11
Posts: 9

Re: moved to a new server

delia wrote:

Brand new to text pattern- moved an established site to my server. Everything looks fine except there’s no css being applied. Did I miss a file or is there a trick to this? Since I can’t see what css files are supposed to be pulled in besides css.php. I’m pretty clueless here.

and no it’s not the white space in the config file. Admin is fine. I checked diagnostics, etc. Boy I hope someone is watching this forum.

Offline

#3 2011-04-11 22:57:31

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: moved to a new server

By default the css is in the database. You can find it under Presentation > Style. Styles can be assigned to sections in Presentation > Sections. Have a look at the source code of your page, in a default install it will have something like <link rel="stylesheet" type="text/css" media="screen" href="http://site.com/css.php?n=default" />, meaning it is using style ‘default’.
Of course you can use static css files if you prefer.

Last edited by els (2011-04-11 23:17:10)

Offline

#4 2011-04-11 23:13:12

delia
New Member
Registered: 2011-04-11
Posts: 9

Re: moved to a new server

Yep, that’s there but it’s not applying any styles. I can see the css file being included in firefox. The link is good but the page acts like the stylesheet isn’t there. I use the web developer tools and if I try to see the css in a section, firefox says there’s no style there.

Clarification…

there are two files names css.php.

One in the root directory that is the actual css and one in the textpattern directory which require statement to pull in the css, right?

Offline

#5 2011-04-11 23:15:07

delia
New Member
Registered: 2011-04-11
Posts: 9

Re: moved to a new server

oh, and if this makes a difference – it’s version 4.2. I had uploaded the files for the most recent version before I realized that it wasn’t the right version. So I just uploaded the files from the old site over those files. So there could be 4.4 extras running around?

Offline

#6 2011-04-11 23:28:23

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: moved to a new server

It’s possible that replacing the 4.4 files with the older ones has something to do with it. The best way to move a site is using these instructions, and only after the move upgrade to the newest version.

Best option would be to repeat the move using the above instructions. How did you move the database? The css is in the ‘txp_css’ table, maybe something went wrong there. Can you see a stylesheet in Presentation > Style?

Offline

#7 2011-04-11 23:34:10

delia
New Member
Registered: 2011-04-11
Posts: 9

Re: moved to a new server

I don’t see a style section in presentation. Since I have never seen the admin before now, I would assume there could be more missing that I’m not aware of. There is an entry in the database table but I have no clue what it’s supposed to look like. Goobletygoop is a good description. Should it have the actual css there? Should it be something I can read?

Offline

#8 2011-04-11 23:39:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: moved to a new server

delia wrote:

I don’t see a style section in presentation. Since I have never seen the admin before now, I would assume there could be more missing that I’m not aware of.

In Presentation, you should see these subtabs: Sections, Pages, Forms, Styles. Is anything else missing?

Goobletygoop is a good description. Should it have the actual css there? Should it be something I can read?

The css in the database is base 64 encoded (or it was until recently, not in the latest version), so goobletygoop looks indeed like a good description ;)

Last edited by els (2011-04-11 23:41:06)

Offline

#9 2011-04-11 23:41:29

delia
New Member
Registered: 2011-04-11
Posts: 9

Re: moved to a new server

Found the styles tab and it does show the styles

Offline

#10 2011-04-11 23:43:29

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: moved to a new server

Can you post a tag trace of an unstyled page? You need to set Production status to ‘debug’ (in Admin > Preferences) to see it in the source.

Offline

#11 2011-04-11 23:47:59

delia
New Member
Registered: 2011-04-11
Posts: 9

Re: moved to a new server

When I did that – some errors do show up but all of a sudden so did the css styling. It does show some errors but don’t know that it would cause this problem – several like this Tag error: <txp:if_article_id id=“4”> -> Textpattern Notice: Article tags cannot be used outside an article context on line 2175

Offline

#12 2011-04-11 23:58:12

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: moved to a new server

delia wrote:

Tag error: <txp:if_article_id id="4"> -> Textpattern Notice: Article tags cannot be used outside an article context on line 2175

Hmm, yes, looks like you need to change a couple of things. Try to locate this tag (a useful plugin for finding things is smd_where_used) and add another tag around it, something like

<txp:if_individual_article>
<txp:if_article_id id="4">
...
</txp:if_article_id>
</txp:if_individual_article>

I’m sorry, it’s very late over here so I’m off, I hope someone else will take over now ;)

Offline

Board footer

Powered by FluxBB