• Okay this is not cool.

    I’m working on a website for club, and I specially downgraded wordpress to 3.0 so People List will work, only to find out that User avatar won’t work.

    I’ve installed the plugin and I can upload a new avatar bud when I crop the original it gives a error!! :Sorry, No file available.

    A bid of help would be great!

    (can’t provide a link, because I’m working local )

Viewing 15 replies - 1 through 15 (of 18 total)
  • Thread Starter leonanthony

    (@leonanthony)

    EDIT:

    Tested the plugin on a online page, same problem!!

    Plugin Contributor Enej Bajgori?

    (@enej)

    Hi leonanthony

    I am currently working on an updated version of the plugin.
    But yours might be a permissions problem. Do you have any problems uploading images to your site?

    Thread Starter leonanthony

    (@leonanthony)

    It shouldn’t be a permission problem. Because everything is open at this moment.
    I’m using another plug-in that work fine.

    Hello leonanthony,

    i solved this issue for uploading user avatar.
    Please change the user-avatar.php
    Please reply me

    Thread Starter leonanthony

    (@leonanthony)

    Why did you remove the solution ??

    Hello leonanthony,
    Here some net problem
    Please see the below updated
    Change this line
    <input type=”hidden” name=”attachment_file” id=”attachment_file” value=”<?php echo esc_url($file); ?>” />
    replace with
    <input type=”hidden” name=”attachment_file” id=”attachment_file” value=”<?php echo $file; ?>” /> Just

    Plugin Contributor Enej Bajgori?

    (@enej)

    Have you tried the updated version?

    Plugin Contributor Enej Bajgori?

    (@enej)

    @ronymehta Do you understand what the esc_url function does?
    Can you explain how that solved the problem?

    I did the edit too and it does work. I don’t know why, maybe esc_url_raw would work? just a guess. let us know

    Hello enejb
    you know about more about the user-avatar plugin please contact my email id [email protected]

    Plugin Contributor Enej Bajgori?

    (@enej)

    I think it might have to do something with the file name that you used as the image. The new user avatar doesn’t rely on that since the avatar images are rendered using a modified timthumb script.
    I will have to investigate the difference between raw and the regular one. Thanks for pointing that out.

    @ronymehta what do you want to email about?

    Cheers Enej

    Hello enejb
    esc_url is deleted some url variale that the resoan we cnt use esc_url in that case
    you know about more in that pleas tell me i would more interest in wordpress

    Plugin Contributor Enej Bajgori?

    (@enej)

    After some googleing I found that
    its a better to use esc_url_raw which might solve some problems
    https://www.ads-software.com/support/topic/clean_url-vs-sanitize_url-vs-esc_url-vs-esc_url_raw?replies=2

    Thanks for helping debug this issue @ronymehta. =)

    Welcome enejb.
    i want to add file upload option in register redux plus
    What to do in ?
    if i need your help i ll contact you.

    Hello enejb,

    your esc_url_raw function not work for upload photo.
    When we upload photo they called physical path like ‘c:/wamp/www/wpcms/upload/..’ this url not working for esc_url() or esc_url_raw() function . please remove the esc_url or esc_url_raw function for when uploading the image .

    May esc_url_raw() function work on linux machine but its not work on windows machine. please changes you reg_expresion for suitable url

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[ Plugin: User Avatar] Sorry, No file available’ is closed to new replies.