Hello,
I use WoltLab Suite Core 3.1.10 pl 2 on my website with user-friendly links (Apache 2). Everything is working fine except when I am in https://mysite.ir/user/1 and click on 'Avatar Management', it shows fatal error:
System Information
PHP Version:
7.3.9
WoltLab Suite Core:
3.1.10 pl 2
Peak Memory Usage:
4.392/128 MiB
Request URI:
/avatar-edit/
Referrer:
https://site.ir/user/1/
User Agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
Error
Error Type:
wcf\system\exception\SystemException
Error Message:
Template compilation failed: unexpected {/if} in template 'avatarEdit' on line 7
File:
*/lib/system/template/TemplateScriptingCompiler.class.php (356)
Alles anzeigen
I have checked avatarEdit.tpl template and I have not manually modified it, but I am not sure why I am getting this error.
These are the first seven lines of avatarEdit.tpl file:
{include file='userMenuSidebar'}
{include file='header' __disableAds=true __sidebarLeftHasMenu=true}
{if $__wcf->user->disableAvatar}
<p class="error">{lang}wcf.user.avatar.error.disabled{/lang}</p>
{/if}
I use custom language in my website which is my own translation, and English is disabled globally.
I have manually uploaded an avatar of my own user in ACP, but my future users would probably have the same problem.
Could you help me please how can I solve this?
Regards,
Saeed