"signup.php" asks to download

Discussion in 'Installation' started by sda100175, Jul 18, 2010.

  1. sda100175

    sda100175 New Member

    Joined:
    Mar 25, 2008
    Messages:
    12
    Just upgraded to 3.1.9... having a major issue. When I try to go to the "signup.php" page, Firefox brings up a dialog asking me to download the file instead of displaying it. What's going on?!
  2. sda100175

    sda100175 New Member

    Joined:
    Mar 25, 2008
    Messages:
    12
    Looks like server is offering it as text/plain. Why would this change after an upgrade?
  3. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
    It probably is the file permissions setting. Check the attributes (CHMOD) - either with your FTP program or with File Manager from within your webhost's cPANEL.
    On my server the attributes are set to: 644, and the amember directory: 755.

    Checkout this page for more details:
    http://manual.amember.com/How_To_Chmod
  4. sda100175

    sda100175 New Member

    Joined:
    Mar 25, 2008
    Messages:
    12
    Yeah, checked that already. My dir is 755 and file is 644. config.inc.php is also 755.

    The oddest part about this is that all the other scripts are working fine: member.php, admin/index.php, etc. It's just signup.php that is being served up as MIME type text/plain, so the browser tries to download it instead of displaying it.
  5. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    so one of two things happened:

    1) file was uploaded ascii instead of binary, in which case you should reupload the file and double check it is binary (I suggest uploading the original aMember .zip file and unzipping locally on the server)

    2) double check permissions
  6. sda100175

    sda100175 New Member

    Joined:
    Mar 25, 2008
    Messages:
    12
    Just found this thread where someone was having the same issue:

    http://www.amember.com/forum/showthread.php?t=12253

    Looks like Alex fixed it for that guy and related it to an incorrect upgrade. I've tried uploading that upgrade package several times but keep getting same error. BTW skippy, I always upload as .zip and unpack on the server, takes too long otherwise.
  7. erwinvdb

    erwinvdb aMember Pro Customer

    Joined:
    Aug 30, 2007
    Messages:
    264
    You have a couple of options what to do next:
    - reupload the lastest complete version, not just the upgrade package
    - on your website recheck the permissions and htaccess file
    - on your webhost cPanel: check MIME Types and PHP Configuration
    - open a ticket with amember support and if they cannot fix it (what I doubt) you could
    - open a ticket with your webhost
  8. sda100175

    sda100175 New Member

    Joined:
    Mar 25, 2008
    Messages:
    12
    Yes, I will probably go the full version route if support does not come through fairly quickly (I entered a ticket this AM). I'm positive I did things as specified in the instructions, and I've done it a couple times with the same results. I'm no newbie to web development, but there are a lot of dependencies that I have no idea where to begin checking.

    Hoping support can help quickly on this one.
  9. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    Depending on which version you are upgrading from, you can do a full package install minus the templates (to preserve any template changes you have made)
  10. sda100175

    sda100175 New Member

    Joined:
    Mar 25, 2008
    Messages:
    12
    It works! Alexander and Audrey did not do anything. What appears to have happened is that I fixed it on one of my re-installs, but my browser cache was holding the "old" problem file (amember/templates/js.country_state.js). Once the cache version timed out, the pages started working again.

    If anyone else runs into this problem, try re-loading the signup.php file using (Control-Shift-R) to do a cache flush reload.

Share This Page