booruguru / UserPie

PHP login script / user authentication framework
http://userpie.com
Other
137 stars 52 forks source link

[ISSUE] Install works, script does not #13

Open vscribe opened 11 years ago

vscribe commented 11 years ago

Hi there,

I have attempted to use this in both a bootstrap template and stand alone. Both on a MAMP and a live server.

The issue I'm seeing is that it 'act's' as if it accepts a registration, but nothing is written to the db. Have confirmed that db connection is correct.

Has any one else encountered this? If so what did you do to fix?

wastubbs commented 11 years ago

I too had this issue. I did not find a work around and emailed the author (support@userpie.com) with no response. I wound up switching to a CMS to accomplish what I wanted in the time allowed.

vscribe commented 11 years ago

wow -too bad. I found an alternate solution as well.

wastubbs commented 11 years ago

To be honest, the CMS solution I landed on was garbage too, but the clock was running out.

Virtuemart on top of Joomla! is a pretty poorly documented setup.

vscribe commented 11 years ago

ouch..yes - VM is a tough setup...

JorgenPhi commented 11 years ago

It is because $message is not defined. $message should be created if there is an error, but the $errors array is never turned into $message. (All this is on register.php) letens' solution:

Replace line 105 with:

    <?php
        if(!empty($_POST))
        {
            if(count($errors) > 0)
            {
        ?>
            <div id="errors">
            <?php errorBlock($errors); ?>
            </div>     
  <?php } else { ?> 
        <div id="success">

           <p><?php echo $message ?></p>

        </div>
    <? } }?>       
JimFriend commented 10 years ago

Jorgen's fix worked for me as well.

SimonG04 commented 10 years ago

very helpful, now i can see error messages! thanks!

mrdecoder commented 10 years ago

anyone stil here? i need help

im making a very big project and using the userpie registration and login system

al worked but somehow it stopped working

i get message saying You have successfully registered. You will soon receive an activation email. You must activate your account before logging in.

and if i do something bad i get the errors so that part stil works however i dont get email and i dont get database inputs

where can this problem be?

please help

JimFriend commented 10 years ago

mrdecoder, it's been a while since I've looked at this code but take a look at my current pull request to see if your issues may have been fixed there. I think my code fixed six or so small bugs so it's possible it might cover yours as well:

https://github.com/booruguru/UserPie/pull/24

mrdecoder commented 10 years ago

thanks ill take a look at the fixes atm tho i rescript most of the pages to my needes and they seem to work good now

i even made a part that is a user makes an account and activates he or she can make moderator accounts inside there own account

all together i made a master peace :)

0when all is finnish ill show:) ; but i will look at your fixes maybe there better then mine