Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-12 14:16:24

marvincooper
Member
Registered: 2004-10-13
Posts: 43

Hidden/Draft/Pending articles not throwing a 404

I don’t know what the intended behavior would be regarding status settings and 404 page not found functionality, but I was expecting one of the “hidden”, “pending” or “draft” settings to make the article disappear from public view completely.

Instead, all these settings seem to have the effect of hiding the content of the article but allowing the url to be live – hence no 404 error.

Problem is, I’ve changed status on some of my articles from “live” to “draft”, but the article url’s are showing up in google. When you click the link in google, you are taken to an empty page of my site rather than a 404 page.

Is this intentional?

Offline

#2 2005-11-12 21:33:59

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Hidden/Draft/Pending articles not throwing a 404

I can’t reproduce this in clean URL mode. Textpattern doesn’t handle 404’s for ?id=123 URLs, but that’s not specific to hidden/pending/draft.


Alex

Offline

#3 2005-11-12 21:55:38

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Hidden/Draft/Pending articles not throwing a 404

It’s confirmed here in clean mode for both v4.0.2 and dev branches. For instance, http://thresholdstate.com/threshold/9 returns 200/OK with an empty page.

Last edited by Andrew (2005-11-12 22:17:13)

Offline

#4 2005-11-12 22:29:10

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Hidden/Draft/Pending articles not throwing a 404

thresholdstate.com isn’t running stock Textpattern.

Ah, I just noticed I was testing in y/m/d/t url mode.


Alex

Offline

#5 2005-11-12 22:50:34

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: Hidden/Draft/Pending articles not throwing a 404

Ok, here’s an example on 4.0.2: http://compooter.org/article/138 (an article in draft mode)

Last edited by Andrew (2005-11-12 22:50:47)

Offline

#6 2005-11-13 00:00:14

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Hidden/Draft/Pending articles not throwing a 404

I assume the URL mode is set to section/id/title?


Alex

Offline

#7 2005-11-13 09:00:29

marvincooper
Member
Registered: 2004-10-13
Posts: 43

Re: Hidden/Draft/Pending articles not throwing a 404

This is set to Draft but shows as a blank page

I’m running 4.02 in section/title mode. Here’s my diagnostics:

Textpattern version: 4.0.2 (r1076)
last_update: 2005-11-03 14:16:30/2005-11-03 14:01:17
Document root: /home/username/public_html (/users/home/username/public_html)
$path_to_site: /users/home/username/public_html
Textpattern path: /users/home/username/public_html/textpattern
Permanent link mode: section_title
upload_tmp_dir: /tmp
Temp folder: /users/home/username/public_html/textpattern/tmp
Site URL: swindonharriers.com
PHP version: 5.0.4
server_time: 2005-11-13 09:00:19
MySQL: 4.1.13-log
Locale: en_GB.UTF-8
Server: Apache

.htaccess file contents: ————————————
  1. DirectoryIndex index.php index.html
  2. Options +FollowSymLinks
  3. RewriteBase /relative/web/path/

<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]

RewriteRule ^(.*) index.php </IfModule> ————————————

Charset (default/config): latin1/utf8
character_set_client: utf8
character_set_connection: utf8
character_set_database: latin1
character_set_results: utf8
character_set_server: latin1
character_set_system: utf8
character_sets_dir: /usr/local/share/mysql/charsets/
19 Tables: textpattern is latin1, textpattern: 2 clients are using or haven’t closed the table properly, txp_category is latin1, txp_category: 1 client is using or hasn’t closed the table properly, txp_css is latin1, txp_discuss is latin1, txp_discuss_ipban is latin1, txp_discuss_nonce is latin1, txp_discuss_nonce: 2 clients are using or haven’t closed the table properly, txp_file is latin1, txp_form is latin1, txp_form: 1 client is using or hasn’t closed the table properly, txp_image is latin1, txp_lang is latin1, txp_link is latin1, txp_log is latin1, txp_log_mention is latin1, txp_page is latin1, txp_page: 2 clients are using or haven’t closed the table properly, txp_plugin is latin1, txp_prefs is latin1, txp_prefs: 2 clients are using or haven’t closed the table properly, txp_section is latin1, txp_section: 2 clients are using or haven’t closed the table properly, txp_users is latin1

PHP extensions: standard/5.0.4, SPL, libxml, bcmath, bz2, ctype, curl, dbx, dio/0.1, SimpleXML, dom/20031129, exif/1.4 $Id: exif.c,v 1.162.2.8 2005/03/17 17:20:35 iliaa Exp $, fribidi/0.1, gd, gettext, gmp, iconv, imap, ssh2/0.1, mbstring, mcrypt, mhash, mysql, mysqli/0.1, ncurses, openssl, pcntl, pcre, pgsql, posix, readline, session, shmop, soap, sockets, SQLite, tokenizer/0.1, xml, xmlrpc/0.51, xsl/0.1, zlib/1.1, pdf/2.0.3, Zend Optimizer
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)

Last edited by marvincooper (2005-11-13 09:25:26)

Offline

#8 2005-11-15 15:50:20

marvincooper
Member
Registered: 2004-10-13
Posts: 43

Re: Hidden/Draft/Pending articles not throwing a 404

Should this be moved to Bug Reports?

Offline

#9 2005-11-16 06:00:24

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: Hidden/Draft/Pending articles not throwing a 404

Confirmed.

  • URL schema: /section/title
  • article state: draft
  • Shows blank page
  • txp:related_articles lists all articles it would list when the article was live

Offline

Board footer

Powered by FluxBB