Page 1 of 1

Redirecting doesn't work in admin area

Posted: Thu Aug 31, 2006 7:22 am
by noname
I had a fully working CMSMS 0.13 installed in another server. Then I moved it to another domain and another server by copying all the files and database content. I changed all the config information and everything else works fine but redirecting in admin area (www.domain.com/admin/). It seems to fail redirecting every time if I press "Submit" when modifying page contents. But if I press "Apply", it works ok. By failing I mean it redirects to public area: for example "www.domain.com/listcontent.php?page=1" when it should be "www.domain.com/admin/listcontent.php?page=1".

Admin area is installed in default admin/ directory and config.php points to that directory.

Any ideas what could cause this behaviour?

Re: Redirecting doesn't work in admin area

Posted: Sun Sep 03, 2006 7:14 am
by noname
Found a solution to this one: I had to edit file lib/misc.functions.php and comment out line 34:

Code: Select all

$_SERVER['PHP_SELF'] = null;
After that everything seems to work correctly.

Anyone knows why that line had to be commented out? I think it's some sort of a PHP-related configuration thing...