Problem w/Using PHP Include Statement...

Discussion in 'Troubleshooting' started by nicksparks, Jul 6, 2004.

  1. nicksparks

    nicksparks Guest

    Wierd problem... If anyone has any ideas, I would appreciate it.

    My files are protected using mod_rewrite, which was just changed recently from the PHP include style.

    A problem I'm now seeing though is that the files are being cut off abruptly in the code and producing a Error 404 - File Not Found below the other content and usually in the middle of the php include.

    It doesn't finish the php include at all. For some odd reason.

    Any ideas if this just isn't workable with the mod_rewrite or something?
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Please remove the following lines from file
    amember/plugins/protect/php_include/rewrite.php

    if ($err_count){
    header("HTTP/1.1 404 Not Found");
    header("Status: 404");
    print <<<CUT
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    The requested URL $_SERVER[REQUEST_URI] was not found on this server.<p>
    <hr>
    </body></html>
    CUT;
    }
  3. khan2ims

    khan2ims New Member

    Joined:
    Jul 4, 2008
    Messages:
    5
    Amember problem

    Hi,

    I recently changed hosting of my amember and my website. I exported all the folders and database as described and prescribed.

    I am able to open the home page of my amember, but when clciking on any further links it shows :

    Not Found

    The requested URL /content/members/content/home-games was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


    I tried submitting tickets at customer care of amember, but they were of not much help.

    As I am new to amember, it is driving me nuts .. Somebody plz help me out
  4. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    do you have any data in your existing Amember install.. if not, easy to start over..

    if you do, take a look in your config.inc.php..

    should be a couple of config['root_dir'] settings (look for that /members/content/home-game and set it to what the path is on your new server

Share This Page