Results 1 to 7 of 7
  1. #1
    Casual Pligger l0gikal's Avatar
    Joined
    Mar 2009
    Posts
    53

    Exclamation Karma causes "Call to undefined function generateHash() "

    When I try to manually run /libs/karma.php, I get the following error:

    Code:
    <b>Fatal error</b>:  Call to undefined function generateHash() in <b>/home/domains/mysite.com/www_root/libs/user.php</b> on line <b>139</b><br />
    This is the code around line 139 on user.php:
    $saltedpass=generateHash($user_pass);}
    Code:
    	if (strlen($user_pass) < 49){
    			$saltedpass=generateHash($user_pass);}
    		else{
    			$saltedpass=$user_pass;}

  2. #2
    Casual Pligger l0gikal's Avatar
    Joined
    Mar 2009
    Posts
    53
    Can someone help me with this error? Might be a simple fix. Thanks!

  3. #3
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    How about a link to your site?

  4. #4
    Casual Pligger l0gikal's Avatar
    Joined
    Mar 2009
    Posts
    53
    chuckroast, here's the link : Ummah's Best
    Thanks in advance

  5. #5
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    From doing a bit of poking around I belive the problem might be being caused by the "Anonymous" submission module. I would suggest disabling it temporarily and then try running the karma again and see if you still get that error.
    Hope that at least points you in the right direction.

  6. #6
    Casual Pligger l0gikal's Avatar
    Joined
    Mar 2009
    Posts
    53
    Quote Originally Posted by chuckroast View Post
    From doing a bit of poking around I belive the problem might be being caused by the "Anonymous" submission module. I would suggest disabling it temporarily and then try running the karma again and see if you still get that error.
    Hope that at least points you in the right direction.
    Thanks chuckroast. I tried disabling the "anonymous submission" module, but I'm still getting the error....
    Code:
    <b>Fatal error</b>:  Call to undefined function generateHash() in <b>/home/domains/ummahsbest.com/www_root/libs/user.php</b> on line <b>139</b><br />
    Any other possible solutions?

  7. #7
    Pligg Developer chuckroast's Avatar
    Joined
    Jun 2006
    Posts
    5,478
    Quote Originally Posted by l0gikal View Post
    Thanks chuckroast. I tried disabling the "anonymous submission" module, but I'm still getting the error....
    Code:
    <b>Fatal error</b>:  Call to undefined function generateHash() in <b>/home/domains/ummahsbest.com/www_root/libs/user.php</b> on line <b>139</b><br />
    Any other possible solutions?
    Next thing I would try is submitting from a known user, then running karma again. I've looked at your topusers page, it does seem like the karma is being calculated. It's possible that the error is being caused by an older version of PHP on the server..

    I've never seen the error before so I'm pretty sure it's limited to you.
    Another thing you can try is disabling all modules...
    Also did you only disable the anon posting mod? or both the helper module that is required with it.?

Similar Threads

  1. Call to undefined function: stream_get_contents
    By plehm in forum Questions & Comments
    Replies: 26
    Last Post: 08-07-2009, 05:14 AM
  2. Replies: 1
    Last Post: 02-23-2009, 05:54 AM
  3. Call to undefined function: get_results() in config.php
    By Thana in forum Questions & Comments
    Replies: 3
    Last Post: 10-19-2008, 06:32 AM
  4. Fatal error: Call to undefined function
    By sanchopanza in forum Questions & Comments
    Replies: 1
    Last Post: 08-23-2007, 07:46 PM
  5. Fatal error: Call to undefined function: mb_strtolower()
    By vbmark in forum Questions & Comments
    Replies: 0
    Last Post: 04-06-2006, 08:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting