custom fields lost after upgrade

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

custom fields lost after upgrade

Post by plc »

Hi.

I just upgraded to 2.4.2 and seem to have lost my custom fields. Could someone tell me what file that lives in so I can restore them from backup please?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: custom fields lost after upgrade

Post by Klemen »

If you follow upgrade instructions from the docs *precisely* you will not loose any settings.

Now that the damage is done, switching settings file may lead to other problems.

You can try to manually do it like this:
1. open the OLD hesk_settings.inc.php file
2. copy everything from

Code: Select all

$hesk_settings['custom_fields']=array (
to

Code: Select all

#############################
#     DO NOT EDIT BELOW     #
#############################
3. download the NEW (2.4.2) hesk_settings.inc.php file from the server
4. find the same code as above, delete it and paste code from the old hesk_settings.inc.php file
5. save, upload and test


If that doesn't work you will need to delete the help desk (including database), restore backup and do the upgrade again. This time follow instructions step-by-step!
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
plc
Posts: 89
Joined: Wed Jun 20, 2012 2:09 pm

Re: custom fields lost after upgrade

Post by plc »

Sorry. I didn't ask the right question at all.

I had originally added a bunch of sub categories but since it had been a while I mistakenly thought I had added them as custom fields -which isn't the case. What I had actually done was edited the index.php file to include hardcoded "fake" subcategories. Now that I remember I think I can recover fairly easily.

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

Re: custom fields lost after upgrade

Post by Klemen »

If you make custom changed to HESK files I would recommend that you document changes - write down exactly what you changed and where.

This will make applying customizations to future versions much easier.
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