Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Frontpage empty / clean url failed
Hi all,
I created my site in a subdomain. The problem i had there was the the frontpage is empty while i selected on of my sections to publish on the front-page. I hoped this would be solved when i swith to the root domain. Unfortunately this is not what happend. I still have a blank front-page and when i look at the diagnostics i get a Clean Url test fail message. When i developed the site in the subdomain the Clean URL message wasn’t shown.
I hope somebody can help me with this problem.
Thanks in advance.
Kind regards,
Maarten.
Kind regards,
Maarten
Offline
#2 2008-02-03 01:42:34
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Frontpage empty / clean url failed
Is this about the site in your profile? Can you post a tag trace?
Offline
Re: Frontpage empty / clean url failed
Hello Els,
Yes it is the site in my profile. Tonight i set the status on debug and take a look for myself, when i can’t figure out what it is, i post it here.
Thanks in advance for helping me.
Kind regards,
Maarten.
Kind regards,
Maarten
Offline
Re: Frontpage empty / clean url failed
I’m having the same problem after upgrading. I’ll keep an eye on this thread.
Offline
Re: Frontpage empty / clean url failed
Hi all,
Here is the tag trace.
<pre>Tag error: <b><txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 /></b> -> <b> Notice: Undefined offset: 1 on line 135</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/lib/txplib_misc.php(534) : eval()'d code:135 ako_nav()
textpattern/publish.php:963 ako_nav()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()</code></pre><pre>Tag error: <b><txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 /></b> -> <b> Notice: Undefined offset: 2 on line 135</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/lib/txplib_misc.php(534) : eval()'d code:135 ako_nav()
textpattern/publish.php:963 ako_nav()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()</code></pre><pre>Tag error: <b><txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 /></b> -> <b> Notice: Undefined offset: 3 on line 135</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/lib/txplib_misc.php(534) : eval()'d code:135 ako_nav()
textpattern/publish.php:963 ako_nav()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()</code></pre><pre>Tag error: <b><txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 /></b> -> <b> Notice: Undefined offset: 4 on line 135</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/lib/txplib_misc.php(534) : eval()'d code:135 ako_nav()
textpattern/publish.php:963 ako_nav()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()</code></pre><pre>Tag error: <b><txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 /></b> -> <b> Notice: Undefined offset: 5 on line 135</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/lib/txplib_misc.php(534) : eval()'d code:135 ako_nav()
textpattern/publish.php:963 ako_nav()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()</code></pre><pre>Tag error: <b><txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 /></b> -> <b> Notice: Undefined offset: 6 on line 135</b></pre>
<pre style="padding-left: 2em;" class="backtrace"><code>textpattern/lib/txplib_misc.php(534) : eval()'d code:135 ako_nav()
textpattern/publish.php:963 ako_nav()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/lib/txplib_misc.php:1383 parse()
textpattern/publish/taghandlers.php:243 parse_form()
textpattern/publish.php:963 output_form()
processtags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish.php:456 parse()</code></pre><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
<head>
<title>Abstract figuratief schilderij - abstract figuratieve kunst - Henk Schouten - Atelier Mirakel</title>
<meta name="keywords" content="abstract figuratief,abstract figurative schilderijen,figuratief schilderij,abstract schilderij,schilderij,schilderijen,abstracte kunst,abstrakte kunst,schilderijen kunst,acryl op linnen,olieverf op linnen,Henk Schouten,Atelier Mirakel" />
<meta name="description" content="Abstract figuratieve schilderijen gemaakt door Henk Schouten van Atelier Mirakel. Schilderijen gemaakt met acrylverf of olieverf op linnen." />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="author" content="Maarten Duits Design" />
<meta name="copyright" content="Maarten Dutis Design" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" type="text/css" media="screen" href="http://www.ateliermirakel.nl/textpattern/css.php?n=ateliermirakel" />
</head>
<body>
<div id="pagewrapper">
<div id="header"><h1>Atelier Mirakel</h1></div>
<div id="nav">
<ul>
<li><a href="http://www.ateliermirakel.nl/home" accesskey="1"><span>Home</span></a></li>
<li><a href="http://www.ateliermirakel.nl/schilderijen" accesskey="2"><span>Schilderijen</span></a></li>
<li><a href="http://www.ateliermirakel.nl/portretten" accesskey="3"><span>Portretten</span></a></li>
<li><a href="http://www.ateliermirakel.nl/muurschildering" accesskey="4"><span>Muurschildering</span></a></li>
<li><a href="http://www.ateliermirakel.nl/agenda" accesskey="5"><span>Agenda</span></a></li>
<li><a href="http://www.ateliermirakel.nl/verslagen" accesskey="6"><span>Verslagen</span></a></li>
<li><a href="http://www.ateliermirakel.nl/contact" accesskey="7"><span>Contact</span></a></li>
</ul>
</div>
<div id="content">
</div> <!--End Content -->
<div id="footer">
<p>Maarten Duits Design 2006-2008<br />
Powered by: <a href="http://www.textpattern.com">Textpattern 4.0.5</a></p>
</div>
</div> <!--End Pagewrapper -->
<!-- Google Analytics -->
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2072147-1";
urchinTracker();
</script>
<!-- Google Analytics -->
</body>
</html>
<!-- Runtime: 0.0678 -->
<!-- Query time: 0.020041 -->
<!-- Queries: 15 -->
<!-- Memory: 2805Kb, <txp:if_section name="muurschildering">
<txp:gmd_imggal category="muurschildering"/>
</txp:if_section> -->
<!-- txp tag trace:
[SQL (0.000172): select name from atmtxp_lang as txp_lang where lang='en-gb' limit 1]
[SQL (0.003278): select name, data from atmtxp_lang as txp_lang where lang='en-gb' AND ( event='public' OR event='common')]
[SQL (0.004812): select name, code, version from atmtxp_plugin as txp_plugin where status = 1]
[SQL (0.001486): select name, val from atmtxp_prefs as txp_prefs where prefs_id=1]
[SQL (0.000295): select * from atmtxp_section as txp_section where name = 'default' limit 1]
[SQL (0.000332): select user_html from atmtxp_page as txp_page where name='ateliermirakel-werk']
[Page: ateliermirakel-werk]
<txp:output_form form="meta" />
[SQL (0.000180): select Form from atmtxp_form as txp_form where name='meta']
[Form: meta]
<txp:if_section name="">
[<txp:if_section name="">: true]
<txp:article_custom section="home" form="meta_dynamic" />
[SQL (0.002453): select *, unix_timestamp(Posted) as uPosted from atmtextpattern as textpattern where 1 and Status = 4 and Posted <= now() and Section = 'home' order by Posted desc limit 0, 10]
[article 2]
[SQL (0.000890): select Form from atmtxp_form as txp_form where name='meta_dynamic']
[Form: meta_dynamic]
<txp:custom_field name="title_desc" />
<txp:site_name/>
<txp:keywords/>
<txp:custom_field name="meta_desc" />
</txp:if_section>
<txp:output_form form="meta_static" />
[SQL (0.000265): select Form from atmtxp_form as txp_form where name='meta_static']
[Form: meta_static]
<txp:css format="link" n="ateliermirakel" />
<txp:if_section name="schilderijen,portretten,muurschildering">
[<txp:if_section name="schilderijen,portretten,muurschildering">: false]
</txp:if_section>
<txp:output_form form="header+nav" />
[SQL (0.000672): select Form from atmtxp_form as txp_form where name='header+nav']
[Form: header+nav]
<txp:ako_nav name="Home,Schilderijen,Portretten,Muurschildering,Agenda,Verslagen,Contact" url="/home,/schilderijen,/portretten,/muurschildering,/agenda,/verslagen,/contact" spanwrap=1 headon=0 classtag=1 />
<txp:article status="sticky" form="single" />
[SQL (0.000317): select name from atmtxp_section as txp_section where on_frontpage != '1']
[SQL (0.001980): select *, unix_timestamp(Posted) as uPosted from atmtextpattern as textpattern where 1 and Status = 5 and Posted <= now() and Section != 'contact' and Section != 'schilderijen' and Section != 'verslagen' and Section != 'portretten' and Section != 'muurschildering' and Section != 'agenda' order by Posted desc limit 0, 10]
<txp:if_section name="schilderijen">
[<txp:if_section name="schilderijen">: false]
</txp:if_section>
<txp:if_section name="portretten">
[<txp:if_section name="portretten">: false]
</txp:if_section>
<txp:if_section name="muurschildering">
[<txp:if_section name="muurschildering">: false]
</txp:if_section>
<txp:output_form form="footer" />
[SQL (0.000876): select Form from atmtxp_form as txp_form where name='footer']
[Form: footer]
[ ~~~ secondpass ~~~ ]
-->
I hope somebody can help me with this issue.
Kind regards,
Maarten.
(Edit: added bc..
for better code display. -Els)
Last edited by els (2008-02-03 18:01:45)
Kind regards,
Maarten
Offline
Re: Frontpage empty / clean url failed
You should turn charset from iso-8859-1
to UTF-8
as Textpattern uses it ;) To avoid unknown characters etc.
And what becomes to the content – there just isn’t any content for frontpage. There is only navigation and header – and that’s it, everything else is for another sections – inside <txp:if_section>
conditionals — Expect that there is <txp:article status="sticky" form="single" />
on frontpage. But it should have id
of the article selected.
I hope somebody can help me with this issue.
I Hope that helps ;)
Offline
#7 2008-02-03 18:11:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Frontpage empty / clean url failed
Maarten, it looks like it’s this tag: <txp:article status="sticky" form="single" />
that is not displaying anything. Are you sure that the sticky article(s) you want to display is/are in a section that is set to appear on the front page?
Gocom wrote:
But it should have id of the article selected.
That is not necessary. The article tag you have should display all sticky articles in sections that are set to be displayed on the front page.
Edit: if it’s just one particular article that you need to show, you can also use <txp:article_custom id="123" />
.
Last edited by els (2008-02-03 18:12:28)
Offline
Re: Frontpage empty / clean url failed
Hello everybody,
I found the problem about the front page. Thanks for all the help. I still have the error message about the clean-url test.
Gocom wrote:
You should turn charset from
iso-8859-1
toUTF-8
as Textpattern uses it ;) To avoid unknown characters etc.
I changed the charset from iso-8859-1
to UTF-8
but i still have the clear-url error message. I hope somebody can help me with this problem.
Thanks again.
Kind regards,
Maarten.
Kind regards,
Maarten
Offline
#9 2008-02-03 19:13:35
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Frontpage empty / clean url failed
maartenD wrote:
i still have the clear-url error message. I hope somebody can help me with this problem.
Clean URLs work, don’t they? I shouldn’t worry too much if I were you ;) But if you want to know more about this message, you’d better post in Troubleshooting I think.
Offline
Re: Frontpage empty / clean url failed
As ruud points out, if clean urls work, there’s no need to look at the clean urls test in diagnostics ;) possibly problem with requesting file with HTTP, which causes the test fail, when actually clean urls work.
Offline
Pages: 1