Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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