Unpublished first page gives 404 Not found
Posted: Thu Jun 12, 2014 9:19 pm
Hello Community,
I just noticed, that CMSimple_XH gives a "404 Not found" when the installation is requested directly (i.e. without specifying a page), but the first page is unpublished. IMO this is a bug, or at least an ugly limitation, that has not been in classic CMSimple.
I suggest that we try to fix that for XH 1.6.3. It should be sufficient to modify multiple (IIRC there are 3) occurrences of the $s fix: where 0 could be replaced by XH_firstPage() or something like that.
To cater for respective page_params settings, the core would have to check for a plugin setting, what I don't really like, but it has already been done for li(). We may consider to fully integrate page_params into the core for XH 1.7.
Christoph
I just noticed, that CMSimple_XH gives a "404 Not found" when the installation is requested directly (i.e. without specifying a page), but the first page is unpublished. IMO this is a bug, or at least an ugly limitation, that has not been in classic CMSimple.
I suggest that we try to fix that for XH 1.6.3. It should be sufficient to modify multiple (IIRC there are 3) occurrences of the $s fix:
Code: Select all
// fix $s
if ($s == -1 && !$f && $o == '' && $su == '') {
$s = 0;
$hs = 0;
}
To cater for respective page_params settings, the core would have to check for a plugin setting, what I don't really like, but it has already been done for li(). We may consider to fully integrate page_params into the core for XH 1.7.
Christoph