Announcement

#1 2021-11-13 02:46:56

flederohr
Member
2021-11-13
2

Piwigo 12.1.0 Copyrights plugin issue with smarty

Greetings,

After the migration to piwigo version 12.1.0 I noticed following php errors

Code:

Warning: Parameter 2 to copyrights_add_to_pic_info() expected to be a reference, value given in /var/www/htdocs/include/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php on line 63
Warning: Parameter 2 to CR_batch_single() expected to be a reference, value given in /var/www/htdocs/include/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php on line 63
Warning: Parameter 2 to CR_modify() expected to be a reference, value given in /var/www/virtual/web41665.pfweb.eu/flederohr.de/gallerie/htdocs/include/smarty/libs/sysplugins/smarty_internal_runtime_filterhandler.php on line 63

The methods are from the Copyrights plugin

I found a related topic: Piwigo 12, Smarty 3.1.39 and prefilters

These are the places that need to be updated to fix the problem in the Copyrights plugin:

copyrights_add_to_pic_info()

Code:

- function copyrights_add_to_pic_info($content, &$smarty)
+ function copyrights_add_to_pic_info($content)

CR_batch_single()

Code:

- function CR_batch_single($content, &$smarty)
+ function CR_batch_single($content)

CR_modify()

Code:

- function CR_modify($content, &$smarty)
+ function CR_modify($content)

Last edited by flederohr (2021-11-13 03:07:34)

Offline

 

#2 2021-11-13 03:13:18

flederohr
Member
2021-11-13
2

Re: Piwigo 12.1.0 Copyrights plugin issue with smarty

I found similar issues with the FCKEditor plugin

FCKEditor/fckeditor.php (lines 98 - 113)

Code:

FCKEditor/fckeditor.php:function add_remove_button($content, &$smarty)
FCKEditor/fckeditor.php:function add_remove_button_stuffs($content, &$smarty)
FCKEditor/fckeditor.php:function add_remove_button_banner($content, &$smarty)

Last edited by flederohr (2021-11-13 03:16:42)

Offline

 

#3 2021-11-13 12:26:47

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

Re: Piwigo 12.1.0 Copyrights plugin issue with smarty

Juste released a new version 12.a for [extension by J.Commelin] Copyrights

Offline

 

Board footer

Powered by FluxBB

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