• Resolved nmarleau

    (@nmarleau)


    Hi, I’m currently using the last update of the plugin and wordpress. The problem is when a subscribers or contributors try to upload a image from the page profil of my site it doesn’t work, after hitting the upload button, the page refresh and nothing happen, but if they are doing it in the wp-admin it’s all working working. I even create a new empty wordpress locally on my computer to test plugin conflict but nothing change and same problem occur. What can cause all this ?

    thanks for the help!

    https://ww.wp.xz.cn/plugins/wp-user-avatar/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Are you using the shortcode [avatar_upload] or your own profile form? Your form must have enctype="multipart/form-data" for the upload to process.

    Thread Starter nmarleau

    (@nmarleau)

    Hi, i have follow this to create my page. Lets say for now that i did not use [avatar_upload] and enctype=”multipart/form-data” what should i do next ?

    I’m not sure I understand you. Did you add enctype=”multipart/form-data” to your form? You would add it here:

    <form method="post" id="adduser" action="<?php the_permalink(); ?>" enctype="multipart/form-data">

    Thread Starter nmarleau

    (@nmarleau)

    I add the same thing you give me and it is not working.

    I tried out the code from the link that you provided, and it worked fine for me. There are a couple of errors in the form, but it didn’t prevent my avatar from uploading. However, try removing both of these lines and see if that makes a difference:

    Line 14 in the “head” section:
    require_once( ABSPATH . WPINC . '/registration.php' );

    Line 46 in the “loop” section:
    <?php echo $referer; ?>

    Thread Starter nmarleau

    (@nmarleau)

    Thanks Bangbay Siboliban, removing those two line make it work

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘upload button not working’ is closed to new replies.