• ccsimmons

    (@ccsimmons)


    When I was first setting up the plugin and I clicked “Test connection” it returned this error “Error: 500 There was an error on the server”. I started down the road of looking at ports and other server stuff, but it turned out there wasn’t an error in the connection, I just had not loaded any users in my database table yet. I would recommend if 0 records are returned an error message such as “No users found” should be returned. This way people know the connection works, but no data was returned. Just a thought. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author tbenyon

    (@tbenyon)

    Hey @ccsimmons,

    I really appreciate you taking the time to give feedback.

    In my testing I was only able to get the 500 error on a server fail, not for not populating the database however I’ve added a ticket in to my board to try and replicate this.

    Not sure you’re that interested but you can see in this file that I am giving a different result at times when no data is returned:
    https://github.com/tbenyon/wordpress_external_login_plugin/blob/develop/js/exlog_test.js

    As I said, I will investigate this further to see if I can replicate and will leave this ticket open for now.

    Really appreciate you taking the time to write feedback ??

    Thread Starter ccsimmons

    (@ccsimmons)

    Did you clear out the external database? When the external database is empty is when I receive a 500 error. Based on the code you linked me to I would have expected either the 600 or 601 or for the html returned to be:

    <table>
        <thead>
            <tr>
                <th>username</th>
                <th>password</th>
                <th>first_name</th>
                <th>last_name</th>
                <th>role</th>
                <th>email</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td colspan="6">No Users Found.</td>
            </tr>
        </tbody>
    </table>
    Plugin Author tbenyon

    (@tbenyon)

    Me too. Will have a closer look at this! Will update when I get round to experiment.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Clicking “Test connection” returns “Error: 500 There was an error on the server”’ is closed to new replies.