During manual installation I always get the following error:
âThe pageroot in your config â/listsâ does not match the current locationâ
I looked for the file containing the error text and I found in lists/admin/index.php at line 712, the following:
if (WARN_ABOUT_PHP_SETTINGS && !$GLOBALS[âcommandlineâ]) {
if (strpos(getenv(âREQUEST_URIâ), $pageroot.â/adminâ) !== 0) {
Warn(s(
âThe pageroot in your config â%sâ does not match the current location â%sâ. Check your config file.â,
$pageroot,
strstr(getenv(âREQUEST_URIâ), â/adminâ, true)
));
}
}
taking in consideration the description of the function strpos:
strpos â Find the position of the first occurrence of a substring in a string
strpos(string $haystack, string $needle, int $offset = 0): int|false
as a consequence the following line is not correct:
if (strpos(getenv(âREQUEST_URIâ), $pageroot.â/adminâ) !== 0) {
should be the following:
if (strpos(getenv(âREQUEST_URIâ), $pageroot.â/adminâ) !== FALSE) {
Do you agree?