Results 1 to 5 of 5
  1. #1
    Member philtrecca's Avatar
    Joined
    Aug 2012
    Posts
    35
    Thanks
    Received:0
    Given: 2

    invalid username or userid in get_avatar

    Hello i do not know if there is already an answer to this problem
    i bought a website 3 days ago and when i moved it to my host
    i created database etc etc
    but when i try to go to the website it doesnt load and appears this message

    invalid username or userid in get_avatar

    thanks again for help

  2. #2
    Pligg Founder/Coder/Designer Yankidank's Avatar
    Joined
    Dec 2005
    Location
    San Francisco, CA
    Posts
    5,531
    Thanks
    Received:88
    Given: 14
    Site
    http://pligg.com/demo/
    Did you follow this guide for transferring hosts?

    You usually get that error message when your database doesn't have the requested users that it is trying to get in a query. So that would mean that your database probably doesn't have all of the users. This could be from a corrupted mysql transfer, or you didn't do the transfer process correctly. I suggest following the guide (link above) to make sure that you performed the transfer as suggested.
    The Facebook Module for Pligg CMS!
    Register, Login, and Submit Stories with Facebook. An absolute MUST HAVE for all Pligg sites!

  3. #3
    Banned rankbirth's Avatar
    Joined
    Dec 2011
    Location
    Bangladesh
    Posts
    54
    Thanks
    Received:10
    Given: 7
    Version
    1.2.0
    Site
    http://www.riseintop.com/
    Hello Yankidank, I sold my rankbirth.com to philtrecca And I used CUTEFTP to download whole site and then download (export) database from phpmyadmin. But I was failed to import full database, it creates only 10table but my previous database it was 53database table. Actually in this situation what should I do to make this site live again?

    Here is my database: http://www.riseintop.com/rankbirth.sql

  4. #4
    Junior Member Abbas's Avatar
    Joined
    Dec 2011
    Posts
    1
    Thanks
    Received:0
    Given: 0
    I think this is a lack of the Pligg CMS or the developer missed something.
    I love pligg much so I solved the problem.

    Here is the steps you need to do:
    *Note: if you are not a php familiar please read carefully and make changes at your won risk.

    #1. Go to your installed folder of Pligg e.g.: /public_html/
    #2. Then go to libs folder and get "html1.php".
    #3. Use any plain-text editor like notepad or online editor as you like.
    #4. Find this line: " if(!$user->read()) "
    There will contain the text 'invalid username or userid in get_avatar' like below:
    echo "invalid username or userid in get_avatar";
    die;

    Make comment these two lines by typing double slash before the line look like below:

    // echo "invalid username or userid in get_avatar";
    // die;

    #5. Now write some new code look like this:
    $avatarsource = NULL;
    $size = "small";
    $user_name = "anonymouse";
    $user_id = 1;
    $user_email = "me@localhost";

    #6. Okay, you are done. Now save the file and upload/replace again.
    Pligg_function.jpg
    *Note: These lines will same place where "// die;" written.

    Thanks you guys,
    -Abbas Uddin
    PHP/MySQL, Web Developer.
    Last edited by Abbas; 03-26-2013 at 07:10 AM. Reason: Example image uploded

  5. #5
    Junior Member ceoitrc's Avatar
    Joined
    Jan 2013
    Posts
    1
    Thanks
    Received:0
    Given: 0
    No Dear Abbas its not working I have followed the instructions for still the same problem . please let me know if there is any other solutions to this

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 Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg