Forums / Cotonti / Bugs / Archive / infinite redirection when a have error page

Dayver
#1 2008-10-23 05:17
In the audit r118 when the core of the page gives visitors a redirection error occurs indefinitely
Pavlo Tkachenko aka Dayver
Trustmaster
#2 2008-10-23 13:54
If you mean missing user_theme field, it's a missing query in SQL patches. Use this query to fix it on your DB:
ALTER TABLE `sed_users` ADD COLUMN `user_theme` VARCHAR(16) NOT NULL DEFAULT '';
May the Source be with you!
Dayver
#3 2008-10-23 18:03
No, this column is. This occurs when a visitor is not logged in (guest) and to suit asks for the administration. He is showing error page and redirect (indefinitely). Nothing any error page for the guest is infinitely redeployment
Pavlo Tkachenko aka Dayver
oc
#4 2008-10-23 21:25
I know why it is. I figured it out long time ago, but I wanted to commit with my other fixes.

First of all, not about that but, look at this: (message.inc.php)

	case '930':
		if ($usr['id']==0)
		{
			$rd = 2;
		$the_redirect = (!empty($redirect)) ? "&redirect=".$redirect : '';
		$ru = sed_url('users', 'm=auth'.$redirect);
		}

it happens because of new sed_url. i forgot the line but in some file, you should delete/add an "&" (amp)
Trustmaster
#5 2008-10-23 23:50
See the 4th parameter of sed_url() function.
/**
 * Transforms parameters into URL by following user-defined rules
 *
 * @param string $name Site area or script name
 * @param mixed $params URL parameters as array or parameter string
 * @param string $tail URL postfix, e.g. anchor
 * @param bool $header Set this TRUE if the url will be used in HTTP header rather than body output
 * @return string
 */
function sed_url($name, $params = '', $tail = '', $header = false)
May the Source be with you!