Page 1 of 1

v2.2 Admin Knowledgebase Problem

Posted: Mon Feb 07, 2011 8:57 pm
by Raven
Script URL: http://www.crikey-thatsmint.com/care+/
Version of script: 2.2
Hosting company: localhost
URL of phpinfo.php: http://www.crikey-thatsmint.com/phpinfo.php
URL of session_test.php: http://www.crikey-thatsmint.com/session_test.php
What terms did you try when SEARCHING for a solution: Knowledgebase, Knowledgebase problem, Knowledgebase issue

Write your message below: Hi, i have a slight issue with my Knowledgebase in Hesk v2.2 - I've just this min enabled it from the admin > settings screen and gone to add a few articles. However, where there should be the category name all I can see is the following line of code just after the image of the little folder:

Code: Select all

< 3; i++) { var bit = (this[i] - 0).toString(16); hex.push(bit.length == 1 ? "0" + bit : bit); } return array ? hex : "#" + hex.join(""); }" extend="function (array) { this.push.apply(this, array); return this; }" >Care+ Knowledgebase (0) [ + Article | + Category | Manage ]
I'm assuming it should look like 'Care+ Knowledgebase (0) [ + Article | + Category | Manage ]'.

This is showing just above the following section:
Legend
+ Article = add a new article to the selected category.
+ Category = create a new sub-category inside the selected category.
Manage = manage selected category (edit, delete, manage articles
I have replaced 'manage_knowledgebase.php' with a fresh copy from the original hesk22.zip that I downloaded a few days ago but this is just the same?

So my question is, what can be the problem? - and how to fix it?

Thank you

**EDIT**
As an addition to the above I have also noticed that after adding a test article the search does not find any results even when I type the exact name of the article in to the search box too....? This might have something to do with the error I am getting above though but I thought I'd mention it.

Re: v2.2 Admin Knowledgebase Problem

Posted: Wed Feb 09, 2011 3:29 am
by Raven
Ok I found the cause but still have no idea why this would be problem... It seems that mootools.js does not play nice with Hesk for some reason..?

In my header.inc.php file I had the following line of code

Code: Select all

<script language="Javascript" type="text/javascript" src="<?php echo HESK_PATH; ?>mootools.js"></script>
which for some odd reason causes the admin functions for the knowledgebase section to fall over...

Anyway, I now use something else to control the show/hide fade effect on the main index.php and all is working again as expected.

Still gives me, "Suggested knowledgebase articles: No relevant articles found." though when searching for articles - again, this is even if I enter an exact term that is actually found within an article... Although I do seem to recall reading somewhere in the forums a long time ago that this had been reported in a previous version of Hesk - forgot what the answer was to resolve the lack of results though and cannot seem to find anything about this :(

If anyone can remember what the fix/work around/resolution was for this quirky search problem please help.

(seems to work here when typing in the word 'development' for example: http://www.hesk.com/knowledgebase/?article=40)

Cheers

Re: v2.2 Admin Knowledgebase Problem

Posted: Wed Feb 16, 2011 12:50 pm
by Klemen
Javascript shouldn't be displayed on the page so if it showed there was (is) probably a HTML error somewhere (missing tags, unclosed tags, missing quotes?).

As for articles - try adding more KB articles (say 10) before testing. The thing is MySQL search will not return results for words that can be found in 50% of the articles.

Re: v2.2 Admin Knowledgebase Problem

Posted: Wed Feb 16, 2011 2:01 pm
by Raven
Thanks for that Klemen ;)

I've had a look for any missing tags or ; etc... but thus far had no luck finding anything tho. I'll keep looking and post back if I find out where the possible error is.

Cheers