Missing categories in settings

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
ccherry
Posts: 5
Joined: Mon Mar 26, 2018 3:27 am

Missing categories in settings

Post by ccherry »

Script URL:localhost
Mods for HESK version: 3.3.1
HESK version: 2.7.6
Hosting company: Synology Diskstation
URL of phpinfo.php: localhost
URL of session_test.php: localhost
What terms did you try when SEARCHING for a solution: categories missing, categories

Write your message below:
Hi I have updated hesk and hesk mod and when I went into categories to make some changes there are none listed and I get a pop up with the error "No Categories Found No categories were found. This shouldn't happen

I tried adding a category, which appeared to work as no error message was received but it still doesn't show up. All categories are present in the front end for users adding tickets - just not under settings.

Unfortunately I can't point you where to go look as its on a local intranet but I am hoping someone can provide some suggestions I can try :D

Thanks in Advance


Christina
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Missing categories in settings

Post by mkoch227 »

Unfortunately, this gets tricky as there's no way for me to see your helpdesk :? , but I'll see what I can do.

There should always be at least one category in HESK / Mods for HESK, which is why the "this shouldn't happen" message appeared. Try the following for me:
  1. Enable the REST API in Settings -> API Settings if it is not currently enabled
  2. In your browser, go to https://<path to your helpdesk>/api/index.php/v1/categories/all
  3. Copy and paste the result as a reply to this thread
  4. (optional) disable the REST API in Settings -> API Settings if you do not intend on using the API in third-party applications
Hopefully something in the response from step 3 will provide some insight as to why you are seeing the error.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
ccherry
Posts: 5
Joined: Mon Mar 26, 2018 3:27 am

Re: Missing categories in settings

Post by ccherry »

Thanks Mike

I get a blank page when I do that - unless its a picture of the snow in winter in the Antarctica, but it's completely white
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Missing categories in settings

Post by mkoch227 »

Sounds like something isn't working properly. If you enable debug mode in settings and try again, is there any output? If no, check either Settings -> View Message Log, or check if there is an error_log file on your server in either the root helpdesk folder or in the api folder.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
ccherry
Posts: 5
Joined: Mon Mar 26, 2018 3:27 am

Re: Missing categories in settings

Post by ccherry »

Hi

That produced the following;

Code: Select all

Warning: require_once(/volume1/web/joomla/hesk/api/Core/output.php): failed to open stream: No such file or directory in /volume1/web/joomla/hesk/api/autoload.php on line 11 Fatal error: require_once(): Failed opening required '/volume1/web/joomla/hesk/api/Core/output.php' (include_path='.') in /volume1/web/joomla/hesk/api/autoload.php on line 11
I navigated to the folder and output.php exists but the folder Core was lower case. Changed that to Core as per the code in autoload.php on line 11 and again with the blank screen.

Nothing in the message log
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Missing categories in settings

Post by mkoch227 »

It seems like you still may be missing something... try deleting the /api folder from your Mods for HESK installation and copy over the /api folder from https://github.com/mike-koch/Mods-for-H ... /3.3.1.zip to make sure you have all of the latest files.
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
ccherry
Posts: 5
Joined: Mon Mar 26, 2018 3:27 am

Re: Missing categories in settings

Post by ccherry »

Done and got another error:

Code: Select all

{"type":"ERROR","title":"Security Exception","message":"An 'X-Auth-Token' is required for this request"}
ccherry
Posts: 5
Joined: Mon Mar 26, 2018 3:27 am

Re: Missing categories in settings

Post by ccherry »

I should have checked before the last error post, but replacing the API folder has also fixed the categories somewhat, although the names are in white and therefore not visible. That's easily worked around.

Thanks for the assistance :)
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Missing categories in settings

Post by mkoch227 »

The security error is a good sign -- the endpoint is a secured endpoint, so you can't call it without the X-Auth-Token (however, this is bypassed on the manage categories page as it checks for a logged in user instead).

And the white text can occur during the update depending on the last version you updated from.... changing the foreground color to blank (i.e. "automatic") or black will solve that issue :wink: . Glad to hear everything is working now!
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
Post Reply