This topic is locked
[SOLVED]

 Chart not displayed on public server

6/13/2020 7:46:44 AM
PHPRunner General questions
J
JPullich author

Hi
I am trying to add a set of charts to my solution (created with PHPRunne 9.8) showing some statistic.

Everything is working just fine when tested in my sandbox, but charts are not displayed when the solution is published on a public web server.

The rest of the solution is working perfectly and the DB's are containing the right data for the charts. The data is used elsewhere for calculations stuff.

No error message or anything, the page is showing menu and other stuff, and simply a blank space where the chart was supposed to be.
Any idea what to check on the public server? Restrictions maybe?
Regards

Jan

fhumanes 6/13/2020



Hi
I am trying to add a set of charts to my solution (created with PHPRunne 9.8) showing some statistic.

Everything is working just fine when tested in my sandbox, but charts are not displayed when the solution is published on a public web server.

The rest of the solution is working perfectly and the DB's are containing the right data for the charts. The data is used elsewhere for calculations stuff.

No error message or anything, the page is showing menu and other stuff, and simply a blank space where the chart was supposed to be.
Any idea what to check on the public server? Restrictions maybe?
Regards

Jan



This has come up on other occasions.

I think I remember that it was the PHP version.

Cheers

Admin 6/13/2020

This can be an issue with newer version of PHP like PHP 7.3 or 7.4.
First - you need to find the error message behind the scene. Check this article that can help you find the error message:

https://xlinesoft.com/phprunner/docs/troubleshooting_charts.htm

J
JPullich author 6/14/2020



This has come up on other occasions.

I think I remember that it was the PHP version.

Cheers


Thanks.

I notised that my sandbox is running PHP 7.1.25 and the production server is running 7.2.31 but I did not think this could case a problem.

J
JPullich author 6/14/2020



This can be an issue with newer version of PHP like PHP 7.3 or 7.4.
First - you need to find the error message behind the scene. Check this article that can help you find the error message:

https://xlinesoft.com/phprunner/docs/troubleshooting_charts.htm


My sandbox is running PHP 7.1.25 and the production server is running 7.2.31.

I followed the guide and found this:
php Error
Teknisk information

Fejl type 8192

Fejl forklaring The each() function is deprecated. This message will be suppressed on further calls

URL test.rottestop.com/dchartdata.php?chartname=historian_service

Fejl fil /var/www/rottestop.com/test/include/xml.php

Fejl linie 43

SQL forespørgelse
So maybe PHPrunner 9.8 support PHP 7.1 but not 7.2?
Regards

Jan

Admin 6/15/2020

PHPRunner 9.8 was released before PHP 7.2 so it doesn't fully support it.

J
JPullich author 6/15/2020



PHPRunner 9.8 was released before PHP 7.2 so it doesn't fully support it.


I got DevOps to create as copy og the production site with PHP 7.1 and it worked just fine.

The solution must be to upgrade PHPRunner to 10.4 then <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=91712&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' />