Skip to content

admin_user.php #1199

@fleetlognorge

Description

@fleetlognorge

Hi,

Thank you for this fantastic product, it was exactly what I was looking for! :)

I deployed this in my environment yesterday by using the install.sh. Today I noticed that I was unable to create more users, and apache2 was throwing some sql errors.

Digging deeper I saw that there were some syntax error in the sql query in the file located at /var/www/hostname/post/admin/admin_user.php

The original query looked like this:

mysqli_query($mysqli, "INSERT INTO users SET user_name = '$name', user_email = '$email', user_password = '$password', user_specific_encryption_ciphertext = '$user_specific_encryption_ciphertext' user_role_id = $role");

In the end here you can see it is missing comma and single-quotes
I edited the line to the below code, and that worked perfectly

mysqli_query($mysqli, "INSERT INTO users SET user_name = '$name', user_email = '$email', user_password = '$password', user_specific_encryption_ciphertext = '$user_specific_encryption_ciphertext', user_role_id = '$role'");

Metadata

Metadata

Assignees

No one assigned

    Labels

    SupportSupport Questions which should be redirected to the forums forum.itflow.org

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions