Redirecting doesn't work in admin area

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
noname

Redirecting doesn't work in admin area

Post 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?
noname

Re: Redirecting doesn't work in admin area

Post 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...
Locked

Return to “CMSMS Core”