Announcement

  •  » Extensions
  •  » Plugins and PHP8 (properties_mass_update for instance)

#1 2023-11-25 20:36:58

Criss
Former Piwigo Team
Calvi
2008-03-31
95

Plugins and PHP8 (properties_mass_update for instance)

Hello,

I installed Piwigo 13.8.0 on a PHP8 server.
It seems to work fine but there are still some error notice, specially in plugins.

For instance in "Properties Mass Update" 12.b

Code:

Warning: Attempt to read property "value" on null in /_data/templates_c/p6jhns^19bde44f813ef313e46f37f7cf3e968c5f051792_0.file.admin_update.tpl.php on line 29
" enctype="multipart/form-data">

This is because in the tpl file there is the use of {$F_ACTION} which is not set by PHP
There should be a review of the plugins, or set a default value such as

'F_ACTION'=>''

Criss


Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it !

Offline

 

#2 2023-11-26 13:25:36

k5
Member
2017-11-05
68

Re: Plugins and PHP8 (properties_mass_update for instance)

Hi
I see from GitHub https://github.com/plegall/Piwigo-prope … ate/pull/5

Last edited by k5 (2023-11-26 13:26:26)

Offline

 

#3 2023-11-26 13:41:20

Criss
Former Piwigo Team
Calvi
2008-03-31
95

Re: Plugins and PHP8 (properties_mass_update for instance)

Unfortunatly it's not the right fix, is has to be fixed in the php file

Code:

$template->assign(
    array(
      'level_options'=> get_privacy_level_options(),
      'level_options_selected' => array($selected_level),
      'F_ACTION'=>''
    )
  );

or remove the use of {$F_ACTION} in the tpl.


Signup and get your Piwigo photo gallery automatically installed and hosted. Help us to beta test it !

Offline

 

#4 2023-11-28 13:10:09

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13823

Re: Plugins and PHP8 (properties_mass_update for instance)

Criss wrote:

or remove the use of {$F_ACTION} in the tpl.

sounds better to me.

@k5 can you make another commit on your pull-request?

Offline

 
  •  » Extensions
  •  » Plugins and PHP8 (properties_mass_update for instance)

Board footer

Powered by FluxBB

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