Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
wet_if_comment_submitted tag does not exist error
One of my Textpattern sites is running a theme that uses the wet_if_comment_submitted inline plug-in (well, not a plug-in, but a function called by a tag as if it were a plug-in) in one form, but it produces Tag error: <txp:wet_if_comment_submitted> -> Textpattern Warning: tag does not exist
errors. This is on Textpattern 4.4.1 and the “Use plugins?”, “Allow PHP in pages?”, “Allow PHP in articles?”, and “Allow raw php?” are set to “Yes” in the Advanced Preferences.
I’ve always leaned towards writing my own plug-ins if PHP was necessary and so have never actually used PHP in articles/forms before, but the usage seems to comply with the afore-linked example (the wet_if_comment_submitted()
function is defined before the use of the <txp:wet_if_comment_submitted>
container tag), uses the syntax specified in the <txp:php>
documentation), and the theme’s demo site has this working correctly. Was there a change in newer versions of Textpattern that would prevent this from working? Is there a bug fix in Textpattern 4.5.x that would apply (I didn’t see anything specific in release notes for 4.5 or 4.5.1 that would hint at it)?
Thanks in advance for any further troubleshooting pointers or ideas as to the cause of this. I can naturally remove this functionality, but it’d be useful to retain, and will implement this as an actual plug-in if necessary, but all signs imply that it should work.
Morgan Aldridge
http://www.makkintosshu.com/
Offline
Re: wet_if_comment_submitted tag does not exist error
I ended up implementing wet_if_comment_submitted
as a full plug-in and that resolved the issue, but I’m still curious what has changed in the last few years since Robert Wetzlmayr wrote the inline solution that would cause it to fail.
Morgan Aldridge
http://www.makkintosshu.com/
Offline
Re: wet_if_comment_submitted tag does not exist error
Textpattern added measures in v4.4.0 so tags have to be defined as either core code or regular plugins. This inline plugin method therefore doesn’t work any longer.
Offline
Re: wet_if_comment_submitted tag does not exist error
I meant to thank you much earlier… this is exactly the kind of thing I expected, but I greatly appreciate knowing what the change was and when, so thank you! I’m all for that change, as well.
Morgan Aldridge
http://www.makkintosshu.com/
Offline