[RESOLVED] Hesk 2.1 min req specs?

Helpdesk for my helpdesk software

Moderator: mkoch227

Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

[RESOLVED] Hesk 2.1 min req specs?

Post by Raven »

Script URL: localhost
Version of script: 2.1
Hosting company: localhost
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: minimum AND specifications

Write your message below: Hi, I have just upgraded my local Apache HTTPD web server to 2.2.13 with php 5.3.0 and MySQL 5.1.39 then installed HESK 2.1 to find that for whatever reason I am only allowed to click on the 'Submit a ticket' link from the first page about 4/5 times before my web browser (Firefox 3.5) just hangs saying 'Loading...' but nothing else seems to happen. The browser itself does not freeze, just the tab...

The strange thing is all other scripts/web server functions work correctly? - my session path has been set correctly as per another post that I found on the subject (initially I thought this may have been the issue).

So, the only thing I can think off is a compatibility between HESK and one of the above server technologies. Could you please advise me if the latest version of HESK works with my versions of Apache, php and MySQL correctly?

Thanks
Last edited by Raven on Sat Oct 17, 2009 7:02 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

HESK does work with your specs, but I have an idea what the problem might be.

I noticed myself that sometimes PHP 5.3.0 has problems with the crypt() function on Windows. You can try changing

Code: Select all

crypt(
to

Code: Select all

sha1(
in files index.php (1 time) and in secimg.inc.php (1 time - DON'T change "encrypt(", make sure you are changing "crypt(" ) then close all browser windows and see if that helped.
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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Cool that fixed it thank you.

Is there any reason why crypt( has to be used? - and is there any poss issues using sha1(?

Might be an idea to have a little script in there to check for the version of php then use sha1( instead of crypt(...

Thanks again :)
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Hmmm, just found that while trying to use the knowledgebase I get the following message at the top of my Admin screen:
Deprecated: Assigning the return value of new by reference is deprecated in C:\Webserver\Apache2.2\htdocs\support\admin\manage_knowledgebase.php on line 190

Deprecated: Assigning the return value of new by reference is deprecated in C:\Webserver\Apache2.2\htdocs\support\admin\manage_knowledgebase.php on line 191

Deprecated: Assigning the return value of new by reference is deprecated in C:\Webserver\Apache2.2\htdocs\support\admin\manage_knowledgebase.php on line 599

Deprecated: Assigning the return value of new by reference is deprecated in C:\Webserver\Apache2.2\htdocs\support\admin\manage_knowledgebase.php on line 801
Could this also be related to php 5.3.0? and if so, please tell me there is a quick easy fix like last time lol

Thanks
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You probably have an old (or modified?) version of the manage_knowledgebase.php file, try downloading and uploading it again.
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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Yup, the version I have running at the moment is from v2.0 of HESK - it also has a few mods too but only as far as changing a few images and the wording in the language file so nothing huge.

An upgrade is looking more and more needed now more than ever since also upgrading my version of php too.

Thanks for your help.
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Hi, could you tell me if this is true for version 2.1?
Klemen wrote:HESK does work with your specs, but I have an idea what the problem might be.

I noticed myself that sometimes PHP 5.3.0 has problems with the crypt() function on Windows. You can try changing

Code: Select all

crypt(
to

Code: Select all

sha1(
in files index.php (1 time) and in secimg.inc.php (1 time - DON'T change "encrypt(", make sure you are changing "crypt(" ) then close all browser windows and see if that helped.
I only ask as it seems to be doing exactly the same thing as I initially reported and this is a new 'clean' install.... Also, is there anything else that could be causing this problem as I have already attempted changing the above but it still does it..?

Thanks

**EDIT**
It also does the same thing when attempting to click on the link to login to the main Admin page too :?
Last edited by Raven on Wed Oct 07, 2009 7:31 pm, edited 1 time in total.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yes, should work with 2.1 too.
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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

I have tried changing the above as before but it is still the same - is there anything else that could be causing this problem do you know?
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Hmmm, now I'm wondering if it is just something to do with my browser (latest version of Firefox) as when I have another tab open with my original HESK 2.0 open along side my new HESK 2.1 installation both fail when clicking on 'Submit new ticket' but all other links work....?

Wait though, if all other links work then it can't be the browser but then why would my HESK 2.0 site show the same issues and only when HESK 2.0 is open in another tab....?

Both are using different data base names so this isn't the clash... Now I'm stuck :? :shock:
Last edited by Raven on Sat Oct 17, 2009 1:04 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Have you changed crpyt( to sha1( in all files? Also before testing try closing all browser windows or even clearing cookies.

But you have such a modified version of Hesk it's hard to say if this really is the problem or is it somewhere else.
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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Hi Klemen, thanks for your reply - This was with a standard install of HESK 2.1.... Also, I have not altered 'crypt(' to 'sha1(' in all files, just in index.php as advised (do I need to do this for all files for HESK 2.1 or just HESK 2.0?).

An update, I cleared my temp internet files (cookies, history etc...) and all Apache session data and it seems to have worked since?!? - due to this, would I still need to alter the above in all files for HESK (both versions)? And if so, could you please tell me what the alteration actually does?

Cheers
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You need to change it in both index.php and secimg.inc.php

Like said before, it seems to be an issue with PHP 5.3.0 where crypt() doesn't work properly, using sha1() can be an alternative.
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
Raven
Posts: 172
Joined: Sat Jun 20, 2009 12:39 am

Post by Raven »

Hi, I have updated index.php and secimg.inc.php replacing crypt( as advised and will test it for a while and let you know how things turn out ;)

Thank you for your help :)

Just one thing, if there is a problem with crypt() and the latest version of php5 then might it be an idea to alter the above files to include sha1()? - or is this not compatible with previous versions of php prior to 5.3.0?

If this is the case, would it be possible to have HESK detect the installed version of php and use one or the other as required? - I'm just thinking of possible future issues -- and if HESK could use either depending on the version of php found then this would also cut down on support requests too ;)
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

crpyt() is a standard PHP function which has been there from PHP 4, it seems that only Windows installations sometimes have problems with it (in PHP 5.3.0). But yes, version 2.2 will probably have sha1 instead.
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
Post Reply