Loading...
 
Skip to main content

Features / Usability


Disallow Access To the Site - Problems

Dear all,

I've just selected disallow access to the site from the General Settings page. Now the site will not load at all! Rather the browser displays the following message:

Too many redirects occurred trying to open “http://office.meiasia.tv/tiki-error_simple.php?error=Site+is+closed+for+maintainance%3B+please+come+back+later.???. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

Does anyone know where to go to swtich off the disallow access feature? Obviously, I can't do this from the web interface.

Thanks in advance.

Plugmusc.

I have just had the same problem, and found a workaround.

You do get logged in correctly, but it then redirects you to the error page with the same error message, if you then type in the path to index.php it works and you are logged in.

The problem is in the section starting
//Remember where user is logging in from and send them back later; using session variable for those of us who use WebISO services
if (!'loginfrom'" class="wiki wikinew text-danger tips isset">$_SESSION'loginfrom') {

because you can only really log in from the index page I have disabled this feature and the code is now the following, just to return the user to the index page.

//Remember where user is logging in from and send them back later; using session variable for those of us who use WebISO services
if (!'loginfrom'" class="wiki wikinew text-danger tips isset">$_SESSION'loginfrom') {
// Netx block commented out by Dave Sykes 27 Aug 2004
/* if 'HTTP_REFERER'" class="wiki wikinew text-danger tips isset">$_SERVER'HTTP_REFERER' {
// $_SESSION'loginfrom' = basename($_SERVER'HTTP_REFERER');
$_url = parse_url($_SERVER'HTTP_REFERER');
$_SESSION'loginfrom' = $_url'path';
if (!empty($_url'query')) {
$_SESSION'loginfrom' .= '?'.$_url'query';
}
} else {*/
//Oh well, back to tikiIndex
// $_SESSION'loginfrom' = basename($tikiIndex);
$_url = parse_url($tikiIndex);
$_SESSION'loginfrom' = $_url'path';
if (!empty($_url'query')) {
$_SESSION'loginfrom' .= '?'.$_url'query';
}
// }
}

Let me know if this also works for you.

Good luck,

Dave Sykes


😬OK, well it worked before I posted this message, then I went back and it has stopped working. Sorry.

Dave Sykes