Hello everyone
After upgrading my AStats extension to version 2.4.5, I get the following error message:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; AStat_AIP has a deprecated constructor in /Sites/Default/plugins/AStat/astat_aip.class.inc.php on line 21
Fatal error: Uncaught --> Smarty: Unable to load template file '/Sites/Default/plugins/AStat/admin/astat_by_period.tpl' <-- thrown in /Sites/Default/include/smarty/libs/sysplugins/smarty_internal_template.php on line 139
The first error does not seem to be the show stopper at the moment but the smarty error is stopping the extension to load.
I already deleted existing (compiled) templates with no luck.
Thanks a lot for your help.
Piwigo version: 2.9.2
PHP version: 7.1.7
MySQL version: 5.7.18
Last edited by chris7 (2018-02-14 12:42:38)
Offline
No problem here. The deprecated warning likely is due to PHP 7.1 and the extension using such functionality that will cease to exist in some future version of PHP.
Make sure the file plugins/AStat/admin/astat_by_period.tpl exists and has read permissions for your web server user. The file is distributed with the extension so should be there (it is here and new from Feb-9 after upgrading), if not compare with and unpack/install from the extension's .zip
Last edited by erAck (2018-02-14 17:42:02)
Offline
Thanks a lot. I copied the tpl files to the admin folder and everything is working fine.
Offline