New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaScript error in Status Monitor on FreeBSD server #13444

Closed
metacreo opened this Issue Jul 4, 2017 · 8 comments

Comments

Projects
None yet
3 participants
@metacreo

metacreo commented Jul 4, 2017

Steps to reproduce

Status > Monitor

Expected behaviour

should work monitor

Actual behaviour

image

A fatal JavaScript error has occurred. Would you like to send an error report?
Error: Token mismatch

Server configuration

Apache/2.4.26 (FreeBSD) OpenSSL/1.0.2k-freebsd PHP/7.1.6
Server: localhost (Localhost via UNIX socket)
Server type: MySQL
Server version: 5.5.56-log - Source distribution
Protocol version: 10
User: root@localhost
Server charset: UTF-8 Unicode (utf8)
Version information: 4.7.2 (up to date)
All just instaled
Status > Monitor:
A fatal JavaScript error has occurred. Would you like to send an error report?

Web server:
Apache/2.4.26
Database:
MySQL 5.5
PHP version:
7.1.6
phpMyAdmin version:
4.7.2 (up to date)

Client configuration

Browser:
All
Operating system:
FreeBSD 11
image

@ibennetch

This comment has been minimized.

Show comment
Hide comment
@ibennetch

ibennetch Jul 6, 2017

Member

I was unable to reproduce this with Firefox, maybe someone else will have better luck.

Did you upgrade from a previous version or is this a fresh install?

Member

ibennetch commented Jul 6, 2017

I was unable to reproduce this with Firefox, maybe someone else will have better luck.

Did you upgrade from a previous version or is this a fresh install?

@metacreo

This comment has been minimized.

Show comment
Hide comment
@metacreo

metacreo Jul 7, 2017

I have fresh install.
Option1: All software (mysql55-server, php56 + extensions and apache24) installed via pkg install
Option2 The same software compiled on server from freebsd ports
I tried using mariadb 10.2 instead mysql and php 5.6 insted php 7.1
Error still present in all combinations. Problem can start from freebsd 11 security mechanism. I need some time to inspect situation.

metacreo commented Jul 7, 2017

I have fresh install.
Option1: All software (mysql55-server, php56 + extensions and apache24) installed via pkg install
Option2 The same software compiled on server from freebsd ports
I tried using mariadb 10.2 instead mysql and php 5.6 insted php 7.1
Error still present in all combinations. Problem can start from freebsd 11 security mechanism. I need some time to inspect situation.

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Jul 12, 2017

Member

I can't reproduce this as well. Can you please open developer tools in browser (F12) and check network log to see which request has cause this?

Member

nijel commented Jul 12, 2017

I can't reproduce this as well. Can you please open developer tools in browser (F12) and check network log to see which request has cause this?

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Jul 17, 2017

Member

Any luck in figuring out more details?

Member

nijel commented Jul 17, 2017

Any luck in figuring out more details?

@nijel nijel self-assigned this Jul 17, 2017

@nijel nijel added the question label Jul 17, 2017

@metacreo

This comment has been minimized.

Show comment
Hide comment
@metacreo

metacreo Aug 28, 2017

no luck :( I have reinstalled web server and php to Apache/2.4.27 (FreeBSD) PHP/7.1.8 OpenSSL/1.0.2k-freebsd
nework log show all js is loaded
but in console I see
XMLHttpRequest deprication warning ( get_scripts.js.php:2130:12) and TypeError: chartObj is undefined

metacreo commented Aug 28, 2017

no luck :( I have reinstalled web server and php to Apache/2.4.27 (FreeBSD) PHP/7.1.8 OpenSSL/1.0.2k-freebsd
nework log show all js is loaded
but in console I see
XMLHttpRequest deprication warning ( get_scripts.js.php:2130:12) and TypeError: chartObj is undefined

@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Aug 28, 2017

Member

I guess that's related to server OS - the next three charts should be CPU, memory and swap utilization and those might be broken on FreeBSD...

Member

nijel commented Aug 28, 2017

I guess that's related to server OS - the next three charts should be CPU, memory and swap utilization and those might be broken on FreeBSD...

@nijel nijel changed the title from fatal JavaScript error in Status - Monitor to JavaScript error in Status Monitor on FreeBSD server Aug 28, 2017

@nijel nijel added bug and removed question labels Aug 28, 2017

nijel added a commit that referenced this issue Aug 29, 2017

Properly escape javascript variables
In case some variable name contains special chars, we should really
escape it.

Issue #13444

Signed-off-by: Michal Čihař <michal@cihar.com>

nijel added a commit that referenced this issue Aug 29, 2017

Use same OS name on client and server
Issue #13444 and #13628

Signed-off-by: Michal Čihař <michal@cihar.com>
@nijel

This comment has been minimized.

Show comment
Hide comment
@nijel

nijel Aug 29, 2017

Member

The chartObj error should be now fixed in git, see #13628, but I'm not really sure if that's root cause of problem you see here (as I was able to trigger that error, but I don't get the token error you see).

Anyway it would be great if you could test current git code.

Member

nijel commented Aug 29, 2017

The chartObj error should be now fixed in git, see #13628, but I'm not really sure if that's root cause of problem you see here (as I was able to trigger that error, but I don't get the token error you see).

Anyway it would be great if you could test current git code.

@metacreo

This comment has been minimized.

Show comment
Hide comment
@metacreo

metacreo Aug 30, 2017

After 2f04cda and f2cb155 all work !!! But only after add "require_once 'libraries/sysinfo.lib.php';" in server_status_monitor.lib.php because php say Uncaught Error: Call to undefined function PMA_getSysInfoOs()

I think You will assemble everything into one in the next release :)
Thanks....

metacreo commented Aug 30, 2017

After 2f04cda and f2cb155 all work !!! But only after add "require_once 'libraries/sysinfo.lib.php';" in server_status_monitor.lib.php because php say Uncaught Error: Call to undefined function PMA_getSysInfoOs()

I think You will assemble everything into one in the next release :)
Thanks....

@nijel nijel added this to the 4.7.5 milestone Aug 30, 2017

@nijel nijel closed this in 0e87292 Aug 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment