Hot answers tagged

2

The problem, as pointed out in the php error, is on line 7 of the "chat.php" file: add_action( 'init', ic_show_chat_bar()); This line has two problems: The correct syntax for a valid callback function should be without the parenthesis and wrapped in single quotes. Since the function is declared inside a php class, it won't be accesible to add_action ...


2

Please look up before posting your questions ! There is a detailed answer available. http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php


1

I figured out what was causing this, but it was by trial and error since there was no good debug info. And the error was in the main (custom post calling) part of my plugin, NOT in the options as I had surmised earlier. I ended up finding out that I needed to be using 'content' => $p->post_content in my query/foreach loop in place of 'content' ...


1

Does wordpress have any built-in settings for doing this? Most likely your host will have an option on your cPanel for custom Error pages. Something along the lines of: If that is not the case, please have a look at this older question: How to create custom 401, 403 and 500 error pages? EDIT 1: Also at this one: ...



Only top voted, non community-wiki answers of a minimum length are eligible