Page 1 of 1
Blank screen when opening client ticket
Posted: Wed May 03, 2017 8:48 am
by uwekas
Script URL: localhost
Version of script: 2.7.3
Hosting company: -
URL of phpinfo.php: -
URL of session_test.php: -
What terms did you try when SEARCHING for a solution: -
Write your message below:
Installed Hesk on my local server for customisation and testing, before installing it on a clients server. Mods for Hesk v 3.0.7 is installed as well. All is working fine, on the clients side, tickets can be opened, closed, replies added etc.
When opening a received ticket as admin I am getting a blank screen.
Debugger info:
I can't post the code here for whatever reasons, thus the image.
Any help is appreciated, thank you!
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 9:56 am
by Klemen
I haven't seen this before, but this is not an error that HESK generates and probably also not something your web server generates.
Are you using some very old version of Firefox (there seems to have been a similar bug quite a while ago)?
Do you get any different info if you turn "Debug mode" to ON in Hesk settings?
Do you get any more info in server error logs?
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 11:48 am
by uwekas
Thanks for your reply, Klemen!
I am using Firefox 52.0.2 on macOS Sierra. Tried it with Safari 10.0.1 as well, same result.
Also there is no different info if debug mode = on.
The console is showing me:
GET
http://localhost:8888/support/admin/admin_ticket.php [HTTP/2.0 500 Internal Server Error 964ms]
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 12:08 pm
by Klemen
This will need to be debugged from the server logs because the server is returning the error, not Hesk.
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 1:07 pm
by uwekas
Got the following info from the server logs:
PHP Parse error: syntax error, unexpected '[', expecting ')' in /home/public_html/support/admin/admin_ticket.php on line 473, referer:
http://localhost:8888/support/admin/admin_main.php
Line 473 reads:
$childRs = hesk_dbQuery('SELECT * FROM `' . hesk_dbEscape($hesk_settings['db_pfix']) . 'tickets` WHERE `parent` = ' . intval($ticket['id']) . ' AND `trackid` = \'' . hesk_dbEscape(hesk_POST(['childTrackingId'])) . '\'');
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 1:15 pm
by Klemen
This code isn't in original Hesk, I'm moving this to the "Mods for Hesk" subforum, maybe Mike knows more about this.
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 1:27 pm
by uwekas
Thank you very much Klemen!
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 1:45 pm
by mkoch227
This was reported earlier this morning on the MFH GitLab repo. Check out
https://gitlab.com/mike-koch/Mods-for-HESK/issues/560.
Re: Blank screen when opening client ticket
Posted: Wed May 03, 2017 2:38 pm
by uwekas
Thank you Mike, that was the solution.
Everything is working fine now!