Skip to content

mod_rewrite confusion. Host, server and .htaccess says Yes, sendy compatibility check says No.

edited June 2013 in Troubleshooting

Greetings,
I'm trying to install Sendy, and think I've done everything right. Dreamhost, my webhost has confirmed that mod_rewrite is enabled, and the .htaccess files have been set accordingly. Yet sendy's compatibility check insists it isn't enabled. Any ideas?
Thanks!

Comments

  • Hi @Olafg,

    Did you happen to read the note on the left sidebar at the installation page saying not all hosts detects mod_rewrite especially shared ones and if you get a 404 error after install then you need to follow a link for the fix?

    Thanks.

    Best regards,
    Ben

  • edited June 2013

    Hi Ben,

    Yes, I did, and followed the instructions for editing my .htaccess files, but to no avail. Any other ideas?

    Thanks!
    Olaf

  • edited June 2013

    Incidentally, I never got a 404 error. But mod_rewrite was yellow, my initial login won't work, and the reset password email never arrives. So I double checked everything, asked my webhost to confirm mod_rewrite was enabled, which they did, but still no luck, and the compatibility check remains:

    http://www.democracynyc.org/sendy/_compatibility.php?i=1

    I'm at a loss, but am hoping you have another suggestion. Thanks!

  • Hi @Olafg,

    What the note on the left of the installation page meant was that, if you don't get a 404 error after install, then you have mod_rewrite enabled and there is nothing for you to do.

    So, your issue is actually "not being able to login"? And you don't receive the password reset email?

    Make sure your main account login's email address is verified at your SES console otherwise the 'forgot password' email will fail to send. If you've already done that and the email is still not in your inbox, check your spam folder.

    Thanks.

    Best regards,
    Ben

  • Thanks @Ben,

    Unfortunately that doesn't seem to be the problem, as email verification in my SES console is complete.

    Perhaps this is illuminating?: it seems like the forgot password email isn't executing somehow. The browser window gets stuck on "Sending.."

    Olaf

  • I have now reinstalled Sendy, using a new database, doublechecking everything, and still when I go to login with my new login and password, the login screen insists "Please fill in both email and password." Which I've done. And still the forget password doesn't fire.

  • Hi @Olafg,

    Please PM me your FTP login and database access (eg. phpmyadmin or hosting control panel)

    Thanks.

    Best regards,
    Ben

  • Hi @Olafg,

    Thanks for the login credentials. I did a test and figured that your server can't read POST data. That is why Sendy keeps giving you the error message "Please fill in both email and password.".

    I used file_get_contents('php://input'); in your login script but it's not returning the email and password POSTed from the login form.

    Please contact your host to as to why PHP can't read POST data.

    Thanks.

    Best regards,
    Ben

  • edited June 2013

    Hi Ben,

    Thanks for looking into this. I passed your question to my host, and they responded as follows:

    Please be aware that our php does see POST data, in this case I would
    recommend taking a few minutes to read through our customer wiki located here:

    http://wiki.dreamhost.com/PHP_mail()

    (end of quote)
    So, I'm not sure where that leaves us, unless you are seeing something unexpected in the wiki documentation?

    Thanks for your help,

    Olaf

  • Hi @Olafg,

    I've found what's causing this problem.

    When I visit your Sendy URL at http://democracynyc.org/sendy, your server keeps redirecting it to http://www.democracynyc.org/sendy (notice the "www" added to your installation URL). That is causing POST data not to be posted to the login script.

    I've changed your APP_PATH in your /includes/config.php to http://www.democracynyc.org/sendy instead (with "www"), you can now login.

    Thanks.

    Best regards,
    Ben

  • Ben,

    Awesome!

    Or should I say oops? Sorry, thought that was set to leave it whichever way entered...

    You rock. Looking forward to trying the software out,

    Olaf

This discussion has been closed.