Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-12-11 05:39:40

tomic
New Member
Registered: 2009-08-19
Posts: 5

/textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

I’m a bit stumped. I’ve installed textpattern 4.2.0 and I’m having a baffling problem post-install.

I’m hosted on dreamhost. I installed textpattern in the site’s root dir (http://iili.li), created the db OK, and can edit the default article, create new, etc. The site is up now. Here’s root dir contents:

[host ]$ pwd
/home/username/iili.li
[host ]$ ls
HISTORY.txt css.php favicon.ico images rpc textpattern
README.txt favicon.gif files index.php sites textpattern-4.2.0
[host]$

All three test articles are visible fine when you visit the site (http://iili.li). But the sidebar ARTICLES link (http://www.iili.li/articles/) gets error 404, as does the “VIEW” link in the Content::Articles page.

Clicking a category link returns 404 not found also.

I don’t see this problem in any FAQ. I assume it’s an install error of some sort.

Last edited by tomic (2009-12-11 05:39:59)

Offline

#2 2009-12-11 05:59:09

tomic
New Member
Registered: 2009-08-19
Posts: 5

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

OK, found it. Why is it so, that as soon as I post, a re-check finds the problem?

THe problem is that the .htaccess file, being a dot file, is NOT COPIED by the recommended tutorial method of

untar tar or zip file

cp textpattern-4.2.0/* ./

It’s already missing the -r for cp, I did that by rote, but I neglected to think of the dot file…

The tutorial should read:

cd textpattern-4.2.0
cp -r * .* ../

That would work.

Offline

#3 2009-12-11 11:06:20

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

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

tomic wrote:

OK, found it. Why is it so, that as soon as I post, a re-check finds the problem?

It happens to most of us every now and then ;) Glad you solved it!

The tutorial should read:

Which tutorial are you referring to?

Offline

#4 2009-12-11 15:53:07

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

Im having the same problem…what is the tutorial your referring to. please help

Offline

#5 2009-12-11 16:17:21

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

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

sbaldino

You can find the Detailed installation instructions here.

Offline

#6 2009-12-11 17:31:29

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

Els wrote:

sbaldino

You can find the Detailed installation instructions here.

thank you. Ill look around. Is the 404 error with Categories a problem with the .htaccess file?

Offline

#7 2009-12-11 19:13:08

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

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

If you’re only getting the 404 for category pages, probably not. You can check if you correctly uploaded .htaccess in the Admin > Diagnostics tab. If .htaccess is not missing, can you post examples of the URLs that work and those that don’t? A link would be even better.

Offline

#8 2009-12-11 19:44:29

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

Here is the diagnostic for .htaccess

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html

#Options +FollowSymLinks
#Options -Indexes

<IfModule mod_rewrite.c> RewriteEngine On #RewriteBase /relative/web/path/

RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^(.*) index.php

RewriteCond %{HTTP:Authorization} !^$ RewriteRule .* – [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>

#php_value register_globals 0
———————————————————————————————————————-

Here is a link were I get the 404 error

http://crosstownechurch.scottbaldinodesign.com/article/?c=New-To-Crosstowne

Offline

#9 2009-12-11 20:14:58

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

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

sbaldino wrote:

Here is the diagnostic for .htaccess

Nothing wrong with .htaccess :)

Here is a link were I get the 404 error

http://crosstownechurch.scottbaldinodesign.com/article/?c=New-To-Crosstowne

Your section is named ‘articles’ and not ‘article’ :) The category menu is probably a <txp:category_list /> tag with the attribute section="article"? If you change that to articles it should solve the problem.

Offline

#10 2009-12-11 21:50:54

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

Els wrote:

sbaldino wrote:

Here is the diagnostic for .htaccess

Nothing wrong with .htaccess :)

Here is a link were I get the 404 error

http://crosstownechurch.scottbaldinodesign.com/article/?c=New-To-Crosstowne

Your section is named ‘articles’ and not ‘article’ :) The category menu is probably a <txp:category_list /> tag with the attribute section="article"? If you change that to articles it should solve the problem.

-That was it tnx!!

Offline

#11 2009-12-15 17:00:08

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

Els wrote:

sbaldino wrote:

Here is the diagnostic for .htaccess

Nothing wrong with .htaccess :)

Here is a link were I get the 404 error

http://crosstownechurch.scottbaldinodesign.com/article/?c=New-To-Crosstowne

Your section is named ‘articles’ and not ‘article’ :) The category menu is probably a <txp:category_list /> tag with the attribute section="article"? If you change that to articles it should solve the problem.

One more issue…when posting an article, ive placed it in a category but it wont display on the page. Only the title of the category shows up.
heres the link. Prolly another simple fix?

http://crosstownechurch.scottbaldinodesign.com/articles/?c=New-To-Crosstowne

Offline

#12 2009-12-15 17:43:56

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

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

Is there a <txp:article /> tag on the page for section ‘articles’?

Offline

#13 2009-12-15 17:52:17

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

I dont see one….
heres the code for the ‘article’ page that I use in the ‘articles’ section

<txp:output_form form="head" />
<body id="body-subpage">
<div id="upper-part">
	<div id="wrapper">
		<div id="header">
			<h1><a href="<txp:site_url />" title="<txp:sitename />"><txp:sitename /></a></h1>
			<h2><txp:site_slogan /></h2>
		</div>
	</div>
<txp:output_form form="navbar" />
</div>
<div id="lower-part" class="clearfix">
	<div class="col640">
<txp:if_article_list>
	<txp:if_category>
		<h3>Articles in &lsquo;<txp:category link="0" title="1" />&rsquo;</h3>
	<txp:else />
		<h3><txp:section link="0" title="1" /></h3>
	</txp:if_category>
		<txp:article listform="excerptlist" limit="99999" />
<txp:else />
			<txp:article limit="99999" />
</txp:if_article_list>
	</div>
	<div class="col320">
<txp:if_individual_article>
		<div id="recent-articles">
			<h3>Recent articles</h3>
			<ul class="linklist"><txp:article_custom section="articles" limit="5" form="articlelist" /></ul>
			<txp:section link="1" title="1" wraptag="p" name="archive" class="to-right full-article" />
		</div>
<txp:else />
		<div id="categories">
			<h3>Browse by categories</h3>
			<txp:category_list break="li" wraptag="ul" class="linklist" section="articles" />
		</div>
</txp:if_individual_article>
		<div id="feeds">
			<txp:output_form form="feeds" />
		</div>
		<div id="recent-comments">
			<h3>Recent comments</h3>
			<txp:recent_comments limit="3" wraptag="ul" break="li" class="linklist" />
		</div>
	</div>
<txp:if_individual_article>
<txp:output_form form="comments_display" />
</txp:if_individual_article>
</div>
<txp:output_form form="footer" />

(added bc. for better code display. -Els)

Last edited by els (2009-12-15 17:59:33)

Offline

#14 2009-12-15 18:04:19

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

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

sbaldino wrote:

I dont see one….

Yes, there is:

<txp:else />
			<txp:article limit="99999" />

It should display articles in section ‘articles’ and category ‘new-to-crosstowne’ on the requested page. It’s possible that the problem lies in your use of capitals in the category name. Section and category names should always be all lower case.

Offline

#15 2009-12-15 18:14:49

sbaldino
Member
Registered: 2009-12-11
Posts: 12

Re: /textpattern/ newbie but experienced admin, /articles/ 404 NOT FOUND

I made the change to the category name and made it all lower case…still same result. Any other suggestions?

Offline

Board footer

Powered by FluxBB