Frequently Asked Questions
Warning: Missing argument 2 for..
Q.
Warning: Missing argument 2 for if_comments_allowed() in /httpdocs/textpattern/publish/taghandlers.php on line 1188
Warning: Missing argument 2 for some_function ..
A.
These and similar errors occur when an enclosing <txp:...> tag isn’t closed properly. The function name will be the name of the tag (<txp:if_comments_allowed> in the above example).
Check for errors like these in your page templates:
Using an enclosing tag as self-closing
<txp:some_tag />instead of
<txp:some_tag> ... </txp:some_tag>
Error in closing tag
<txp:some_tag>
...
</txp:smoe_tag>, or
<txp:some_tag>
...
</txp_some_tag>, or
<txp:some_tag>
...
<txp:some_tag>
Missing closing tag
<txp:some_tag>
...
Posted 17 September 2005, 07:28 by Alex Shiels
