I've installed my first PostNuke. It all looks OK unless you go into the admin menu and then find that half the icons when clicked return page not found errors.
For example if I click settings the page loads, but if I click blocks or modules I get the error that the page is not found.
For example if I clock blocks it creates the following URL: https://www.mysitename.com/html/index.php?module=Blocks&type=admin
and this returns page not found. Any help appreciated.
Login
Donate to Zikula
Support
::
New install returning "page not found"
-
-
try removing the s off https
--
Regards,
Simon
itbegins.co.uk - Zikula Consulting
Please read the Support Guide -
I never noticed the HTTPS :)
So we are one step closer to a fix!
But I did nothing to make it request HTTPS, so why are some of the icons in the admin menu ending up with https ruining the URL whilst other icons produce a noraml HTTP and thus work? IE why is the 'S' being added in for some items and not others on this virgin install? -
Seems to be a known problem with PNL: http://forums.postnu…662&highlight=https and http://forums.postnu…474&highlight=https but no clear definition of a fix.
:( seems my first install of PN has not been a good experience. Any ideas? Surely you would think of people keep having this prob a fix would be made? -
OK here is the fix, but I am not sure if it is right but it appears to work.
Edit the file pnAPI.php found in the includes dir.
function pnServerGetVar($name)
{
// Check the relevant superglobals
if (isset($_SERVER[$name])) {
return $_SERVER[$name];
}
if (isset($_ENV[$name])) {
return $_ENV[$name];
}
if ($val = getenv($name)) {
return $val;
}
return; // we found nothing here
Remove these lines completely:
}
if (isset($_ENV[$name])) {
return $_ENV[$name];
}
if ($val = getenv($name)) {
return $val;
save, upload, logout, login again. It worked for me.
