• Resolved berndg17

    (@berndg17)


    Hello Mateusz,

    we use the forum plugin WPForo on our website, which usually runs smoothly and well. There we recently noticed that users can’t change avatars and we also could not do it for users – even when removing the old images from the server via ftp, they magically came back instead of the new image. Even if I gave the new image the name of the old one, the new image was not accepted.

    After a long search we found out that the problem does not occur when WebP Converter for Media is disabled. Do you possibly have a hint where we can look for this error? Of course I don’t want to miss WebP Converter for Media.

    Thanks for caring,

    Bernd

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @berndg17,

    Thanks for your message.

    Can you give me an example URL for such an avatar?

    Best,
    Mateusz

    Thread Starter berndg17

    (@berndg17)

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @berndg17 Thanks! If you delete the file cairni_767.jpg from FTP, it still comes back – right?

    Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    @berndg17 I already know what the problem is. The filename is always a combination of username and user ID. If you change the avatar, the file has the same name all the time. If you add a new image, my plugin has no information that the avatar has changed.

    I suggest you delete the directory:
    /wp-content/uploads-webpc/uploads/wpforo/

    Also add the following code in the functions.php file in your theme directory:

    add_filter( 'webpc_supported_source_directory', function( bool $status, string $directory_name, string $server_path ): bool {
    	$excluded_directories = [ 'wpforo' ];
    	if ( ! $status || in_array( $directory_name, $excluded_directories ) ) {
    		return false;
    	}
    
    	return $status;
    }, 10, 3 );

    This excludes converting images generated by wpForo plugin.

    Thread Starter berndg17

    (@berndg17)

    Thanks again for caring – I will try out a little later today and report. And yes, the image comes back magically 🙂

    Thread Starter berndg17

    (@berndg17)

    Hi Mateusz,

    thank you so much for caring – it works! That’s real support …

    Yours, Bernd

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Conflict with WPForo’ is closed to new replies.