I need help please >:)

Results 1 to 9 of 9
  1. #1
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    I need help please >:)

    Hey there, now my problem is;

    When I submit my password change, to change my password, I get this error (once I click Change Password):
    PHP Code:
    Fatal errorCall to undefined method uberUsers::UserHash() in C:\xampp\htdocs\inc\tpl\page-settings-pass.tpl on line 12 
    On line 12, there is:
    PHP Code:
    $user['old_password'] = $users->UserHash($_POST["old_password"], USER_NAME); 
    Now, I don't understand why it's giving me a error, when it looks completely fine to me o_O

    Whole script:
    <?php

    // Password changing script for UberCMS
    // Recoded: 6th March 2012.
    // Copyright (c) Jonty M

    if(isset($_POST["SET_NEW_VALUES"])) {
    if(isset($_POST["old_password"]) && isset($_POST["password_one"]) && isset($_POST["password_two"]))
    {
    // Process the $_POST data, encrypt it so it cannot be exploited & prepare it so
    // it can be compared with the hash in the database.
    $user['old_password'] = $users->UserHash($_POST["old_password"], USER_NAME);
    $user['new_pass_one'] = $users->UserHash($_POST["password_one"], USER_NAME);
    $user['new_pass_two'] = $users->UserHash($_POST["password_two"], USER_NAME);

    $p1 = (isset($_POST['p1'])) ? mysql_real_escape_string($_POST['p1']) : '';

    // Get the users variables from the database
    $user['current_password'] = mysql_result(mysql_query("SELECT password FROM users WHERE username = '" . USER_NAME . "'"), 0);

    if($user['old_password'] == $user['current_password'])
    {
    if($user['new_pass_one'] == $user['new_pass_two'])
    {
    mysql_query("UPDATE users SET password = '" . $user['new_pass_two'] . "' WHERE username = '" . USER_NAME . "'");
    $_SESSION["UBER_USER_N"] = USER_NAME;
    $_SESSION["UBER_USER_H"] = $user['new_pass_two'];

    define('success', "Password changed successfully.");
    }
    else
    {
    define('error', "Your new passwords need to match.");
    }
    }
    else
    {
    define('error', "Your old password doesn't match with the one we have on our records.");
    }
    }
    else
    {
    define('error', "Please fill in all the fields.");
    }
    }


    ?>
    <div class="habblet-container" style="float:left; width: 560px;">
    <div class="cbb clearfix settings">

    <h2 class="title">Edit your Zap Account</h2>
    <div class="box-content">
    <?php
    if(defined('success'))
    {
    ?>
    <div class="rounded rounded-green">
    <?php echo success; ?><br />
    </div>
    <div>&nbsp;</div>
    <?php
    }
    else if(defined('error'))
    {
    ?>
    <div class="rounded rounded-error">
    <?php echo error; ?><br />
    </div>
    <div>&nbsp;</div>
    <?php
    }
    ?>


    <form method="post">
    Current Password <br /> <input type="password" name="old_password" /> <br /> <br />
    New Password <br /> <input type="password" name="password_one" /> <br /><br />
    Verify New Password <br / > <input type="password" name="password_two"/> <br />
    <br />
    <input type="submit" value="Change Password" name="SET_NEW_VALUES" />
    </form>
    </div>


    </div>
    </div>
    I got this from UberCMS 2, but it doesn't seem to work o_O Please help, Cheers, Liam ;)


  2. #2
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: UberCMS problem when changing password in UberCMS

    Really needing help D:

  3. #3
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: UberCMS problem when changing password in UberCMS

    still in need of some help.. :P

  4. #4
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: UberCMS problem when changing password in UberCMS

    bump -.-

  5. #5
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: UberCMS problem when changing password in UberCMS

    I use the same script and it's all fine. Are you using ubercms 2.0.1pl1 or?!

  6. #6
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: UberCMS problem when changing password in UberCMS

    Quote Originally Posted by Roper View Post
    I use the same script and it's all fine. Are you using ubercms 2.0.1pl1 or?!
    I'm using normal UberCMS, personal edit..

  7. #7
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: UberCMS problem when changing password in UberCMS

    Think you deleted something. Dont really know cause it seems to.

  8. #8
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: UberCMS problem when changing password in UberCMS

    I'll check around through the CMS and the register etc.. to check if the function is the same

  9. #9
    Gamma Spamma Liam is offline
    MemberRank
    Dec 2011 Join Date
    Down UnderLocation
    2,946Posts

    Re: UberCMS problem when changing password in UberCMS

    bump ._. I really need help



Advertisement