Forum Moderators: coopster
when I set 'define('CUSTOM_TAGS', false);' in kses.php file. I can't leave comment with html tags. when I set it to 'true' it shows below error on top of my blog (when opening blog in browser)....
Warning: Invalid argument supplied for foreach() in /home/myusername/public_html/blog/wp-includes/kses.php on line 780
However I can comment with html tag (when it is true).
also, a person with same name, email, website and ip can not comment on more than 1 post, it will show 404 error otherwise. However people can comment as many time without entering website url no matter name, email, website-name andip is same.
Any php master are there who can show me solution?
From my quick research I've seen that a few other people have had trouble with this file as there seems to be some bugs present in the current WP file. There is a sourceforge replacement [sourceforge.net] for this file that you might want to give a try. If it fixes it for you then you'll be set, otherwise you are going to have to do more investigation to see where this error is coming from. You should start by checking to see what's going on on line 780 and see why the custom_tags constant has anything to do with it.
Good luck