Page 1 of 1

Avatar profilo non compare

Posted: Wed Jun 28, 2023 5:56 pm
by matman
Buongiorno
l'immagine dell'avatr profilo non mi esce, ma mi da in nome utente (alt)

il link dell'immagine è un percorso errato

Code: Select all

<img src="miodominio.it//files/appCore/photo/11839a_28_1687958050" alt="Nome Utente">
nel file profile.html.twig ho trovato il codice da cui genera URL

Code: Select all

                <picture class="header__profile__picture">

                    {% if user.hasAvatar() %}
                        <img src="{{ user.getAvatar() }}" alt="{{ user.getUserName() }}">
                    {% else %}
                        <img src="{{ Get_getTemplatePath() }}static/images/icons/top-menu/icon--profile.svg" alt="{{ user.getUserName() }}">
                    {% endif %}
                </picture>
se cancello l'immagine progilo all'utente mi compare correttamante immagine svg

mentre caricando qualsiasi formato immagine png, jpg mi da errore

ho installato forma.lms su un VM Ubuntu di Azure
uso ISPConfig3
il server ha queste impostazioni
Server software: Apache

MySQL information
sql vers: 5.5.5-10.6.12-MariaDB-0ubuntu0.22.04.1
sql mode: NO_ENGINE_SUBSTITUTION
sql encoding: utf8mb4
sql collation: utf8mb4_general_ci
sql timezone: SYSTEM


Info about PHP
PHP version: 7.4.33
Site Timezone: UTC
"safe_mode" configuration: Off
Configuration of "register_global": Off
Configuration of "magic_quotes_gpc": Off
Configuration of "upload_max_filesize": 28M
Configuration of "post_max_size": 18M
Configuration of "max_execution_time": 60s
LDAP: Off Consider this parameter only if you need to authenticate through LDAP
Configuration of "allow_url_include": Off
PHP extension php_openssl: On
Configuration of "allow_url_fopen": On
come correggo errore? grazie

Re: Avatar profilo non compare

Posted: Wed Jun 28, 2023 6:02 pm
by alfa24
È un bug, le estensioni vengono perse.

Re: Avatar profilo non compare

Posted: Wed Jun 28, 2023 8:41 pm
by max
Non mi risulta, su tutte le ns installazioni l'immagine del profilo appare correttamente

Re: Avatar profilo non compare

Posted: Thu Jun 29, 2023 12:49 pm
by matman
Risolto.
Semplicemente non avevo messo l'indirizzo compreso di htts:// in Configurations > Main options > Website URL with final /
;)