#1 2024-03-17 20:43:37

wisekaonashi
Member
2024-03-17
4

PHP Errors

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

 

#2 2024-03-18 06:52:18

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7262

Re: PHP Errors

Hi :-)

Can you give me the content of lines 84 and 91 in your file


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2024-03-18 15:54:45

wisekaonashi
Member
2024-03-17
4

Re: PHP Errors

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

 

#4 2024-03-18 17:42:19

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7262

Re: PHP Errors

Hi :-)

Plugin release ?


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#5 2024-03-18 18:34:52

wisekaonashi
Member
2024-03-17
4

Re: PHP Errors

Hello,
OpenID Connect - Revision 1.0.4

Thx

Offline

 

Notice: Undefined offset: 5 in /var/www/piwigo.org/forum/include/parser.php on line 551

#6 2024-03-18 19:52:10

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7262

Re: PHP Errors

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


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#7 2024-03-19 18:05:45

wisekaonashi
Member
2024-03-17
4

Re: PHP Errors

Will do, thank you!

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact