Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-05-13 15:04:50

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Home Page Content Not Showing

Can anyone help direct me on where I might have made the error in my home page (content) not showing up? Thank you very much.
http://www.charlottes-saddlery.com/textpattern/

Offline

#2 2009-05-13 15:10:26

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Home Page Content Not Showing

Can you post a tag trace of your home page?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-05-13 15:25:32

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Re: Home Page Content Not Showing

Thank you Colak. Thank you so much. See if this is what you were looking for:

<code>
<!— txp tag trace:
[SQL (0.00061893463134766): select name, data from txp_lang where lang=‘en-us’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.00065517425537109): select name, code, version from txp_plugin where status = 1 AND type IN (0,1) order by load_order]
[SQL (0.00014209747314453): select version from txp_plugin where status = 1 AND name=‘sed_section_fields’]
[SQL (0.00027799606323242): select name, val from txp_prefs where prefs_id=1]
[SQL (5.3882598876953E-05): select title from txp_section where name=’‘]
[SQL (4.887580871582E-05): select page, css from txp_section where name = ‘default’ limit 1]
[SQL (0.0023479461669922): select host from txp_log where ip=‘75.148.163.137’ limit 1]
[SQL (0.00205397605896): insert into txp_log set `time`=now(),page=’/textpattern/’,ip=‘75.148.163.137’,host=‘75.148.163.137’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (5.9127807617188E-05): select user_html from txp_page where name=‘default’]
[Page: default]
<txp:output_form form=“header” /> [SQL (5.6028366088867E-05): select Form from txp_form where name=‘header’] [Form: header] <txp:page_title separator=” &raquo; “/> <txp:site_slogan /> <txp:site_slogan /> <txp:css format=“link” /> <txp:feed_link flavor=“atom” format=“link” label=“Atom” /> <txp:feed_link flavor=“rss” format=“link” label=“RSS” /> <txp:site_url /> <txp:section_list active_class=“current_page_item” break=“li” default_title=“Home” include_default=“1” exclude=“article”/> [SQL (6.103515625E-05): select name, title from txp_section where name != ‘default’ and name not in(‘article’) order by name ASC] <txp:site_url /> <txp:site_url /> <txp:sitename /> Tag error: <txp:sitename /> -> Notice: Undefined variable: pretext on line 1096 Tag error: <txp:sitename /> -> Textpattern Notice: tag is deprecated on line 1098 <txp:sitename /> Tag error: <txp:sitename /> -> Notice: Undefined variable: pretext on line 1096 Tag error: <txp:sitename /> -> Textpattern Notice: tag is deprecated on line 1098 <txp:feed_link flavor=“rss” label=” RSS”/> <txp:feed_link flavor=“atom” label=” Atom”/>
<txp:etz_crumbs /> Tag error: <txp:etz_crumbs /> -> Notice: Undefined variable: output on line 103 Tag error: <txp:etz_crumbs /> -> Notice: Undefined variable: output on line 104
[ ~~~ secondpass ~~~ ] —>
</code>

Offline

#4 2009-05-13 15:45:19

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Home Page Content Not Showing

Gulfcoast

Try changing your header form so it uses the site_name tag instead of the old sitename tag and comment out your calls to etz_crumbs for now too. Then folks can start looking at why the content isn’t there. I can see things on the about page … are you sure you have things set to appear on the home page in the presentation > sections tab?


Steve

Offline

#5 2009-05-13 16:28:26

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Re: Home Page Content Not Showing

Steve – I did notice a stray “>” in this line and removed it <h1><a href=”<txp:site_url />” title=”<txp:sitename />”<txp:sitename />Timothy Stark Raisbeck</a></h1> I also tried changing the sitename to site_name but it didn’t seem to make any difference.

I did not even notice my site name was gone until you pointed it out. I have the “about” section set to use the “about” page along with the default style. Forgive me but I didn’t seem to know what you meant by commenting out breadcrumbs.

Offline

#6 2009-05-13 16:39:29

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Home Page Content Not Showing

Gulfcoast

Looks ok to me now, looks like you switched the site back into live mode or something. Did you have it set to debugging earlier? If you did, you neet to go back and fix those warnings it was throwing out like using site_name instead of sitename (and the warnings about etz_breadcrumb tags missing) in your pages and forms or you won’t see the wood from the trees when it comes to tracking down real errors.

What are you expecting to appear on your homepage? If you haven’t setup any section’s content to appear there then it should be no surprise you aren’t getting anything there.


Steve

Offline

#7 2009-05-13 17:01:09

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Re: Home Page Content Not Showing

I changed the sitename to site_name but my “site name” is not showing up. It got rid of the error but why isn’t it showing up on the pages? I pulled the etz_breadcrumb tag to get rid of that error.

Any reason you can think of for that plugin to all of a sudden stop working?

The default section uses the default page. Did I actually delete a form or something so that nothing is being pulled into the page? The code is:

<txp:output_form form=“header” />

<txp:if_section name=“about”>
<txp:article form=“static” allowoverride=“0”/>
<txp:else />

<txp:if_author><h2 class=“pagetitle”>Author Archive</h2></txp:if_author>

<txp:if_category name=“business,grace,onetothree,fourtosix,offtopic”>
<txp:article />
<txp:else />
<txp:article_custom status=“sticky” id=“3” />
<txp:article />
</txp:if_category>

<p align=“center”>
<txp:newer>&#171; Newer Posts</txp:newer> – <txp:older>Older Posts &#187;</txp:older>
</p>

<txp:output_form form=“sidebar” />
<txp:output_form form=“footer” />

<script type=“text/javascript” src=“http://twitter.com/javascripts/blogger.js”></script>
<script type=“text/javascript” src=“http://twitter.com/statuses/user_timeline/equiditor.json?callback=twitterCallback2&count=2”></script>

Offline

#8 2009-05-13 17:15:39

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Home Page Content Not Showing

Try changing <txp:article_custom status=“sticky’ id=“3” /> to <txp:article_custom status="sticky' id="3" form="body" />

Where the article form="body" just has <txp:body />

Regarding the plugin. You might be able to replace it with the native <txp:breadcrumb />.

Off topic: Steve good to see you here:)

>Edit: Another way might be to enclose it in

<txp:if_section name="default"><txp:article_custom status="sticky' id="3"  /></txp:if_section>

or

<txp:if_section name="default"><p>write here</p></txp:if_section>

or use an output form…the options go on…

>Edit2: your <txp:if_section name="about"> does not seem to be closed. It needs </txp:if_section> at the end of your options

Last edited by colak (2009-05-13 17:23:48)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2009-05-13 17:29:59

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Re: Home Page Content Not Showing

Yiannis,

I changed it to: <txp:article_custom status=“sticky” id=“3” form=“body” /> created a new form “body” and assigned it the type to “article”. This was place in the form: <txp:body />
It didn’t change anything. Is the lack of site name and the zero content on the home page inter-related?

Offline

#10 2009-05-13 17:43:40

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Home Page Content Not Showing

This part is wrong (though I don’t know if it causes the problem):

<h1><a href="http://www.charlottes-saddlery.com/textpattern/" title="Timothy Stark Raisbeck"Timothy Stark RaisbeckTimothy Stark Raisbeck</a></h1>

Check the txp tag(s) you are using there.

Offline

#11 2009-05-13 17:52:35

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Home Page Content Not Showing

colak wrote:

>Edit2: your <txp:if_section name="about"> does not seem to be closed. It needs </txp:if_section> at the end of your options

Did you close the if_section tag? It should go after the closing </txp:if_category> tag. A missing closing tag usually stops all output.

Offline

#12 2009-05-13 17:54:04

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Re: Home Page Content Not Showing

Hi Els,

Where was that tag found?
BTW, this was the least of my concerns but one thing at a time as I got the breadcrumb plugin up and working again.
Do we still have two issues here…..the lack of any site name showing up and the lack of any content on the home page and the “grace” category page?

Re: site name. I noticed this tag in the header form: <h1><a href=”<txp:site_url />“title=”<txp:site_name />”<txp:site_name />Timothy Stark Raisbeck</a></h1>

Is that a correct tag or the site name issue arise from it?

Offline

Board footer

Powered by FluxBB