Permalinks Problems & Update

By Toledoh - August 5, 2013

Hey Perch,

I've noticed with a few recent installs that the General settings are not automatically being set correctly.  I think it's mainly the Website Root Directory, program URL and uploads that I've had to mess with that I haven't previously had do do anything about.  I was going to check in the next BETA release before I commented.

Cheers,

Tim (toledoh.com.au)

Hi Perch,

We are currently looking into a fix for this problem, this issue is on line 12 of the permalinks_dispatcher.php file, which you can see here:

$REDIRECT_URL = coalesce(@$_SERVER['REDIRECT_URL'], @$_SERVER['SCRIPT_URL'], array_first(explode('?',$_SERVER['REQUEST_URI'])));

which needs changing to this:

$REDIRECT_URL = coalesce(@$_SERVER['SCRIPT_URL'], array_first(explode('?',$_SERVER['REQUEST_URI'])), @$_SERVER['REDIRECT_URL']);

This is because on some servers the variable $_SERVER['REDIRECT_URL'] doesn't contain the URL  that the page was redirected to, but the path to the current file. So permalinks_dispatcher file ends up looking for the incorrect file path in its database.

This issue should be resolved in the next release.

Let me know if you have any questions. 

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com

Hi Tim,

Thanks for bringing this to our attention.

We've checked over the next release and the website root directory and program URL will be automatically set by default.

Cheers

Greg

Greg Thomas







PHP Programmer - interactivetools.com