Announcement

  •  » Extensions
  •  » AStats: Error message after update to 2.4.5

#1 2018-02-14 12:41:36

chris7
Member
2018-02-14
2

AStats: Error message after update to 2.4.5

Hello everyone

After upgrading my AStats extension to version 2.4.5, I get the following error message:

Code:

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

Code:

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

 

#2 2018-02-14 17:41:09

erAck
Member
2015-09-06
141

Re: AStats: Error message after update to 2.4.5

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)


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2018-02-15 12:38:20

chris7
Member
2018-02-14
2

Re: AStats: Error message after update to 2.4.5

Thanks a lot. I copied the tpl files to the admin folder and everything is working fine.

Offline

 
  •  » Extensions
  •  » AStats: Error message after update to 2.4.5

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2018 · Contact