Hi
i've successfully set up Piwigo in latest version 2.8.5 and wanted to use AStat.2 for a little more information.
Installation and Activation went fine, but once i'm using it, the following error is shown:
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 /homepages/40/xxx/htdocs/netroot/plugins/AStat/astat_aip.class.inc.php on line 21
Warning: Cannot modify header information - headers already sent by (output started at /homepages/40/xxx/htdocs/netroot/plugins/AStat/astat_aip.class.inc.php:21) in /homepages/40/xxx/htdocs/netroot/include/page_header.php on line 101
I receive the same error during activation of Advanced Menu Manager only the files are different.
Any idea how to fix that?
(Note: I've replace my full server path with 'xxx')
Many thanks in advance
Offline
those are not critical errors, you can hide them.
put this in your config
$conf['show_php_errors'] = E_ALL ^ E_DEPRECATED ^ E_WARNING ^ E_NOTICE;
Offline
Hi,
thanks for quick reply.
This removed the messages :)
Last edited by volkskamera (2017-01-05 09:07:54)
Offline
PHP7-Error ...
AMM is apparently not further developed ... it is only a tiny change in two source files.
=> http://de.piwigo.org/forum/viewtopic.php?id=988 <- German-Forum - Last Post from me.
AStat.2:
exactly the same solution (but only one source files)
Open: astat_aip.class.inc.php
Find: AStat_AIP($prefixeTable, $filelocation)
Change to: public function __construct($prefixeTable, $filelocation)
I have problem to "hide" problems ... thats not really a solution ... deprecated and will be removed in the future ... you hide the error ... And why plugin xyz does not work anymore? Or you install a new (but old) Plugin ... it doesn't work - why? Find the error, fix them - is mostly the better way ;) ... With these two plugins the solution is very easy ...
Is AStat.2 dead?
Offline
The solution to add the line to the config works for me. Maybe not the perfect way, but i can live with it.
Offline
WuppiGER wrote:
you hide the error ... And why plugin xyz does not work anymore? Or you install a new (but old) Plugin ... it doesn't work - why?
you have a problem in your logic.
when PHP would not support this anymore will throw a fatal error not a deprecated error. E_ALL or E_ERROR type or errors are not hidden in that config.
P.S. but like you say fixing is better then hiding.
Offline
I agree, the issue should be "fixed" instead "hidden".
But it depends if it's a critical error or just a "cosmetic" question.
Nevertheless a "cosmetic" issue can turn to a critical one if nobody is taking care.
A "fix" can also be removing the plugin and changing to an external solution for stats ;)
Offline
volkskamera wrote:
A "fix" can also be removing the plugin and changing to an external solution for stats ;)
to be honest that's the best solution: try Piwik
Offline
flop25 wrote:
volkskamera wrote:
A "fix" can also be removing the plugin and changing to an external solution for stats ;)
to be honest that's the best solution: try Piwik
Already set up ;)
Offline