Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
URL of root (homepage) needs /index.php ... !?
If you go to > www.misterdutch.nl/new/ (under construction) the browser spits out an unstyled default page with this warning: “Deze tag bestaat niet in /home/vhosting/b/vhost0003659/domains/misterdutch.nl/htdocs/www/textpattern/publish.php on line 968” … in English: “This tag doesn’t excist … etc.”
With index.php at the end the homepage pops up as intended.
It looks like there’s something going on with the .htaccess file (Txp 4.5.5) and the fact that I can’t make clean URL’s … so all permenant links are set to ‘messy’.
Clicking on “Taaltoetsen” on the homepage are giving the same troubles.
What’s going on here?
Textpattern version: 4.5.5 (r5575)
Last update: 2013-12-09 07:38:59/2013-12-09 07:13:33
Document root: /etc/apache2/htdocs ()
$path_to_site: /home/vhosting/b/vhost0003659/domains/misterdutch.nl/htdocs/www/new
Textpattern path: /home/vhosting/b/vhost0003659/domains/misterdutch.nl/htdocs/www/new/textpattern
Permanent link mode: messy
upload_tmp_dir: /var/lib/php5
Temporary directory path: /home/vhosting/b/vhost0003659/domains/misterdutch.nl/htdocs/www/new/textpattern/tmp
Site URL: www.misterdutch.nl/new
PHP version: 5.3.10-1ubuntu3.8
GD Graphics Library: 2.0; supported formats: GIF, JPG, PNG.
Server TZ: Europe/Amsterdam
Server local time: 2013-12-11 11:33:44
DST enabled?: 0
Automatically adjust DST setting?: 1
Time zone: Europe/Amsterdam (3600)
MySQL: 5.1.72-0ubuntu0.10.04.1
Locale: en_US.UTF-8
Server: Apache
Apache version: Apache
PHP server API: apache2handler
RFC 2616 headers:
Server OS: Linux 3.8.0-34-generic
Admin-side theme: classic 4.5.5Pre-flight check:
————————————
The following PHP functions (which may be necessary to run Textpattern) are disabled on your server: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority,
————————————.htaccess file contents:
————————————
#DirectoryIndex index.php index.html#Options +FollowSymLinks
#Options -Indexes
#ErrorDocument 403 default<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
- SVG
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
————————————
Last edited by RedFox (2013-12-11 10:59:28)
Offline
Re: URL of root (homepage) needs /index.php ... !?
Edit this
#DirectoryIndex index.php index.html
to this:
DirectoryIndex index.php index.html
Does that help?
Offline
Re: URL of root (homepage) needs /index.php ... !?
Also, http://www.misterdutch.nl/new/ is using the Textpattern located at http://www.misterdutch.nl/textpattern/@, not http://www.misterdutch.nl/new/textpattern – so the file http://www.misterdutch.nl/index.php is spitting out that error, not http://www.misterdutch.nl/new/index.php
If you’re developing, could you switch it to a subdomain like new.misterdutch.nl instead?
Offline
Re: URL of root (homepage) needs /index.php ... !?
Hi Pete, thanks for joining in … :)
I did what you suggested (.htaccess) but that doesn’t work.
I never use subdomains for development purposes. And had never problems with this method (/folder) … also on this server it always went well (accept for the messy url’s thing) … but with this one … @#$%&!
Last edited by RedFox (2013-12-11 10:57:30)
Offline
#5 2013-12-11 13:43:00
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
I think it’s a problem with the paths.
Change in the .htaccess #RewriteBase /relative/web/path/ to RewriteBase / or to other real path.
And in the header change all urls how, for example, href="main_medium.css" to href="/main_medium.css".
Offline
Re: URL of root (homepage) needs /index.php ... !?
It’s a total mess now … :((
I’ve updated Txp (root) … from 4.0.4 to 4.5.5 … the homepage (very old, sorry) renders perfect … no errors, except the links (menu) doesn’t work > misterdutch.nl … giving a “Internal Server Error” … !?
What can I do to figure out what is going wrong? Help is needed urgently!
Txp diagnose says: “The following PHP scripts are disabled: pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority,”
The host is saying it’s a script error … !?
[edit]
I’ve changed permanent link modus into ‘messy’ and made all nav links ‘messy’ to:
<div id="nav">
<ul id="minitabs">
<li><a href="index.php" class="active">Home</a></li>
<li><a href="index.php?s=visie">Visie</a></li>
<li><a href="index.php?s=taaltrainingen">Taaltrainingen</a></li>
<li><a href="index.php?s=taaltoetsen">Taaltoetsen</a></li>
<li><a href="index.php?s=inburgeringsexamens">Inburgeringsexamens</a></li>
<li><a href="index.php?s=opdrachtgevers">Opdrachtgevers</a></li>
<li><a href="index.php?s=info">Info</a></li>
<li><a href="index.php?s=nieuws">Nieuws</a></li></ul>
</div>
… the nav is working … for now.
BTW
Strange thing is that in Txp (4.5.5) all modules from 4.0.4 are gone … !? Making new ones isn’t possible … !?
Last edited by RedFox (2013-12-12 13:35:04)
Offline
#7 2013-12-12 13:34:50
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
How you create this?
<div id="nav">
<ul id="minitabs">
<li><a href="index.php" class="active">Home</a></li>
<li><a href="index.php?s=visie">Visie</a></li>
<li><a href="taaltrainingen">Taaltrainingen</a></li>
<li><a href="taaltoetsen">Taaltoetsen</a></li>
<li><a href="inburgeringsexamens">Inburgeringsexamens</a></li>
<li><a href="opdrachtgevers">Opdrachtgevers</a></li>
<li><a href="info">Info</a></li>
<li><a href="nieuws">Nieuws</a></li></ul>
</div>
And what is, for example, the real URL of “Taaltrainingen”?
BTW: You have changed your text, while I answered!
Last edited by GugUser (2013-12-12 13:37:13)
Offline
Re: URL of root (homepage) needs /index.php ... !?
GugUser wrote:
And what is, for example, the real URL of “Taaltrainingen”?
www.misterdutch.nl/taaltrainingen
… it’s a Txp section.
Last edited by RedFox (2013-12-12 13:38:13)
Offline
#9 2013-12-12 13:39:50
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
And “Taaltoetsen”? The link doesn’t work.
Offline
#10 2013-12-12 13:43:24
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
The solution is in the code that creates <div id="nav"><ul id="minitabs"> etc..
Offline
Re: URL of root (homepage) needs /index.php ... !?
GugUser wrote:
The solution is in the code that creates
<div id="nav"><ul id="minitabs"> etc..
See my earlier post
Offline
#12 2013-12-12 13:57:03
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
But, wich code create this? Or you made this manually?
Offline
Re: URL of root (homepage) needs /index.php ... !?
Sorry, yes, I made it manually … many years ago when I was innocent and didn’t knew anything … :/
Offline
#14 2013-12-12 14:15:17
- GugUser
- Member

- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,477
Re: URL of root (homepage) needs /index.php ... !?
Then change the “Permanent link mode” to “/section/title” and the code to:
<div id="nav">
<ul id="minitabs">
<li><a href="/">Home</a></li>
<li><a href="/visie">Visie</a></li>
<li><a href="/taaltrainingen" class="active">Taaltrainingen</a></li>
<li><a href="/taaltoetsen">Taaltoetsen</a></li>
<li><a href="/inburgeringsexamens">Inburgeringsexamens</a></li>
<li><a href="/opdrachtgevers">Opdrachtgevers</a></li>
<li><a href="/info">Info</a></li>
<li><a href="/nieuws">Nieuws</a></li></ul>
</div>
Note 1: This example is for “taaltrainingen” active.
Note 2: You could make your life easier with txp:section_list.
Last edited by GugUser (2013-12-12 14:15:33)
Offline
Re: URL of root (homepage) needs /index.php ... !?
Thanks GugUser … but that still doesn’t work. It has definitly something to do with the .htaccess file and clean url’s. I’ll will look into it later on. Happily the root is working and that’s fine for now … :)
Offline