You load a page expecting template_redirect or some other wordpress hook to be called but it isn’t. template_redirect is not fired for wp admin pages. The page is being cached. Some simple webspace hosts do this at the server level even though you explicitly say the page can’t be cached in say the header of […]
Category: Issues
Cannot send session cookie – headers already sent by…
Full example of the error message Warning: session_start(): Cannot send session cookie – headers already sent by (output started at /home/mysitename/public_html/wp-content/themes/theme-child/functions-myfile.php1:328) in /home/ mysitename /public_html/wp-content/themes/ theme -child/functions- myfile2.php on line 711 There’s a good explanation of this issue here: https://wordpress.stackexchange.com/questions/324762/setting-cookie-with-init-hook-causes-header-already-sent Basically is simply that you mustn’t have any whitespace after the closing ?> of your […]