Announcement

  •  » Extensions
  •  » PHP errors on using AStat.2 and Advanced Menu Manager

#1 2017-01-05 06:48:46

volkskamera
Member
2016-12-24
12

PHP errors on using AStat.2 and Advanced Menu Manager

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

 

#2 2017-01-05 07:49:04

eliz82
Member
Romania
2016-04-27
281

Re: PHP errors on using AStat.2 and Advanced Menu Manager

those are not critical errors, you can hide them.
put this in your config

Code:

$conf['show_php_errors'] = E_ALL ^ E_DEPRECATED ^ E_WARNING ^ E_NOTICE;

Offline

 

#3 2017-01-05 09:05:51

volkskamera
Member
2016-12-24
12

Re: PHP errors on using AStat.2 and Advanced Menu Manager

Hi,

thanks for quick reply.
This removed the messages :)

Last edited by volkskamera (2017-01-05 09:07:54)

Offline

 

#4 2017-01-05 10:46:55

WuppiGER
Member
Germany
2016-05-31
38

Re: PHP errors on using AStat.2 and Advanced Menu Manager

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

 

#5 2017-01-05 11:25:20

volkskamera
Member
2016-12-24
12

Re: PHP errors on using AStat.2 and Advanced Menu Manager

The solution to add the line to the config works for me. Maybe not the perfect way, but i can live with it.

Offline

 

#6 2017-01-05 11:59:37

eliz82
Member
Romania
2016-04-27
281

Re: PHP errors on using AStat.2 and Advanced Menu Manager

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

 

#7 2017-01-07 08:04:45

volkskamera
Member
2016-12-24
12

Re: PHP errors on using AStat.2 and Advanced Menu Manager

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

 

#8 2017-01-09 09:48:59

flop25
Piwigo Team
2006-07-06
7037

Re: PHP errors on using AStat.2 and Advanced Menu Manager

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


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#9 2017-01-18 17:31:09

volkskamera
Member
2016-12-24
12

Re: PHP errors on using AStat.2 and Advanced Menu Manager

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

 
  •  » Extensions
  •  » PHP errors on using AStat.2 and Advanced Menu Manager

Board footer

Powered by FluxBB

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