• 0

Forums are messing up another part of the website


Question

Hello everyone,

I just upgraded to the latest version of IP Board, and ever since then it has been taking over an area of the website. If you type in that folder location on your browser, it will say a 404 error on the forums; however, if you go to index.php on that folder, it works fine. I do not know if I am allowed to post the link to where the issue is or not, so let me know.

The only thing that area has in common with IPBoard is it uses the system to see if a user has logged in. Maybe this has changed from 3.0.x to 3.1.x and the code is messing up? But why would location/index.php work instead of location?

Here is my code to get the login information:

function getMemberData()
{
        $forum_path = "../forums";
        /**
        * We will change directories so that proper directory is picked up
        */
        chdir( $forum_path );

        /**
        * Get some basic IPB files
        */
        define( 'IPB_THIS_SCRIPT', 'public' );
        require_once( 'initdata.php' );

        /**
        * Get IPB registry
        */
        require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' );
        require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' );

        /**
         * initialise the ipsRegistry
         */
        $ipbRegistry    = ipsRegistry::instance();
        $ipbRegistry->init();

        return $ipbRegistry->member()->fetchMemberData();       
}

If somebody knows IPB, could you let me know if they changed their member data from version 3.0.x to 3.1.x? Or if you know a better way to do this?

Thanks!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Are you hosted on your own server or are you on a shared server? Your server's configuration is what sets the default index file to be used for a directory. Maybe they botched up the DirectoryIndex configuration on there that isn't allowing index.php to show up when you access /directory/.

What's the URL?

Link to comment
Share on other sites

  • 0

It worked the minute I started the upgrade process. The minute the board went from 3.0.x to 3.1.x, it stopped working. So it has to be an IP.Board issue.

Link that does not work: http://www.phstudios.com/premium/

Link that works: http://www.phstudios.com/premium/index.php

It does get the member data: "Welcome to the Premium Area Whiplash".

Somehow the forums (/forums) is taking over a completely separate directory (/premium). Do you know why other than the script above?

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.