Page 1 of 1

T_SCRIPT error when loging in

Posted: Sun Sep 11, 2011 11:15 am
by b1draper
Script URL: www.drapertechnologies.net/hesk
Version of script: 2.2
Hosting company: Godaddy
URL of phpinfo.php: http://www.drapertechnologies.net/hesk/phpinfo.php
URL of session_test.php: http://www.drapertechnologies.net/hesk/session_test.php
What terms did you try when SEARCHING for a solution: T-STRING and Line 72

Write your message below: When I attempt to login to the site I get the following error regardless of the account I use. The second error appears at the bottom of every page. Does anyone have any suggestions?

Error1:
Parse error: syntax error, unexpected T_STRING in /home/content/23/6773223/html/hesk/admin/admin_main.php on line 72

Error2:
Warning: Unterminated comment starting line 2 in /home/content/23/6773223/html/hesk/inc/footer.inc.php on line 2

Fatal error: fatal flex scanner internal error--end of buffer missed in /home/content/23/6773223/html/hesk/inc/footer.inc.php on line 2

Re: T_SCRIPT error when loging in

Posted: Sun Sep 11, 2011 2:45 pm
by Klemen
The short version: run away from GoDaddy hosting and find a serious hosting company.

The long version:

It seems that GoDaddy started deleting or truncating files that have base64 encoded code inside. The code is used to handle licensing, but some PHP shell (hacking) script use the same technique to hide source and hence some anti-virus software falsely flags any encoded PHP code as a potential flag.

Contact GoDaddy, they should be able to confirm that admin_main.php and footer.inc.php don't actually contain any malicious code and hopefully add it to their exception list.

Re: T_SCRIPT error when loging in

Posted: Tue Sep 13, 2011 9:41 am
by b1draper
I contacted the Godaddy support and advised them of your suggestion. I got the following response stating that they're not preventing anything from running and that I have an issue with the coding of the script. So can you please double check those lines of code?

<quote>Dear Brian,

Our malware scanning does not interfere with the functioning of your web scripting. You would need to correct the PHP errors that are being reported.

Please let us know if we can assist you in any other way.

Sincerely,

Paul P.
Online Support Team
</quote>

Re: T_SCRIPT error when loging in

Posted: Tue Sep 13, 2011 2:19 pm
by Klemen
They are not interfering with the script directly, but their malware scanner deletes files (complete or partially) and the corrupted files are causing errors.

You can verify this by comparing file footer.inc.php on your server with the one included in Hesk download. The one on the server should be smaller and not contain a lot of the code.