Installation, Configuration, & Upgrades  :: 
Problems with admin access and PN 0.7.2.1 solved!
 Top

  • My setup: PHP 4.2.3, MySQL, Xitami, WinXP Pro

    I put the following line into the html/includes/pnAPI.php module just after the defines and before the functions.

    $PHP_SELF = $_SERVER['SCRIPT_NAME'];

    So far everything seems to work! This is probably not new to any of the developers and there is probably a better way to effect the change using the correct settings. The key here is that I could not figure out how to get the site working. I hope that this post will help others having similar problems.

    Here's my story...
    I got the site installed, could log in as admin and did see all the admin options. When I clicked on one of these lines, Add Story, for example I got a Blank Page with Access Denied.

    I did several reinstalls, I checked the settings in the PHP.ini file, used php_info to confirm the settings, searched the web high and low and finally decided to hunt the problem in the code.

    After some digging I found that the admin code was confirming the current script was equalivent to $PHP_SELF. Problem is, $PHP_SELF is always blank when PHP is run as a CGI, as it is under Windows, and in the later version of PHP. At least that's what I learned.

    I read that PN 0.7.2.2 has removed the sensitivity to global variables now. I did not know that the globals issue was causing my problem until I did the code hunting exercise. Oh well, I guess I learned a lot about PN. So far I love it. I hope I don't find more problems, or maybe I welcome the chance to learn more...

    David
  • i should have found this 5 hours earlier ;)

    well... everything works fine now...
    thank you again
  • :? I've tried PHP-Nuke and Xoops with no success and no forum help either (to speak of), however, I installed PostNuke and it took right off! Save for the "Access Denied" error I was getting on the admin links. Couldn't figure it out and tried the PN Forums - guess what - there the solution was:

    Quote

    "I put the following line into the html/includes/pnAPI.php module just after the defines and before the functions.

    $PHP_SELF = $_SERVER['SCRIPT_NAME'];


    :arrow: I placed the code in the "... includes/pnAPI.php" file just before the "Functions" remark (after the last "Defines" statement) - and BAM! IT WORKED!!!

    :D That's one up for PostNuke!

    Sigilogic
    Admin
    www.osrpg.com

    PS: Latest versions of MacOSX/WebStar w PHP/MySQL/PostNuke/... and No Apache!
  • Can I have your babies, David? icon_lol

    That fixed my problem with trying to install PostNuke on my webserver at last... After trying a dozen other solutions.
    Many thanks! :)
This list is based on the users active over the last 60 minutes.