Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#253 2007-04-10 04:52:25

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: tru_tags: A tagging plugin for textpattern

HI truist, you’ve just had a look at it while I was trying messy URLs. It works in messy URLs; eventually, I want to use gbp_permanent_links with the site but I have disabled it at the moment. So I did with all plugins that could potentially affect URLs. Still no luckl.

This is my .htaccess file

#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} -f [OR]
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.+) - [PT,L]

RewriteRule ^(.*) index.php
</IfModule>

#php_value register_globals 0

Last edited by andreas (2007-04-10 04:54:28)

Offline

#254 2007-04-11 03:47:36

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

That’s the standard .htaccess file, so that’s probably not the problem. The url I linked to should work even with clean urls turned on (and it is working now). The fact that it’s working but the normal URL isn’t working implies that something is not working correctly with the tru_tags URL rewriting logic. It seems likely that the problem is another plugin – can you try disabling all other plugins (temporarily) and see if that fixes it?

It just occurred to me – are you using tru_tags v2.1 and TXP v4.0.4?

If neither of those is the problem, I’m out of obvious guesses. It’s possible that there’s a bug in tru_tags that needs to be sorted out. It would be easiest to figure out if I had access to your site – are you willing to do that? If so, please send credentials to truist-temp-20070410@truist.com and I’ll poke around and see if I can figure it out.

Offline

#255 2007-04-11 05:21:36

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: tru_tags: A tagging plugin for textpattern

truist,

I’ve disabled all plugins and the problem remains as long as I don’t use messy URLs. I’ve created an account for you and had the login sent to your email address. I’d appreciate any help. What I’m especially interested in is the combination of tru_tags with graeme’s clean URL plugin gbp_permanent_links which I would like to use; if there was a way of combining the two, that would be excelllent. Thanks in advance!

Offline

#256 2007-04-13 02:43:40

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

andreas – check your site, it should be working now. (And my apologies – I think I left the admin switched to English once earlier and forgot to switch it back. Sorry about that!) The problem turned out to be a bug in the plugin with the way it was rewriting the clean URLs. I’ve modified the plugin on your site to make it work, and will be releasing the general-case fix in the next version of tru_tags (hopefully this weekend).

I haven’t tried gbp_permanent_links – how do you want it to work with tru_tags?

Offline

#257 2007-04-13 06:05:47

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: tru_tags: A tagging plugin for textpattern

truist, thank you very very much – that was a “secret service”, as it were :-).

It works with gpb_permanent_links even though I get this error message when I call a tag-based URL

Notice: Uninitialized string offset: 0 in /home/kgn/incoming/www/v2/textpattern/lib/txplib_misc.php on line 546

It’s not there in “live” mode, though.

Offline

#258 2007-04-13 11:06:41

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

I’m glad it’s working :)

Does TXP give you the name of the tag method that causes the error?

Offline

#259 2007-04-13 11:52:37

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: tru_tags: A tagging plugin for textpattern

No, what I’ve pasted is all I’m getting.

Offline

#260 2007-04-13 23:40:36

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

Sometimes if your site is set to ‘debug’ mode you’ll get more useful information by looking at the bottom of the HTML source. Does that give any clues?

Last edited by truist (2007-04-13 23:40:57)

Offline

#261 2007-04-14 07:22:51

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: tru_tags: A tagging plugin for textpattern

truist, there’s a whole lot of stuff down there. I’ve looked through it looking for hints at your plugin but couldn’t find any – here’s the whole output:

<!-- Runtime:    0,1326 -->
<!-- Query time: 0,001281 -->
<!-- Queries: 49 -->
<!-- Memory: 4983Kb, <txp:tru_tags_from_article /> -->
<!-- txp tag trace: 
[SQL (0,000470): select name from txp_lang where lang='de-de' limit 1]
[SQL (0,004169): select name, data from txp_lang where lang='de-de' AND ( event='public' OR event='common')]
[SQL (0,003839): select name, code, version from txp_plugin where status = 1]
[SQL (0,000759): select name, html as type from txp_prefs where event = 'permlinks' AND html <> 'gbp_partial']
[SQL (0,000334): select name from txp_section where `name` like 'konzept' limit 1]
[SQL (0,000269): select * from txp_section where name = 'konzept' limit 1]
[SQL (0,000323): select host from txp_log where ip='87.176.192.52' limit 1]
[SQL (0,000315): insert into txp_log set `time`=now(),page='/v2/konzept/',ip='87.176.192.52',host='p57B0C034.dip0.t-ipconnect.de',refer='',status='200',method='GET']
[SQL (0,001323): select REPLACE(name, 'gbp_permanent_links_', '') AS id from txp_prefs where `event` = 'permlinks' AND `name` REGEXP '^gbp_permanent_links_.{13}$']
[SQL (0,000460): select name from txp_section where (`name` like 'konzept' or `name` like '') limit 1]
[SQL (0,000198): select page from txp_section where name = 'konzept' limit 1]
[SQL (0,000236): select user_html from txp_page where name='section']
[Seite: section]
<txp:page_title separator=" » " />
	[SQL (0,000202): select title from txp_section where name='konzept']
<txp:output_form form="headEveryPage" />
	[SQL (0,000218): select Form from txp_form where name='headEveryPage']
	[Baustein: headEveryPage]
<txp:output_form form="headCss" />
	[SQL (0,000197): select Form from txp_form where name='headCss']
	[Baustein: headCss]
<txp:output_form form="headMeta" />
	[SQL (0,000193): select Form from txp_form where name='headMeta']
	[Baustein: headMeta]
<txp:output_form form="headFeeds" />
	[SQL (0,000177): select Form from txp_form where name='headFeeds']
	[Baustein: headFeeds]
<txp:section/>
<txp:section/>
<txp:section/>
<txp:output_form form="header" />
	[SQL (0,000178): select Form from txp_form where name='header']
	[Baustein: header]
	<txp:link_to_home/>
	<txp:sitename/>
<txp:output_form form="nav" />
	[SQL (0,000180): select Form from txp_form where name='nav']
	[Baustein: nav]
<txp:output_form form="subnav" />
	[SQL (0,000202): select Form from txp_form where name='subnav']
	[Baustein: subnav]
	<txp:if_section name="default">
		[<txp:if_section name="default">: false]
		<txp:section title="1" wraptag="h1" class="sectionName" />
	</txp:if_section>
	<txp:section_list active_class="currentSec" break="li" class="subnav" include_default="0" wraptag="ul" sections="schulalltag,zem_event_list,personen,verwaltung,faecher,konzept,gremien,fotos,intern" />
		[SQL (0,000756): select name, title from txp_section where name in ('schulalltag','zem_event_list','personen','verwaltung','faecher','konzept','gremien','fotos','intern') order by field(name, 'schulalltag','zem_event_list','personen','verwaltung','faecher','konzept','gremien','fotos','intern')]
	<txp:article_custom allowoverride="0" form="basicH3" id="5" pgonly="0" />
		[SQL (0,000586): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status >= 4 and Posted <= now() and ID = '5' order by Posted desc limit 0, 10]
		[SQL (0,000231): select Form from txp_form where name='basicH3']
		[Baustein: basicH3]
		[Artikel 5]
		<txp:title/>
		<txp:body/>
	<txp:output_form form="searchForm" />
		[SQL (0,000205): select Form from txp_form where name='searchForm']
		[Baustein: searchForm]
<txp:output_form form="breadcrumbs" />
	[SQL (0,000187): select Form from txp_form where name='breadcrumbs']
	[Baustein: breadcrumbs]
	<txp:breadcrumb class="breadcrumbs" label="Startseite" link="y" sep=" » " wraptag="p" title="1" />
		[SQL (0,000336): select lft as l, rgt as r from txp_category where name='' and type = 'article']
<txp:output_form form="sidebar" />
	[SQL (0,000225): select Form from txp_form where name='sidebar']
	[Baustein: sidebar]
	<txp:if_section name="zem_event_list">
		[<txp:if_section name="zem_event_list">: false]
	</txp:if_section>
	<txp:article_custom allowoverride="0" pgonly="0" sort="LastMod desc" status="4" form="titleList" limit="5" category="aktuelles" />
		[SQL (0,001051): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now() and ((Category1='aktuelles') or (Category2='aktuelles'))  order by LastMod desc limit 0, 5]
		[SQL (0,000235): select Form from txp_form where name='titleList']
		[Baustein: titleList]
		[Artikel 3]
		<txp:permlink>
			<txp:title/>
		</txp:permlink>
		[Artikel 12]
		<txp:permlink>
			<txp:title/>
		</txp:permlink>
		[Artikel 13]
		<txp:permlink>
			<txp:title/>
		</txp:permlink>
<txp:if_section name="stichwort">
	[<txp:if_section name="stichwort">: false]
	<txp:article form="default" />
		[SQL (0,000450): select count(*) from textpattern where 1 and Status = 4 and Posted <= now() and Section = 'konzept']
		[SQL (0,000911): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now() and Section = 'konzept' order by Posted desc limit 0, 10]
		[SQL (0,000266): select Form from txp_form where name='default']
		[Baustein: default]
		[Artikel 13]
		<txp:article_id/>
		<txp:if_article_list>
			[<txp:if_article_list>: true]
			<txp:permlink>
				<txp:title/>
			</txp:permlink>
			<txp:rss_auto_excerpt words="25" excerptwraptag="p" linktext="Weiter lesen &raquo;" ending=" [...]" linkwraptag="p" linkclass="readOn" />
		</txp:if_article_list>
		<txp:ob1_modified format="d.m.Y" />
			[SQL (0,000266): select LastMod from textpattern where `ID` = '13' limit 1]
		<txp:tru_tags_if_has_tags>
			[SQL (0,000239): select Keywords from textpattern where ID='13' AND Keywords <> '']
			[<txp:tru_tags_if_has_tags>: true]
			<txp:tru_tags_from_article/>
				[SQL (0,000222): select Keywords from textpattern where ID='13' AND Keywords <> '']
		</txp:tru_tags_if_has_tags>
		[Artikel 11]
		<txp:article_id/>
		<txp:if_article_list>
			[<txp:if_article_list>: true]
			<txp:permlink>
				<txp:title/>
			</txp:permlink>
			<txp:rss_auto_excerpt words="25" excerptwraptag="p" linktext="Weiter lesen &raquo;" ending=" [...]" linkwraptag="p" linkclass="readOn" />
		</txp:if_article_list>
		<txp:ob1_modified format="d.m.Y" />
			[SQL (0,000304): select LastMod from textpattern where `ID` = '11' limit 1]
		<txp:tru_tags_if_has_tags>
			[SQL (0,000250): select Keywords from textpattern where ID='11' AND Keywords <> '']
			[<txp:tru_tags_if_has_tags>: true]
			<txp:tru_tags_from_article/>
				[SQL (0,000228): select Keywords from textpattern where ID='11' AND Keywords <> '']
		</txp:tru_tags_if_has_tags>
		[Artikel 10]
		<txp:article_id/>
		<txp:if_article_list>
			[<txp:if_article_list>: true]
			<txp:permlink>
				<txp:title/>
			</txp:permlink>
			<txp:rss_auto_excerpt words="25" excerptwraptag="p" linktext="Weiter lesen &raquo;" ending=" [...]" linkwraptag="p" linkclass="readOn" />
		</txp:if_article_list>
		<txp:ob1_modified format="d.m.Y" />
			[SQL (0,000251): select LastMod from textpattern where `ID` = '10' limit 1]
		<txp:tru_tags_if_has_tags>
			[SQL (0,000210): select Keywords from textpattern where ID='10' AND Keywords <> '']
			[<txp:tru_tags_if_has_tags>: false]
		</txp:tru_tags_if_has_tags>
		[Artikel 9]
		<txp:article_id/>
		<txp:if_article_list>
			[<txp:if_article_list>: true]
			<txp:permlink>
				<txp:title/>
			</txp:permlink>
			<txp:rss_auto_excerpt words="25" excerptwraptag="p" linktext="Weiter lesen &raquo;" ending=" [...]" linkwraptag="p" linkclass="readOn" />
		</txp:if_article_list>
		<txp:ob1_modified format="d.m.Y" />
			[SQL (0,000259): select LastMod from textpattern where `ID` = '9' limit 1]
		<txp:tru_tags_if_has_tags>
			[SQL (0,000219): select Keywords from textpattern where ID='9' AND Keywords <> '']
			[<txp:tru_tags_if_has_tags>: false]
		</txp:tru_tags_if_has_tags>
</txp:if_section>
<txp:output_form form="footer" />
	[SQL (0,000238): select Form from txp_form where name='footer']
	[Baustein: footer]
	<txp:article_custom allowoverride="0" form="bodyOnly" id="6" pgonly="0" />
		[SQL (0,000541): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status >= 4 and Posted <= now() and ID = '6' order by Posted desc limit 0, 10]
		[SQL (0,000204): select Form from txp_form where name='bodyOnly']
		[Baustein: bodyOnly]
		[Artikel 6]
		<txp:body/>
	<txp:article_custom allowoverride="0" form="bodyOnly" id="7" pgonly="0" />
		[SQL (0,000523): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status >= 4 and Posted <= now() and ID = '7' order by Posted desc limit 0, 10]
		[Baustein: bodyOnly]
		[Artikel 7]
		<txp:body/>
	<txp:output_form form="searchFormFooter" />
		[SQL (0,000238): select Form from txp_form where name='searchFormFooter']
		[Baustein: searchFormFooter]
<txp:output_form form="footEveryPage" />
	[SQL (0,000190): select Form from txp_form where name='footEveryPage']
	[Baustein: footEveryPage]
[ ~~~ secondpass ~~~ ]
 -->

Last edited by andreas (2007-04-14 07:24:58)

Offline

#262 2007-04-14 09:18:46

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: tru_tags: A tagging plugin for textpattern

andreas wrote:

Notice: Uninitialized string offset: 0 in /home/kgn/incoming/www/v2/textpattern/lib/txplib_misc.php on line 546

If you’re using TXP 4.0.4, that line is part of the callback_event function, so it has to be a tag or plugin that triggers a callback_event. Perhaps that helps to narrow it down:

   function callback_event($event, $step='', $pre=0)
        {
                global $plugin_callback;

                if (!is_array($plugin_callback))
                        return;
                $return_value = '';
                foreach ($plugin_callback as $c) {
== this line ==>        if ($c['event'] == $event and (empty($c['step']) or $c['step'] == $step) and $c['pre'] == $pre) {
                                if (is_callable($c['function'])) {
                                        $return_value .= call_user_func($c['function'], $event, $step);
                                }
                        }
                }
                return $return_value;
        }

Last edited by ruud (2007-04-14 09:20:06)

Offline

#263 2007-04-14 18:21:35

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

andreas, I’m not sure. I’ve got the debug info in an email now, so you can probably clear it out of your post (just to save scrolling). What happens if you disable tru_tags – does the warning go away?

Offline

#264 2007-04-17 03:57:12

truist
Plugin Author
From: Ohio, USA
Registered: 2004-11-09
Posts: 257
Website

Re: tru_tags: A tagging plugin for textpattern

All – I’ve just posted tru_tags v2.2 on my site. It includes the recently requested features (set a special class for tags being searched, and enhance the javascript on the admin side) and the bug fix for the problem with clean URLs for sites not at the domain root. As usual, please give it a try and let me know what you think. (I think you’ll like the admin-side stuff. It’s minor, but nice.)

Last edited by truist (2008-07-03 11:48:32)

Offline

Board footer

Powered by FluxBB