• You are using a filter that that is triggering not only on the plugin related parts:
    add_filter(‘wp_handle_upload_prefilter’, array($this, ‘wpua_handle_upload_prefilter’));

    So it affects other wordpress functionality. For example in a host with nginx and HHVM where ini_get(‘post_max_size’) isn’t set you are getting a wrong max upload file size of 0 and that won’t affect only your logic where you are checking if the file size is greater than the limit set in the plugin settings for subscribers.

    I suggest you somehow check if is a plugin action or page when adding the filter so it won’t change other wp logic or plugins. The problem is that in wpua_handle_upload_prefilter function you are doing a simple return; causing the handle upload function to remove all the data about the $file uploaded .

    I think it is a big thing and consider adding a fix when you can. Other than that I like the plugin very much but just spent almost a day debugging why people can’t upload files for a week or so 🙂

    Cheers.

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

The topic ‘Problem in login’ is closed to new replies.