Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-13 09:06:08

Locutionist
Member
From: The mountains, central PA, USA
Registered: 2005-08-15
Posts: 57
Website

tag_error <txp:permlink> -> Notice: Undefined variable: Section

I’m trying to get the permlinks to link to the archives section, and display each article individually there. But, the permlinks are generating a 404 error.

I thought this was due to the .htaccess file, so I checked my other Textpattern sites and the .htaccess files are all the same as the one I’m using currently.

I followed the directions at the “clean URLs don’t work” page at the FAQ, to no avail. This problem occurs with messy URLs, too, so that doesn’t seem to be the problem anyway. I emailed tech support at my hosting company and they directed me back to the “clean URLs don’t work” page at the FAQ.

I turned on debugging and got this error at the top of my index.php:

—————————————————————-

tag_error <txp:permlink> -> Notice: Undefined variable: Section on line 2445

textpattern/publish/taghandlers.php:2445 permlinkurl()
textpattern/publish/taghandlers.php:2398 permlinkurl()
textpattern/publish.php:958 permlink()
processtags()
textpattern/publish.php:917 preg_replace_callback()
textpattern/publish.php:704 parse()
textpattern/publish.php:804 doarticles()
textpattern/publish.php:504 parsearticles()
textpattern/publish.php:958 article()
processtags()

tag_error <txp:ako_social images=“1” imgsrcdir=“images/social” imgclass=“social” /> -> Notice: Undefined variable: Section on line 2445

textpattern/publish/taghandlers.php:2445 permlinkurl()
textpattern/lib/txplib_misc.php(512) : eval()’d code:99 permlinkurl()
textpattern/publish.php:958 ako_social()
processtags()
textpattern/publish.php:917 preg_replace_callback()
textpattern/publish.php:704 parse()
textpattern/publish.php:804 doarticles()
textpattern/publish.php:504 parsearticles()
textpattern/publish.php:958 article()
processtags()

—————————————————————-

What is this error? I’ve never gotten this before and I don’t know what it means — I use the tagbuilder for putting these tags together (it’s faster than typing) and it does not offer “section” as a variable.

Is this error causing my permlinks to not go to the archives section?

Here’s the tag trace from my index.php:

—————————————————————-
<!— Runtime: 0.0327 —>
<!— Query time: 0.009881 —>
<!— Queries: 19 —>
<!— Memory: 2122Kb, <txp:site_url /> —>
<!— txp tag trace:
[SQL (0.000089): select name from txp_lang where lang=‘en-us’ limit 1]
[SQL (0.000454): select name, data from txp_lang where lang=‘en-us’ AND ( event=‘public’ OR event=‘common’)]
[SQL (0.000209): select name, code, version from txp_plugin where status = 1]
[SQL (0.000105): select * from txp_section where name = ‘default’ limit 1]
[SQL (0.006533): select host from txp_log where ip=‘71.58.59.218’ limit 1]
[SQL (0.000745): insert into txp_log set `time`=now(),page=’/’,ip=‘71.58.59.218’,host=‘c-71-58-59-218.hsd1.pa.comcast.net’,refer=’‘,status=‘200’,method=‘GET’]
[SQL (0.000073): select user_html from txp_page where name=‘default’]
[Page: default]
<txp:css format=“link” n=“default” />
<txp:output_form form=”-rabbit-header” /> [SQL (0.000071): select Form from txp_form where name=’-rabbit-header’] [Form: -rabbit-header]
<txp:output_form form=”-rabbit-date-strip” /> [SQL (0.000061): select Form from txp_form where name=’-rabbit-date-strip’] [Form: -rabbit-date-strip] <txp:search_input form=”-rabbit-search-input” wraptag=”“ button=“Search” size=“10” label=”“ /> [SQL (0.000078): select form from txp_form where `name` = ‘-rabbit-search-input’ limit 1]
<txp:tru_tags_cloud/> [SQL (0.000075): select name from txp_section where searchable != ‘1’] [SQL (0.000270): select Keywords from textpattern where Keywords <> ‘‘and Section != ‘tag’ and Section != ‘print’ and Status >= ‘4’ and Posted < now()]
<txp:if_section name=“tag”> [<txp:if_section name=“tag”>: false] <txp:article allowoverride=“0” pgonly=“0” searchall=“1” searchsticky=“0” /> [SQL (0.000089): select name from txp_section where on_frontpage != ‘1’] [SQL (0.000213): select count(*) from textpattern where 1 and Status = 4 and Posted <= now()and Section != ‘tag’ and Section != ‘print’] [SQL (0.000366): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now()and Section != ‘tag’ and Section != ‘print’ order by Posted desc limit 0, 10] [SQL (0.000077): select Form from txp_form where name=‘default’] [Form: default] [article 1] <txp:title/> <txp:posted/> <txp:permlink> </txp:permlink> <txp:mrh_email_article_link subject=“An article from Rabbit Mountain” textlink=“email” mymessage=“An article at the Rabbit Mountain website that you might enjoy: “ prepend=“yes” /> <txp:body/> <txp:ako_social images=“1” imgsrcdir=“images/social” imgclass=“social” /> <txp:tru_tags_from_article wraptag=“span” class=“technorati-tags” break=” “ /> [SQL (0.000084): select Keywords from textpattern where ID=‘1’ AND Keywords <> ‘’] <txp:site_url/>
</txp:if_section>
<txp:output_form form=”-rabbit-footer” /> [SQL (0.000062): select Form from txp_form where name=’-rabbit-footer’] [Form: -rabbit-footer]
[ ~~~ secondpass ~~~ ] —>
—————————————————————————

Any help is much appreciated, thanks.

EDIT: The site I’m working on is at http://working.rabbit-mountain.com

Last edited by Locutionist (2007-02-13 09:07:37)

Offline

#2 2007-02-13 09:45:20

Locutionist
Member
From: The mountains, central PA, USA
Registered: 2005-08-15
Posts: 57
Website

Re: tag_error <txp:permlink> -> Notice: Undefined variable: Section

Okay well after struggling with this problem for a few hours at least, it has magically disappeared. I believe I got rid of it by deleting the offending permlink tag, saving the page, and retyping it in. Whatever that did I don’t know, but it seems to be fixed.

Offline

Board footer

Powered by FluxBB