Giter Site home page Giter Site logo

Comments (12)

blankbeard avatar blankbeard commented on July 25, 2024

To be clear, also:

I have created the two tables (in an existing database for this project).

I have customized dbconf and config files with my relevant info.

And I have added <?php require "login/loginheader.php"; ?> onto each page.

I am not sure what is going wrong. This is happening when I try and test registering in my browser.

from php-login.

kernelsp avatar kernelsp commented on July 25, 2024

Are you letting users verify their own accounts or you're sending it to an admin email to be verified?

from php-login.

blankbeard avatar blankbeard commented on July 25, 2024

Thank you for the reply!

I have an admin email to verify.
It also looks like that error could be coming from the functions.php.

I'm still a little green but everything seems to look right and I didn't change anything outside of the Readme instructions. The only thing I did different is added the tables to an existing database instead of making one named "login".

Thanks for the help.

from php-login.

kernelsp avatar kernelsp commented on July 25, 2024

You're welcome, I'm glad to help.

Check on your 'members' table. If you already have an user registered with the same email that you've informed as admin, it won't work.

On a deeper level, it is due to a MySQL error since the column 'email' on table 'members' is an index. So basically what happens is that when you attempt to register another user with an email that already exists, you're trying to corrupt an index, thus the error.

Hope this helps.

from php-login.

JanPetterMG avatar JanPetterMG commented on July 25, 2024

About the MySQL indexes, is's supposed to be like that, there is no bugs over there.

The problem lies in the PHP code, try this instead: #33 (comment)
The issue title is misleading, but it fixes a bug causing the email written in the signup form to be replaced by the admin email, which leads to problems when creating users.

from php-login.

kernelsp avatar kernelsp commented on July 25, 2024

@JanPetterMG Hey Jan, when I said MySQL error, I didn't mean a bug on MySQL. I meant an error generated inside MySQL. Sure it is the default behavior for indexes.

The link shows a pretty good alternative.

from php-login.

blankbeard avatar blankbeard commented on July 25, 2024

My 'Members' sql table is completely empty. I have been trying to test it as well as add myself as a user/admin. Is there a different process I should be using to add myself first before the signup form will work? Image of what it looks like below.

Interesting though, I decided to test it out with
$admin_email = '';
rather than my email, and now I will get the error 'Must provide a valid email address' even though there is a valid email address in the box. Image below as well.

Again, I really appreciate the help guys!!

screen shot 2016-12-19 at 1 33 19 pm
screen shot 2016-12-19 at 1 22 56 pm

from php-login.

kernelsp avatar kernelsp commented on July 25, 2024

Did you apply the changes suggested on the link JanPetterMG posted (issue #33)? If yes, undo them first; I mean, get your files as they were originally.

from php-login.

JanPetterMG avatar JanPetterMG commented on July 25, 2024

Why is the email field yellow? Are you using some auto-fill (browser/extension)? Have you tried without it, or even in another browser?
Signup using that email succeed in my little test, no errors (don't worry, no emails sent).

Looks like a javascript verification issue, are you sure scripts are enabled in the browser and that the file is uploaded at the right place?
Do you find the script in the browser if you replace signup.php with js/signup.js?

Additionally, what version did you download, the master or v2.0?

from php-login.

blankbeard avatar blankbeard commented on July 25, 2024

No Kernelsp, I didn't make those changes cause they didn't seem like a fix for what I was experiencing.

JanPetterMG, yeah I do have an auto fill but I tried it on Chrome, Firefox and Safari (I never use safari so it is default settings.

When I check the script in the browser I get
screen shot 2016-12-22 at 10 38 31 pm

I also have a slightly changed index.php. Maybe that could be the problem?
screen shot 2016-12-22 at 10 50 16 pm

I am not exactly sure which one I downloaded but it was this month.

I really do appreciate this help.

from php-login.

blankbeard avatar blankbeard commented on July 25, 2024

I am going to start fresh and reinstall. I will report back.

from php-login.

blankbeard avatar blankbeard commented on July 25, 2024

I started from square one and followed everything to a T and it worked.

Thanks for the help, I originally must have just erased a comma along the way somewhere.

from php-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.