Issues with time worked & ticket status not updating when...

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
SEEKNDESTROY427
Posts: 12
Joined: Thu Dec 27, 2007 3:04 pm

Issues with time worked & ticket status not updating when...

Post by SEEKNDESTROY427 »

Script URL: http://www.support.cp-autos.com
Version of script: 2.4.1
Hosting company: hostforweb.com
URL of phpinfo.php: http://www.cp-autos.com/support/phpinfo.php
URL of session_test.php: http://www.cp-autos.com/support/session_test.php
What terms did you try when SEARCHING for a solution: Time Worked, Ticket status not updating

Write your message below:
Issue #1 (Not important to me but thought you want to know): Time worked isn't starting when I either click the start button or check "Automatically start timer when I open a ticket". I've tested the feature in IE 9, Firefox 17.0.1 and Google Chrome 23.0.1271.97 m.

Issue #2 (Important): Every time I reply to a ticket and return to admin main, the status of the ticket is still the same as before I replied to it. In addition, my reply doesn't show up when I click on the ticket I replied in admin main. I have to refresh the browser for the status to change on the admin main page and for my reply to show up.

Again, I've tested it in IE 9, Firefox 17.0.1 and Google Chrome 23.0.1271.97 m.

Thank you for your time.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Issues with time worked & ticket status not updating whe

Post by Klemen »

Try deleting everything inside header.txt and footer.txt files and just test with these two files empty.

The thing is the code you have in your header/footer is almost certainly causing these problems.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
SEEKNDESTROY427
Posts: 12
Joined: Thu Dec 27, 2007 3:04 pm

Re: Issues with time worked & ticket status not updating whe

Post by SEEKNDESTROY427 »

Thank you for your quick reply.

Time worked is working with empty header and footer files. But there is still a problem with Issue #2 in my original post. The time the reply was posted is now correct when I return to the admin main page but I still have to reload the page after clicking the link to the ticket on the admin page I just replied to be able to view my latest reply.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: Issues with time worked & ticket status not updating whe

Post by Klemen »

The second issue is probably caching-related. Replies obviously do get added (as they appear when you reload), your browser (or server) is just displaying old code.

I'm not 100% sure, but it could be due to your session caching. Your server has session caching "session.cache_limiter" set to "private_no_expire", but it should be "nocache" to prevent caching of session data.

Check with your host if they can disable session caching for you (at least for the support folder).

Or, you can try disabling it manually by creating a text file called ".htaccess" in the support folder and placing this inside:

Code: Select all

php_value session.cache_limiter "nocache"
You will know if it worked when you open your phpinfo.php file in browser, find session.cache_limiter and see if "Local value" says "nocache".
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
SEEKNDESTROY427
Posts: 12
Joined: Thu Dec 27, 2007 3:04 pm

Re: Issues with time worked & ticket status not updating whe

Post by SEEKNDESTROY427 »

Hi Klemen,
Session caching was the problem. I set ession.cache_limiter to nocache through my through my WHM PHP Configuration Editor. Adding php_value session.cache_limiter "nocache" to my .htaccess file didn't work.

Thank you so much for your time and help.
Post Reply