Page 1 of 1

Blank pages on refresh when changes made in admin backend

Posted: Fri Apr 09, 2010 3:57 pm
by SkySurfer
Hi,

First of all - BRILLIANT script! As soon as this message is posted, I am heading to your main site to buy a license via Paypal :)

I do however, have a small problem I am struggling to get to grips with...

So far I have succesfully "wrapped" hesk into an i-frame within a Joomla site and all is working well from the user point of view.

I discovered yesterday that when attempting to login to the admin section, my user/pass seems to be accepted but then the site just refreshes to a blank screen - (not happened previously).

If i then type www.domain.com/hesk/admin/admin_main.php into my browser, I can get full access to the backend again.

BUT, when I change something (example: open a ticket and then change its priority and hit "change), the page refreshes to a blank screen again.
Going "back" will get me back to the ticket, and then hitting "Home" will show me the Home menu and the message that the ticket has been updated ok.

So, it would appear that the requested functions are taking place, it is just not redirecting me correctly when applying the changes ?

I admit, I have made changes to various files to accommodate my requirements, but I am pretty sure I have not altered any of the admin directory files (if that is where the problem lies?)

To be sure though, I have re-uploaded the admin directory again (seen suggested elsewhere), but this has had no effect.

Any ideas would be gratefully received :)

Regards

Alistair.

P.S - Apologies for the long winded post... off to get that license now ! :)

Posted: Fri Apr 09, 2010 6:15 pm
by Klemen
It's hard to troubleshoot problems without any insight into the error. Try enabling debug mode in the setting then see if you get any error messages instead of a blank screen.

Posted: Fri Apr 09, 2010 10:27 pm
by SkySurfer
I seem to have narrowed down the problem at this end....

Apparently I did make some changes to common.inc.php late last night while trying to format the error code that appears when trying to retrieve an incorrect ticket code :oops:

Basically, to make Hesk fit within the iframe wrapper I am using within Joomla, I need to format the error table either to 100%, or alternatively to something like 450px instead of 600.

I also need to remove the SITE_URL code from the breadcrumb pathway otherwise if it is clicked on, clients will get a full version of the site appearing within the iframe.

Finally, I also need to remove the call for the images at the edge of the header to blend with my site design (img/headerleftsm.jpg & img/headerrightsm.jpg).

I have managed to make these small mods in other areas (the standard pages) without a problem, but whenever I change anything at all in the common.inc.php file, the backend admin problems occur.
Even just changing the table format from width="600" to width="100%" or width="450" causes the problems to kick-in :(

Is there any way I can get around this problem ?

Thanks again for your help Klemen.

http://www.fleetclean.net

Posted: Sat Apr 10, 2010 11:43 am
by Klemen
Have you tried enabling the debug mode?

Changing table width has nothing to do with PHP code. The problem might simply be that your editor is saving the common.inc.php file in for example utf-8 format; this adds some bytes at the start of the php file and breaks PHP headers.

Posted: Sat Apr 10, 2010 2:05 pm
by SkySurfer
Thanks Klemen - You are indeed a star !

The problem was being caused by exactly what you suspected it was...
I edited the common.inc.php file in Notepad and it now all works perfectly.
I had no idea of particular editors being able to cause this problem previously....lesson learned :)

I have one final question for you if I may?

As promised, I purchased a license code yesterday and will be registering it soon.
My question is, I have one site but have approximately 15 different domains pointing at it - will one license work for all the domains or just the one I register the license against ?

Kudos once again on the script - it really is good!

Alistair.

Posted: Sat Apr 10, 2010 6:11 pm
by Klemen
The license works only for the domain it is registered for, but if all other domains just point to the same website you can send me a list of the domains along with your license key here and I will see what I can do:
http://www.hesk.com/contact.php