Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: 404 Not Working!
Well i’ve emailed Jon Hicks to see what his fix for this is, he clearly seems to have got it working correctly and can’t see him using something like that :S
Also the textpattern.com website has working 404s too, if i was to choose any section and make up an article it shows the 404, so what’s going on here?
EDIT: and i’m using /section/title/ but it’s still not showing the 404 if i have a section in the url :S damn
Last edited by driz (2008-09-14 02:18:47)
~ Cameron
Offline
Re: 404 Not Working!
Also the textpattern.com website has working 404s too, if i was to choose any section and make up an article it shows the 404, so what’s going on here?
It almost always works, so Hicks haven’t fixed anything, it just works as it “always” does.
Last edited by Gocom (2008-09-14 02:21:01)
Offline
Re: 404 Not Working!
Hmm okies, so basically it would mean my server? But that also doesnt add up, because WordPress, EE, and other CMS’s I have tried don’t do this, so clearly Textpattern’s way of handling URLS isnt friendly to all users. x
~ Cameron
Offline
Re: 404 Not Working!
As I said earlier:
Ofcourse it can be safe checked again and again, like in the section/id/title scheme the title could be checked, but there are some minus points against that check. In example speed loss: it would require one extra query, together it makes three of them; section, id and article.
Atleast TXP doesn’t have clean URL security holes that is too common in the CMS business, because of some ppl write code with out knowing what it exactly does: in example some ppl trust the URL parsing and modrewrite too much.
Also clean URLs are basically always done in the same way, so don’t directly blame TXP ;) You can also say that TXP is kinda original grandfather in this area, cause txp’s script is old and somewhat original :D
Offline
Re: 404 Not Working!
Well this is something that needs fixing because going to section/dddd is as easy as going /dddd so I need the 404 to work will all NON-EXISTENT articles/pages/sections/
I tried those plugins and they haven’t helped. Surely their is a fix for something like this? :S
~ Cameron
Offline
Re: 404 Not Working!
I checked two of my sites that use the site.com/section/article url schema and I get 404’s as expected at site.com/section/not-real-article
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: 404 Not Working!
My 404s also behave correctly with the section/title scheme (on older and up-to-date installations).
driz, can you perhaps post your diagnostics infos (in the diagnostics tab) and are you using any plugins like gbp_permanent_links that change the url-scheme? I had a look at your site in the about area and tested it with a dummy string and it behaves what you say. Looking at the code (btw: run it through the validator – lots of simple errors) the rss/atom rel link seems to treat that as a category:
http://www.simplecandy.com/atom/?section=about&category=ewrewrhk
I couldn’t find an article in the about section, only a link to /jobs/ which shows the same page as the /about or as /about/jobs (which is what a normale sub-page url would look like) – in other words they all show the same information. Maybe it’s something with your setup?
TXP Builders – finely-crafted code, design and txp
Offline
Re: 404 Not Working!
jakob, yeah that would be the same that i want to know, the diac and possibly the tag traces of those odd pages. Well, plus driz’s installation is atleast little modified: the installition dir is changed from textpattern to something else.
Driz could you:
- post your full high diacnostics.
Offline
Re: 404 Not Working!
Textpattern version: 4.0.6 (r2805)
Last Update: 2008-03-18 14:51:40/2008-06-25 22:57:20
Document root: /home/driz/public_html
$path_to_site: /home/driz/public_html
Textpattern path: /home/driz/public_html/admin
Permanent link mode: section_title
Temporary directory path: /home/driz/public_html/www/textpattern/tmp
Site URL: www.simplecandy.com
PHP version: 5.2.0
Register globals: 1
GD Image Library: bundled (2.0.28 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2008-09-14 13:36:02
MySQL: 4.1.22-standard
Locale: en_GB.UTF-8
Server: Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
PHP Server API: cgi
RFC 2616 headers:
Server OS: Linux 2.6.9-42.0.3.ELsmp
Active plugins: rss_live_search-0.7m, rvm_css-0.3, upm_insert_tab-0.3, rss_unlimited_categories-0.7.4, rss_author_info-0.2, rss_article_edit-0.1, zem_contact_reborn-4.0.3.20, zem_contact_lang-4.0.3.6, rrz_lastfm_charts-0.1m, css_rating-0.1, ign_password_protect-0.5b4, rss_google_map-0.5, rss_admin_db_manager-4.3, rvm_privileged-0.3, rsx_plugins_table-1.2, zem_ir-0.5, zem_rewrite-0.6, rah_textile_bar-0.3
Pre-flight check:
————————————
File directory path is not writable: /home/driz/public_html/www/media/files
Temporary directory path is not writable: /home/driz/public_html/www/textpattern/tmp
Some Textpattern files have been modified:
/../index.php,
/lib/txplib_head.php,
/lib/txplib_html.php
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: show_source, allow_url_fopen
Clean URL test failed.
Temporary directory path and Plugin cache directory path should <strong>not</strong> match.
————————————
.htaccess file contents:
————————————
RewriteEngine On
RewriteCond %{HTTP_HOST} ^simplecandy.com
RewriteRule (.*) http://www.simplecandy.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
————————————
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/
18 Tables: txp_ratings is latin1
PHP extensions: xmlwriter/0.1, libxml, xmlrpc/0.51, dom/20031129, xmlreader/0.1, xml, wddx, tokenizer/0.1, session, SimpleXML, SPL, PDO, sockets, SQLite, standard/5.2.0, Reflection, pspell, posix, pgsql, pdo_sqlite/1.0.1, mysqli/0.1, mysql/1.0, mhash, mcrypt, mbstring, json/1.2.1, imap, iconv, hash/1.0, gettext, gd, ftp, filter/0.9.5-dev, exif/1.4 $Id: exif.c,v 1.173.2.5.2.4 2006/10/10 22:22:43 tony2001 Exp $, date/5.2.0, curl, ctype, calendar, bcmath, zlib/1.1, pcre, openssl, ionCube Loader, Zend Optimizer
/../index.php: r2774 (9b713b1062ca21ba262a0914934c474e)
/css.php: r2772 (4807cbc15661213f2b4d0fd26c7179ff)
/include/txp_admin.php: r2729 (0c2b3cf59ff433c943bcc293a526651a)
/include/txp_article.php: r2680 (49a7155d831f843bcf3e8de306dfe7f1)
/include/txp_auth.php: r2728 (c472bfbe49a71fd35e89000c8a18de08)
/include/txp_category.php: r2243 (0ed99b6f44b5d221bdf35674240141ab)
/include/txp_css.php: r2730 (7974aa87728b39d3afaba5a3b18cf6b5)
/include/txp_diag.php: r2791 (aeb96445180b68c31821e237b6150332)
/include/txp_discuss.php: r2774 (852a8a4d4307358e161e0501124b7247)
/include/txp_file.php: r2530 (9f34fdbf98b9b649d65e2ced4c9ca763)
/include/txp_form.php: r1913 (780340d28f384113c72924843194b43e)
/include/txp_image.php: r2668 (11269b464db6cfa3affff47674533a50)
/include/txp_import.php: r1238 (86f0e64d2c9362066e6c48b9cd486e37)
/include/txp_link.php: r2463 (2379d25f83b37ec6c8d5f3edb1122ce8)
/include/txp_list.php: r2725 (1ed6c6f729eaeb7f8a582b27cd5b9e78)
/include/txp_log.php: r2796 (f249e0962a996f05041b899fea91ccae)
/include/txp_page.php: r2717 (807ff04b4a649b54b3d710c1ab0a428f)
/include/txp_plugin.php: r2774 (e9fdc47a3ed9bdd13197d929161c6a13)
/include/txp_prefs.php: r2528 (50bd3be8c22e17d5ca2855ccea081bac)
/include/txp_preview.php: r1238 (c45992b3273ac8019477e2f959d63120)
/include/txp_section.php: r2759 (9208297e0bd7b3d41bd0e6f9fc9ab120)
/include/txp_tag.php: r2774 (f371b400e8d7318e2ac48e032fe6c274)
/index.php: r2805 (ee8ab2e3c4bc9abd77aa7384ecba5268)
/lib/IXRClass.php: r765 (0120eb4713c9b6446a0eebe8b1039d1c)
/lib/admin_config.php: r1747 (b972529744cb37a7695fe00316dada41)
/lib/class.thumb.php: r2329 (c7f66a32531f32d6dfcbe5c7d26c7852)
/lib/classTextile.php: r2779 (b6d5b9cecbc5bc6475b5d1ee6a5231ea)
/lib/constants.php: r2361 (5338211ece1b2592804acdd204c9df33)
/lib/taglib.php: r2612 (727737ebd08127c632b9822bae87fee0)
/lib/txplib_admin.php: r2726 (c4f65bac2ddef62867f5bfee97ad7dfe)
/lib/txplib_db.php: r2748 (3feb369b1c34f251815cd6085a216d62)
/lib/txplib_forms.php: r2759 (a2d3de62110e582fab2a3a20224661f4)
/lib/txplib_head.php: r2783 (8a7a63c98619015ece7502de6163eeac)
/lib/txplib_html.php: r2696 (13d5f6a88216c333989a2b98b0994596)
/lib/txplib_misc.php: r2788 (7ecfaa5d4fabefbf411d01615dea9485)
/lib/txplib_update.php: r1239 (e3bd2d0c2b491d4028a656b8301a0086)
/lib/txplib_wrapper.php: r2800 (4ad38ee67f3ee8d9e7b51544a4f0f58b)
/publish.php: r2777 (0ce3da212329e7d34de07e53e109d182)
/publish/atom.php: r2774 (50aa384a2edf7cc07effee9020e0893b)
/publish/comment.php: r2776 (0e1ea64316087edcd75f394494b42100)
/publish/log.php: r1637 (f69237dc2ff39bd7a691c8ca1bc87808)
/publish/rss.php: r2793 (022caa22c756c64f2255aae6625686d8)
/publish/search.php: r1748 (ea84e04b2c688b0bb8b5a9ecf395749a)
/publish/taghandlers.php: r2774 (59dc36e6dabc619e23c43f722fe7b8f1)
/update/_to_1.0.0.php: r711 (0f49fca8fbd8e6fca0fc48b0f69f0461)
/update/_to_4.0.2.php: r711 (e77c0e0d972868f19eaee4565bd0b4c4)
/update/_to_4.0.3.php: r711 (f5506cfd0fbc3ad4bd9a9b2299468775)
/update/_to_4.0.4.php: r711 (4d867b42ee87a7f11d2bff3a8e91bed0)
/update/_to_4.0.5.php: r2464 (dbe80cd4a775d3a43a203c3c4a2d0e3f)
/update/_to_4.0.6.php: r2464 (7e5ae73eb64c24438918697089a1f321)
/update/_update.php: r2792 (6ff7b4dedb2c7735a01e76b13b3f1fb1)
~ Cameron
Offline
Re: 404 Not Working!
Also I have a test site at http://www.simplecandy.com/4.0/ which is for a new site im building, and the 404’s work on their? SO the the main simplecandy website has a bug somewhere that’s busting things, and it’s NOT the server as it’s working on the 4.0 demo site. x
THANKS FOR THE HELP GUYS
~ Cameron
Offline
Re: 404 Not Working!
Could you try turning off this plugin: zem_rewrite-0.6?
Offline
Re: 404 Not Working!
maniqui wrote:
Could you try turning off this plugin: zem_rewrite-0.6?
How strange I don’t even remember installing that plugin, but deleting it has fixed the problem :) awesome. xxx
~ Cameron
Offline