Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-14 01:05:32

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Sudden unstyled 404 error page

Hi guys,

I accidentally deleted the error_default form, and then recreated it. However all article permalinks lead to an unstyled error page.

Main page – http://www.algus.org.uk/members/

Try clicking on a ‘continue reading’ link to see what I mean. These links previously worked, so I’m not sure what has bought about the error!

Here is a copy of the diagnostic test:

[code]
Textpattern version: 4.0.4 (r1956)
Last Update: 2006-12-13 17:16:51/2006-12-13 17:07:57
Document root: /home/7912/domains/algus.org.uk/html
$path_to_site: /home/7912/domains/algus.org.uk/html/members
Textpattern path: /home/7912/domains/algus.org.uk/html/members/textpattern
Permanent link mode: id_title
Temporary directory path: /home/7912/domains/algus.org.uk/html/members/textpattern/tmp
Site URL: www.algus.org.uk/members
PHP version: 4.4.4
Server Local Time: 2006-12-13 17:32:42
MySQL: 4.1.11-Debian_4sarge7
Locale: C
Server: Apache/2.0.54
PHP Server API: cgi-fcgi
RFC 2616 headers:
Server OS: Linux 2.6.18.2mtv4
Active plugins: rss_suparchive-0.18

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#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>

#php_value register_globals 0

————————————
[/code]

(Yes I tried to use ‘@’ to render above as code but it did not work!)

Cheers,

Saj

Last edited by snkhan (2006-12-14 01:37:25)

Offline

#2 2006-12-14 02:12:01

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Sudden unstyled 404 error page

You need to correct the links to your stylesheets. Change from this:

../assets/css/algus.css

to this:

/members/assets/css/algus.css

Offline

#3 2006-12-14 02:18:59

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: Sudden unstyled 404 error page

Thanks mary, but this does not explain why I am encountering the error page in the first place?

Offline

#4 2006-12-14 02:25:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Sudden unstyled 404 error page

Offline

#5 2006-12-14 02:45:37

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: Sudden unstyled 404 error page

Mary, I don’t understand, the very same permalinks were working less than 5 hours ago!

Offline

#6 2006-12-14 02:53:11

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Sudden unstyled 404 error page

Check: is your .htaccess file still there? What does your diagnostics tab say?

Offline

#7 2006-12-14 03:01:29

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: Sudden unstyled 404 error page

Hi Mary,

Yes the .htacess file is still there. Here is a dump of the diagnostic test (high)

Textpattern version: 4.0.4 (r1956)
Last Update: 2006-12-13 17:16:51/2006-12-13 17:07:57
Document root: /home/7912/domains/algus.org.uk/html
$path_to_site: /home/7912/domains/algus.org.uk/html/members
Textpattern path: /home/7912/domains/algus.org.uk/html/members/textpattern
Permanent link mode: section_id_title
Temporary directory path: /home/7912/domains/algus.org.uk/html/members/textpattern/tmp
Site URL: www.algus.org.uk/members
PHP version: 4.4.4
Server Local Time: 2006-12-13 18:59:30
MySQL: 4.1.11-Debian_4sarge7
Locale: C
Server: Apache/2.0.54
PHP Server API: cgi-fcgi
RFC 2616 headers:
Server OS: Linux 2.6.18.2mtv4
Active plugins: rss_suparchive-0.18

.htaccess file contents:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /members/

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

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

#php_value register_globals 0

————————————

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/share/mysql/charsets/
17 Tables: -

PHP extensions: zip, xslt, xmlrpc/0.51, xml, wddx, tokenizer/0.1, standard/4.4.4, sockets, session, pspell, posix, pgsql, overload, mysql, mime_magic/0.1, mhash, mcrypt, mcal, mbstring, json/1.2.1, imap, iconv, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.37.2.4 2006/01/01 13:46:52 sniper Exp $, domxml/20020815, dbx, dba, curl, ctype, crack, calendar, bz2, bcmath, zlib/1.1, pcre, openssl, Zend Optimizer

pretext_data: array ( ‘id’ => ‘’, ‘s’ => ‘’, ‘c’ => ‘’, ‘q’ => ‘’, ‘pg’ => ‘’, ‘p’ => ‘’, ‘month’ => ‘’, ‘author’ => ‘’, ‘request_uri’ => ‘/members/b5d2f503699cc5940e6682c88ea027bd/?txpcleantest=1’, ‘qs’ => ‘txpcleantest=1’, ‘subpath’ => ‘\\/members\\/’, ‘req’ => ‘/b5d2f503699cc5940e6682c88ea027bd/?txpcleantest=1’,
)

/include/txp_category.php: r1879 (aee777474b2f67ca07fc25756ba25c15)
/include/txp_plugin.php: r1917 (74184c0d8ed8608f840707a255178617)
/include/txp_auth.php: r1879 (b1dd4072b7daf4e997c6ff65ce3d1b2d)
/include/txp_form.php: r1913 (16ec600b41438b4cca10d2c8a19b2db8)
/include/txp_section.php: r1891 (2959593586ba3e97bc602f369c32e738)
/include/txp_tag.php: r1915 (3b4a7f73d92f9bbbe09985c5aa830d29)
/include/txp_list.php: r1892 (41f4d32fd070234b78f94adefebd5234)
/include/txp_page.php: r1913 (34331a5468bbb18dd9f6a282f3aa11e8)
/include/txp_discuss.php: r1909 (9b9ee934a30f52cd7a4d8cb45c8380ab)
/include/txp_prefs.php: r1946 (05615b6275d8927a2a0d51918d70a896)
/include/txp_log.php: r1919 (ed54d02e865319f2506c642a6bde768b)
/include/txp_preview.php: r1238 (5a4ae3ff0d68f4cb573d6d62a00ce9e8)
/include/txp_image.php: r1955 (20be975e67fa7c4aa9a1a3e51bfaf379)
/include/txp_article.php: r1889 (7749f699c03d0c57e04fafe17dbfa94c)
/include/txp_css.php: r1897 (f5cf1c20badb96a063c7c180e9020359)
/include/txp_admin.php: r1879 (d36dac010d21df7bcf9cf5e242b34d58)
/include/txp_link.php: r1879 (0652287df8bb32c66cfa1b939402404a)
/include/txp_diag.php: r1902 (96697ade63048e517177f4129d47de76)
/include/txp_file.php: r1895 (6ed67b094522e51b028dc88baa07444c)
/include/txp_import.php: r1238 (634e75d1b61958875ff275e3130f23ad)
/lib/admin_config.php: r1747 (1563fcbaffe25b3272b0d85ff9d5571d)
/lib/txplib_misc.php: r1956 (182c50b86195f1abe9dbe15728df3cae)
/lib/taglib.php: r1535 (04806ef864d5b0d2974e0e5f6397a2d7)
/lib/txplib_head.php: r1887 (b110efd071e9a5bb395beea66ced128a)
/lib/classTextile.php: r1943 (2c559991e34738eef1990dc079bd91c4)
/lib/txplib_html.php: r1937 (c206ca9cb9a54a7a95f3355b77fd0fa2)
/lib/txplib_db.php: r1879 (d68b6ea69950e405c4fec23b8641d9c2)
/lib/IXRClass.php: r765 (cbe59b59246dce060a4b4a52b4d448d8)
/lib/txplib_forms.php: r1887 (0049a228dc8eb346f8603478a7c1b2e2)
/lib/class.thumb.php: r1955 (12961180eee3add5096e69e0a154284e)
/lib/constants.php: unknown (0e40251c717c52b2b7fe992b62a3e97a)
/lib/txplib_update.php: r1239 (757f8189fcc53a795d7c807f17b2e788)
/lib/txplib_wrapper.php: unknown (584448787b4a3488200722672c0eee0d)
/publish/taghandlers.php: r1949 (3fa1b9ded18e6074b2495a3f4e3c33b5)
/publish/atom.php: r1864 (50602e2f1c443819a0a60f14f39d3093)
/publish/log.php: r1637 (a4a772567079f18101a1752446f3f6d4)
/publish/comment.php: r1951 (a3f803d744fea80808eb27a3f6b28674)
/publish/search.php: r1748 (b0182abc287055fe0932c263b2a5266d)
/publish/rss.php: r1864 (ae43eaa9ebe6b00e63810ae60ca7c6b6)
/publish.php: r1945 (abff727405efc6c4ec8b1cb403290063)
/index.php: r1948 (adf86f44861797f4969373c708ef48fb)
/css.php: r944 (763fa7658fc19ad23a5b2126fcdf366c)

I do not mind you having a look at my admin settings (I can email you a username/password) just in case something has changed.

Offline

#8 2006-12-14 05:00:47

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Sudden unstyled 404 error page

It looks like even messy urls are not working.

Okay, next up try a tag trace of the main page.

Offline

#9 2006-12-14 12:46:20

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: Sudden unstyled 404 error page

<code>
<!— Runtime: 0.0194 —>
<!— Query time: 0.009629 —>
<!— Queries: 13 —>
<!— Memory: 2030Kb, <txp:site_url /> —>
<!— txp tag trace:
[SQL (0.000278): select name from txp_lang where lang=‘en-gb’ limit 1]
[SQL (0.001402): select name, data from txp_lang where lang=‘en-gb’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.001841): select name, code, version from txp_plugin where status = 1]
[SQL (0.000255): select title from txp_section where name=’‘]
[SQL (0.000259): select * from txp_section where name = ‘default’ limit 1]
[SQL (0.000511): select host from txp_log where ip=‘86.128.79.150’ limit 1]
[SQL (0.000808): insert into txp_log set `time`=now(),page=’/members/’,ip=‘86.128.79.150’,host=‘host86-128-79-150.range86-128.btcentralplus.com’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000595): select user_html from txp_page where name=‘default’]
[Page: default]
<txp:php>
</txp:php>
<txp:feed_link flavor=“rss” format=“link” label=“RSS” />
<txp:article limit=10 /> [SQL (0.000245): select name from txp_section where on_frontpage != ‘1’] [SQL (0.000386): select count(*) from textpattern where 1 and Status = 4 and Posted <= now()] [SQL (0.002059): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now() order by Posted desc limit 0, 10] [SQL (0.000306): select Form from txp_form where name=‘default’] [Form: default] [article 2] <txp:if_article_list> [<txp:if_article_list>: true] <txp:permlink> <txp:title/> </txp:permlink> <txp:excerpt/> <txp:permlink> </txp:permlink> <txp:site_url/> </txp:if_article_list> [article 1] <txp:if_article_list> [<txp:if_article_list>: true] <txp:permlink> <txp:title/> </txp:permlink> <txp:excerpt/> <txp:permlink> </txp:permlink> <txp:site_url/> </txp:if_article_list>
<txp:if_individual_article> [<txp:if_individual_article>: false] <txp:older> </txp:older> <txp:newer> </txp:newer>
</txp:if_individual_article>
<txp:if_individual_article> [<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:php>
</txp:php>
[ ~~~ secondpass ~~~ ] —>

</code>

Unsure what the above means, hope this helps!

Offline

#10 2006-12-14 14:27:53

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Sudden unstyled 404 error page

[SQL (0.000255): select title from txp_section where name=’‘]

Do you get that, when you access this url as well:

http://www.algus.org.uk/members/index.php?s=article

also: Does deactivating your plugins change anything?

Last edited by Sencer (2006-12-14 14:28:36)

Offline

#11 2006-12-14 15:16:20

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: Sudden unstyled 404 error page

When accessing the above URL I get a styled 404 page (as defined in error_default).
Disabling the active plugin (Rob Sable’s archive) has no effect, and I continue to get an error.

Offline

#12 2006-12-14 16:27:43

snkhan
Member
From: Leicester, UK.
Registered: 2004-07-20
Posts: 57
Website

Re: Sudden unstyled 404 error page

I ended up re-installing textpattern, and now everyhting works beautifully. Thanks you for all your help, although this will teach me to double check all settings before I go round deleting stuff!

Offline

Board footer

Powered by FluxBB