template_redirect etc not called

You load a page expecting template_redirect or some other wordpress hook to be called but it isn’t. 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 pages and your site uses a database! You […]

Read More

After update admin area blank or error 500

It may be that the main site front end works fine, but the admin area is error 500 or just blank depending on browser. Turn on debug mode to try and find cause of problem. In “/wp-config.php” find (or add) “define(‘WP_DEBUG’, false);” and set it to true. This may reveale a memory size limit issue. […]

Read More

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 […]

Read More