HESK do not save settings

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
xcfw
Posts: 3
Joined: Sat Oct 05, 2013 1:33 pm

HESK do not save settings

Post by xcfw »

Script URL: Local LAN
Version of script: 2,5,1
Hosting company: local
URL of phpinfo.php: http://pastebin.com/UkKDErPw
URL of session_test.php: http://pastebin.com/UkKDErPw
What terms did you try when SEARCHING for a solution: hesk_settings.inc.php do not save settings in file

Write your message below:
Hi, my hesk installation at LAMP with CentOS 6.4 do not saving settings in file hesk_settings.inc.php:

Code: Select all

[root@vrdm hd]# ls -la
total 248
drwxr-xr-x   8 apache apache  4096 Oct  5 19:41 .
drwxr-xr-x.  3 apache apache  4096 Sep 20 16:48 ..
drwxr-xr-x   2 apache apache  4096 Sep 29 02:11 admin
drwxr-xr-x   3 apache apache  4096 Oct  5 19:15 attachments
-rwxrwxr--   1 apache apache  3695 Aug  8 08:47 change_status.php
drwxr-xr-x   2 apache apache  4096 May 26 17:07 docs
-rwxrwxr--   1 apache apache  5437 Aug  8 08:47 download_attachment.php
-rwxrwxr--   1 apache apache  3427 Aug  8 08:47 file_limits.php
-rwxrwxr--   1 apache apache     0 May 26 17:07 footer.txt
-rwxrwxr--   1 apache apache     0 May 26 17:07 header.txt
-rwxrwxr--   1 apache apache 10625 Aug  8 08:47 hesk_javascript_v25.js
-rwxrwxrwx   1 apache apache  7019 Sep 29 02:02 hesk_settings.inc.php
-rwxrwxr--   1 apache apache 14270 Jun 18 16:58 hesk_style_v25.css
drwxr-xr-x   2 apache apache  4096 Jun 15 12:07 img
drwxr-xr-x  10 apache apache  4096 Sep 29 02:12 inc
-rwxrwxr--   1 apache apache 37157 Aug  8 08:47 index.php
-rwxr-xr-x   1 root   root      68 Oct  5 19:36 infos.php
-rwxrwxr--   1 apache apache 20139 Aug  8 08:47 knowledgebase.php
drwxr-xr-x   4 apache apache  4096 Sep 20 18:10 language
-rw-r--r--   1 apache apache   288 Oct 26  2010 path.php
-rwxrwxr--   1 apache apache  7574 Aug  8 08:47 print.php
-rwxrwxr--   1 apache apache  2395 Aug  8 08:47 print_sec_img.php
-rwxrwxr--   1 apache apache  3934 Aug  8 08:47 rate.php
-rwxrwxr--   1 apache apache   201 May 26 17:07 readme.html
-rwxrwxr--   1 apache apache  7457 Aug  8 08:47 reply_ticket.php
-rwxrwxr--   1 apache apache   323 May 26 17:07 robots.txt
-rw-r--r--   1 root   root     191 Aug 14  2005 session_test2.php
-rw-r--r--   1 root   root     282 Aug 14  2005 session_test.php
-rwxrwxr--   1 apache apache 13240 Aug  8 08:47 submit_ticket.php
-rwxrwxr--   1 apache apache  3326 Aug  8 08:47 suggest_articles.php
-rwxrwxr--   1 apache apache  4998 Aug  8 08:47 suggest_email.php
-rwxrwxr--   1 apache apache 27635 Aug  8 08:47 ticket.php
Even running script of permission setting from hesk installation didn't helped. Please advice, I've searched through whole internet, nobody knows about this problem, maybe it's because of my poor english, but I couldn't found any info.

Thank in advance.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK do not save settings

Post by Klemen »

It's hard to say what is happening without being able to see and test.

Do you get any errors or anything? Does anything happen at all? Does the settings file get deleted/empty?

Two things I would try first is:

1. update your PHP (to at least 5.3.27 if not 5.4 or 5.5)

2. chmod hesk_settings.inc.php to 666 (-rw-rw-rw-)
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
xcfw
Posts: 3
Joined: Sat Oct 05, 2013 1:33 pm

Re: HESK do not save settings

Post by xcfw »

Hi,

Already rechmoded hes_settings file in 666, did not helped. When I want to save settings, there is only loading, and Hesk site wouldn't open anymore, untill I will restart apache. All the logs of apache is normal, no any errors. I can provide you teamviewer session to my PC, if you can find time to connect.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK do not save settings

Post by Klemen »

Did you update PHP installation? It's possible a required function is missing or buggy in such an old version (5.3.3).

I am afraid I am able to connect to your computer and do the work myself only if an installation service is purchased:
https://www.hesk.com/install.php
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
xcfw
Posts: 3
Joined: Sat Oct 05, 2013 1:33 pm

Re: HESK do not save settings

Post by xcfw »

It's very sad, but this month I wouldn't have money at all. =(
Upgrading of PHP to 5.4 didn't help.
All I need from configuration of HESK is to set additional fields for a ticket.
Could you provide me example hesk_settings.inc.php, where shown all configuration types of additional fields? I didn't found anything like this by google, so maybe this info will give much benefit for HESK admins =)
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: HESK do not save settings

Post by Klemen »

Here is an example of the settings file:

Code: Select all

$hesk_settings['custom_fields']=array (
'custom1'=>array('use'=>1,'place'=>0,'type'=>'text','req'=>1,'name'=>'Text name','maxlen'=>255,'value'=>'Default value'),
'custom2'=>array('use'=>1,'place'=>0,'type'=>'textarea','req'=>1,'name'=>'Large box name','maxlen'=>255,'value'=>'10#50'),
'custom3'=>array('use'=>1,'place'=>0,'type'=>'radio','req'=>0,'name'=>'Radio button name','maxlen'=>255,'value'=>'Option 1#HESK#Option 2#HESK#Option 3'),
'custom4'=>array('use'=>1,'place'=>0,'type'=>'select','req'=>0,'name'=>'Select box name','maxlen'=>255,'value'=>'Option 1#HESK#Option 2#HESK#Option 3'),
'custom5'=>array('use'=>1,'place'=>1,'type'=>'checkbox','req'=>0,'name'=>'Checkbox name','maxlen'=>255,'value'=>'Option 1#HESK#Option 2#HESK#Option 3'),
'custom6'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 6','maxlen'=>255,'value'=>''),
'custom7'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 7','maxlen'=>255,'value'=>''),
'custom8'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 8','maxlen'=>255,'value'=>''),
'custom9'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 9','maxlen'=>255,'value'=>''),
'custom10'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 10','maxlen'=>255,'value'=>''),
'custom11'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 11','maxlen'=>255,'value'=>''),
'custom12'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 12','maxlen'=>255,'value'=>''),
'custom13'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 13','maxlen'=>255,'value'=>''),
'custom14'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 14','maxlen'=>255,'value'=>''),
'custom15'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 15','maxlen'=>255,'value'=>''),
'custom16'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 16','maxlen'=>255,'value'=>''),
'custom17'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 17','maxlen'=>255,'value'=>''),
'custom18'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 18','maxlen'=>255,'value'=>''),
'custom19'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 19','maxlen'=>255,'value'=>''),
'custom20'=>array('use'=>0,'place'=>0,'type'=>'text','req'=>0,'name'=>'Custom field 20','maxlen'=>255,'value'=>'')
);
So the variables are:

Code: Select all

'use'=>0
0 = do not use the field
1 = use the field

Code: Select all

'place'=>0
0 place the field before "Subject" field
1 place the field after "Message" filed

Code: Select all

'type'=>'text'
text
textarea
radio
select
checkbox

Code: Select all

'req'=>0
0 = field is not required
1 = field is required

Code: Select all

'name'=>'Field name'
name of the field

Code: Select all

'maxlen'=>255
maximum length of text in text fields

Code: Select all

'value'=>'Default value'
for text and textarea: default value of the field (can be empty)

for select, radio and checkbox: possible values separated with #HESK#
(for example 'Option 1#HESK#Option 2#HESK#Option 3')



Hope this helps.
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