Hello/Hi/Greetings,
I'm having trouble getting plugins to work (OpenID in this case but really any of the Auth plugins). I'm getting errors like:
Username
<br /><b>Warning</b>: Undefined array key
/config/www/_data/templates_c/p6jhns^debe8d3bf157a8d14a6ff3aa7c9af8fad9eace87_0.file.config.tpl.php on line 84
Warning: Attempt to read property "value" on null in /config/www/_data/templates_c/p6jhns^debe8d3bf157a8d14a6ff3aa7c9af8fad9eace87_0.file.config.tpl.php on line 84
">
Password
•••••••••••••••••••••••••••••••••••••••••••
/config/www/_data/templates_c/p6jhns^debe8d3bf157a8d14a6ff3aa7c9af8fad9eace87_0.file.config.tpl.php on line 91
Warning: Attempt to read property "value" on null in /config/www/_data/templates_c/p6jhns^debe8d3bf157a8d14a6ff3aa7c9af8fad9eace87_0.file.config.tpl.php on line 91
I'm using Docker containers which works fine otherwise, just can't get the plugins to respond without errors. Any thoughts?
Environment:
Piwigo 14.3.0 Check for upgrade
Installed on 17 March 2024, 4 hours in the future
Operating system: Linux
PHP: 8.3.4 (Show info) [2024-03-17 14:39:15]
MySQL: 11.3.2-MariaDB-1:11.3.2+maria~ubu2204 [2024-03-17 19:39:15]
Graphics Library: ImageMagick 7.1.1-26
Cache size N/A never calculated Refresh
Activated plugin list1
OpenId Connect
docker-compose.yml:
piwigodb:
image: mariadb:latest
container_name: piwigodb
environment:
MYSQL_ROOT_PASSWORD: <password>
MYSQL_DATABASE: piwigo
MYSQL_USER: piwigo_user
MYSQL_USER_PASSWORD: <password>
PUID: 0
GUID: 0
hostname: piwigodb
ports:
- 3306:3306
networks:
- photonet
volumes:
- /opt/piwigodb/data:/var/lib/mysql
- /opt/piwigodb/config:/etc/mysql/conf.d
piwigo:
image: linuxserver/piwigo:14.3.0
container_name: piwigo
environment:
- PUID=1000
- PGID=1000
- TZ=America/Chicago
depends_on:
- piwigodb
networks:
- photonet
ports:
- 8888:80
volumes:
- /opt/piwigo/config:/config
- /opt/data/photos:/gallery
Offline
Hi :-)
Can you give me the content of lines 84 and 91 in your file
Offline
Thanks! Here you go:
Line 84: <input form="test_pass" type="text" name="password_test_user" id="password_test_user" value="<?php echo $_smarty_tpl->tpl_vars['password_test_user']->value;?>
Line 91: <input form="test_pass" type="password" name="password_test_pass" id="password_test_pass" value="<?php echo $_smarty_tpl->tpl_vars['password_test_pass']->value;?>
Note: I think I got the openid plugin working except the username appears as the UID instead of the name: Username 2a7eec44-82ba-4748-a005-f603083bd3b6
Do I need to open up another issue for this? The Warnings still appear in the plugin page but the authentication seems to work now with my Authelia instance. Any way to have the actual username appear?
I really appreciate your time!
Offline
Hi :-)
Plugin release ?
Offline
Hi :-)
[Github] PiwigoOpenIdConnect file template/config.tpl
line 84 > <label for="password_reset_url">{'Password reset URL'|translate}</label>
line 91 > <input type="text" size=50 name="registration_url" id="registration_url" value="{$registration_url}">
can you dowload original file and replace and purge compil template
Offline