frogmoses
Forum Replies Created
-
Forum: Plugins
In reply to: Registered Only Plugin : Restrict entire blog to rI installed version 0.1 and received this error:
Warning: Cannot modify header information – headers already sent …
It was caused by a plug-in, “Event Calendar”, which was writing to the browser before the header() was called. If I deactivate the calendar, the registered_only plug-in works. I tried some of the newer versions and received the redirect too many times error others have reported.
So I modified the version 0.1 registered_only.php file in this way.
Comment out these lines://header(‘Expires: Wed, 11 Jan 1984 05:00:00 GMT’);
//header(‘Last-Modified: ‘ . gmdate(‘D, d M Y H:i:s’) . ‘ GMT’);
//header(‘Cache-Control: no-cache, must-revalidate’);
//header(‘Pragma: no-cache’);
//header($redir);and redo this line
$redir = ‘Location: ‘ . get_settings(‘siteurl’) . ‘/wp-login.php?redirect_to=’ . urlencode($_SERVER[‘REQUEST_URI’]);
to read
$redir = get_settings(‘siteurl’) . “/wp-login.php?redirect_to=” . urlencode($_SERVER[‘REQUEST_URI’]);
then add this line
echo “<meta http-equiv=’refresh’ content=’0;url=” . $redir . “‘>”;
in place of this code: header($redir);
Forum: Fixing WordPress
In reply to: error when updating optionsIf you have Norton Internet Security installed, and Privacy Control turned “on”, it will prevent the http_referer code from working. Disable Privacy Control and it should work.
Thanks.
Brian