Non génération des statistiques

Post Reply
guillaume.guerin
Posts: 18
Joined: 03 Feb 2018, 10:43

Non génération des statistiques

Post by guillaume.guerin »

Dans les statistiques, les rapports ne sont pas générés. Le sablier reste en permanence.
la page graphe_users.php ne génére pas l'image;

Ci dessous la réponse 200 de graphe_users.php :

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; GroupBarPlot has a deprecated constructor in /var/www/html/jpgraph/src/jpgraph_bar.php on line 679

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; LinePlot has a deprecated constructor in /var/www/html/jpgraph/src/jpgraph_line.php on line 24
JpGraph Error: HTTP headers have already been sent.
Caused by output from file jpgraph_bar.php at line 679.
Explanation:
HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).

Most likely you have some text in your script before the call to Graph::Stroke(). If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser.

For example it is a common mistake to leave a blank line before the opening "<?php".
guillaume.guerin
Posts: 18
Joined: 03 Feb 2018, 10:43

Re: Non génération des statistiques

Post by guillaume.guerin »

La mise à jour de jpgraph en version 4.2 résout mon problème.

25 Jan: JpGraph-4.2.0 (4.2.0)
Supported PHP7.2
guillaume.guerin
Posts: 18
Joined: 03 Feb 2018, 10:43

Re: Non génération des statistiques

Post by guillaume.guerin »

ça ne résout que partiellement la génération en échelle semaine ne marche pas

Notice: Undefined index: S22 2018 in /var/www/html/www/graphe_users.php on line 105

Warning: array_key_exists() expects parameter 2 to be array, null given in /var/www/html/www/graphe_users.php on line 105
JpGraph Error: HTTP headers have already been sent.
Caused by output from file graphe_users.php at line 105.
Explanation:
HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).

Most likely you have some text in your script before the call to Graph::Stroke(). If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser.

For example it is a common mistake to leave a blank line before the opening "<?php".
soplanning
Site Admin
Posts: 388
Joined: 31 Aug 2017, 15:58

Re: Non génération des statistiques

Post by soplanning »

Bonjour
Il faudrait que l'on puisse creuser avec vos données.
il est fort probable qu'un cas particulier n'a pas été identifié et fait planter la génération des stats.
N'hésitez pas à nous contacter sur support@soplanning.org
merci
Post Reply