loshMiS

loshMiS supports this item

Supported

This author's response time can be up to 1 business day.

787 comments found.

kernant

kernant Purchased

Hi,

The script has been working great as I developed in Chrome, but testing on IE and Firefox, it doesn’t let users signup. When the form is submitted it throws the user back to the signup form without registering anything into the database. Please help, I am in live beta!

Hello, I bought the script and I was trying to install it in a Amazon EC2 instance running Centos and a MySQL DB in RDS (separate server). After starting the install page, It shows “ASEngine Folder (writable)” in red. However, I chmod the ASEngine folder to 777, and made sure user and group is apache; the same that runs the apache server. The httpd log shows: PHP Fatal error: require(): Failed opening required ’/var/www/html/auth/ASEngine/ASConfig.php’. Any ideas?

Hey,

Hmm that’s really strange…The way the installer checks if some folder is writable is by using native php function is_writable() (http://php.net/manual/en/function.is-writable.php), so there must be some kind of permission issue or something since installer still see it as an issue and mark it as red. Can you maybe send me the URL to your script installation so I can see how it behaves?

About PHP error you see, it’s nothing unusual, since ASConfig.php file will be created only after successful installation.

Regards,

Milos

Milos, thank you for your quick response. It helped me to debug more into the issue. I finally got it working. I had this permissions on the folder: drwxrwsrwx. (with a dot at the end). So I deleted the site from the server, disabled selinux and rebooted. Then uploaded the files and checked that there is no dot. Changed folder permissions to 777 and voila! Working.

sdfreer

sdfreer Purchased

Thanks Again for the answer to my last question regarding protecting pages !! I have another question. I’m trying to post a form which the info gets input to a MySQL database. Now that the pages are protected, I’m getting an “Invalid CSRF token.” error message when trying to Submit. Without the ‘protection’ code they submit O.K.

Hey,

Since you are probably not using ajax (which is automatically configured to send csrf token on every request), you will have to add CSRF token manually inside your form, like following:


<form ...>
    <input type="hidden" name="<?= ASCsrf::getTokenName() ?>" value="<?= ASCsrf::getToken() ?>" />
    //...
</form> 

Now, you will be sending the token when form is submitted, and you only need to tweak ASCsrf.php file a bit by modifying the isValidRequest method to look like following:

private static function isValidRequest()
    {
        return self::isValidReferer();
    }

Regards,

Milos

kernant

kernant Purchased

Milos, a request for your code. Could you give us an update where the user can login with an e-mail instead of a username?

Hey,

You can actually achieve that pretty easy, just by modifying the select query inside the userLogin function in ASLogin class, to look like following:

"SELECT * FROM `as_users`
             WHERE `email` = :u AND `password` = :p"

Regards,

Milos

kernant

kernant Purchased

Thanks. In this case, where can I disable the function that prohibits duplicate usernames? I’d like to change that field to first and last name

kernant

kernant Purchased

Milos, one more question please. I am setting up the email configurations to send through google’s smtp. What are the choices for “smtp_encryption”?

RKTownsend

RKTownsend Purchased

nm

RKTownsend

RKTownsend Purchased

Hi,

I am stuck on the ASEngine Folder (writable) issue. The install requirements page says that ASEngine folder is not writable even though it is writable. I have also tried changing owner and group to apache, no luck.

Any Help is appreciated.

by
by
by
by
by
by