Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-23 16:21:19

zeeforel
Member
From: Nieuwerkerk a/d IJssel, NL
Registered: 2004-10-16
Posts: 92
Website

Trying to put test plugin in TxP cache but get "unknown tag"

Hi,

I am busy with my first plugin following the instructions in Textpattern Solutions, but when trying to put the test plugin in TxP cache I seem to fail because I get “unknown tag” upon running the test page.

What could go wrong?

Is there a way to test if TxP sees the plugin in cache?

I did set the TxP plugin directory to localhost/textpattern/textpattern/plugins.

Many thanks in advance.

Offline

#2 2009-01-23 17:10:32

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Trying to put test plugin in TxP cache but get "unknown tag"

Just guessing, but you might want to try puttting the cache somewhere outside the site root, certainly outside the textpattern directory.


Code is topiary

Offline

#3 2009-01-23 20:01:14

zeeforel
Member
From: Nieuwerkerk a/d IJssel, NL
Registered: 2004-10-16
Posts: 92
Website

Re: Trying to put test plugin in TxP cache but get "unknown tag"

That did not help unfortunately. Moved it to localhost/plugins.

Any other idea’s?

++++++++++++++++++++++++++++++

This is what I get:

tag_error <txp:rss_hello_world name=‘marcel’ /> -> Textpattern Warning: unknown_tag

C:\Program Files\xampp\htdocs\textpattern\textpattern\publish.php:1104 trigger_error()
C:\Program Files\xampp\htdocs\textpattern\textpattern\publish.php:1012 processTags()

C:\Program Files\xampp\htdocs\textpattern\textpattern\publish.php:496 parse()
C:\Program Files\xampp\htdocs\textpattern\index.php:33 textpattern()

Offline

#4 2009-01-23 21:47:54

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Trying to put test plugin in TxP cache but get "unknown tag"

Again, kind of a guess, but I think you need to specify a filesystem path, not a URL.


Code is topiary

Offline

#5 2009-01-24 07:41:07

zeeforel
Member
From: Nieuwerkerk a/d IJssel, NL
Registered: 2004-10-16
Posts: 92
Website

Re: Trying to put test plugin in TxP cache but get "unknown tag"

Aaiii, you were completely right!! Thanks.

However, now I have another question: of course there is an error in my code, and need to do some debugging, however I find that both the testpage for the plug-in as well as the textpattern-admin area provide me same the error so I can not access the admin area. Is that normal?

Offline

#6 2009-01-24 13:03:37

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Trying to put test plugin in TxP cache but get "unknown tag"

Yes. Unlike with installed plugins, if a plugin in the cache won’t parse you will get a fatal error in both admin and live. Which is why you don’t want to develop plugins in the cache of a live site.


Code is topiary

Offline

Board footer

Powered by FluxBB