I am getting these errors:

Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in C:…class-wp-hook.php on line 298

Warning: Cannot modify header information – headers already sent by (output started at C:…wwwcustomThemewp-login.php on line 394 <- and line 407

After I add a custom post type and call:

add_action('after_setup_theme', PostTypeCreate_Works());

Because of these warnings I am getting this error on the login: Cookies are blocked due to unexpected output.

Anyone know why this is happening?

Read more here: Custom post type – Errors


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: