Page 1 of 1

Install error - Admin_main.php

Posted: Sat Sep 10, 2011 5:23 pm
by gmerch
Script URL: http://www.pcbasics.biz/helpdesk/admin/admin_main.php
Version of script: 2.2
Hosting company: GoDaddy.com
URL of phpinfo.php: http://www.pcbasics.biz/phpinfo.php
URL of session_test.php: http://www.pcbasics.biz/session_test.php
What terms did you try when SEARCHING for a solution: "Unexpected character in input"

Write your message below:

I use hesk on a hosted server with you and wanted to try it on another website using the self-hosted option. I installed Hesk according to the Readme. Everything worked fine. I entered a ticket and it worked like it should. When I try to log into the helpdesk as Admin, I get:

Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /home/content/45/8351045/html/helpdesk/admin/admin_main.php on line 76

Parse error: syntax error, unexpected '<' in /home/content/45/8351045/html/helpdesk/admin/admin_main.php on line 77


I double-checked the file/folder permissions; I made sure to upload the IMG in binary and the rest in ASCII. I'm sure I'm missing something but any light you can shed on this would be great. I can't wait for 2.3 and want to get this resolved quickly so I can go ahead and get the new version up and running for next week.

Thanks for all of your help.

Glen

Re: Install error - Admin_main.php

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: Install error - Admin_main.php

Posted: Sun Sep 11, 2011 3:29 pm
by gmerch
Thanks for the speedy reply. I just put in a support ticket with them. We'll see if they can square it away or if I have to find a new host...

Re: Install error - Admin_main.php

Posted: Mon Sep 12, 2011 7:26 pm
by gmerch
http://pcbasics.biz/helpdesk/phpinfo.php
http://pcbasics.biz/helpdesk/session_test.php

I have moved website over to JustHost.com and am getting a different error now.

Parse error: syntax error, unexpected ';' in /home/pcbasic1/public_html/helpdesk/hesk_settings.inc.php on line 26

The install started to go through ok but as soon as I try to get to pcbasics.biz/helpdesk/admin I get that error.

Sorry to be a pain. Hopefully this will be a quick resolution.

Glen

Re: Install error - Admin_main.php

Posted: Tue Sep 13, 2011 2:17 pm
by Klemen
Send me a copy of your hesk_settings.inc.php file in a private message and I will have a look (don't post it here for security reasons).

Re: Install error - Admin_main.php

Posted: Tue Sep 13, 2011 4:54 pm
by gmerch
You're awesome, Klemen! Those changes worked perfectly and it's now up and running. Thank you so much for your speedy replies...