Avatar profilo non compare

Installazione, configurazione generale, notifiche, API, lingue, problemi server
Post Reply
User avatar
matman
Newbie
Posts: 2
Joined: Tue Apr 05, 2022 9:43 am

Avatar profilo non compare

Post 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
Last edited by matman on Wed Jun 28, 2023 6:09 pm, edited 1 time in total.
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: Avatar profilo non compare

Post by alfa24 »

È un bug, le estensioni vengono perse.
Per supporto GRATUITO contattatemi in privato qui
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Avatar profilo non compare

Post by max »

Non mi risulta, su tutte le ns installazioni l'immagine del profilo appare correttamente
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
User avatar
matman
Newbie
Posts: 2
Joined: Tue Apr 05, 2022 9:43 am

Re: Avatar profilo non compare

Post by matman »

Risolto.
Semplicemente non avevo messo l'indirizzo compreso di htts:// in Configurations > Main options > Website URL with final /
;)
Post Reply