I'm using the SOAP interface and I'm having trouble with getKnowledgeBaseCategories. The breadcrumb info returned is correct, but I never get a list of sub-categories -- the categories array is always empty! I've even tried setting 'categoryId' => '0', but I get the same result: an empty categories array.
Currently, my Knowledgebase category structure looks like this:
CODE
Knowledgebase
Frequently Asked Questions (id = 1)
Hardware
Content Manager
Program Manager
Network Manager
Internal Documentation
Frequently Asked Questions (id = 1)
Hardware
Content Manager
Program Manager
Network Manager
Internal Documentation
When I run this code:
CODE
$params = array('user' => $username,
'password' => $password,
'categoryId' => '1',
);
$result = call('getKnowledgeBaseCategories', $params);
'password' => $password,
'categoryId' => '1',
);
$result = call('getKnowledgeBaseCategories', $params);
I get the following result:
CODE
Array
(
[categories] => Array
(
)
[breadcrumbs] => Array
(
[0] => Array
(
[categoryid] => 1
[title] => Frequently Asked Questions
)
)
(
[categories] => Array
(
)
[breadcrumbs] => Array
(
[0] => Array
(
[categoryid] => 1
[title] => Frequently Asked Questions
)
)
I should be getting a list of all the categories inside the Frequently Asked Questions category, but I'm not. I confirmed that I have articles in those categories, and the articles are published.
I found this post on known issues talking about libxml. However, what was posted is confusing and contradictory:
"Versions of PHP built against libxml 2.6.32 or later cause buggy behaviour"
...
"the only workaround is to recompile PHP against libxml 2.6.32 or earlier."
So, is libxml 2.6.32 and later no good, or is 2.6.32 and earlier OK? My PHP is compiled against libxml 2.6.32, so I'm just trying to figure out if that's good or bad. Also, if libxml 2.6.32 is in fact no good could it explain why my categories array is empty?
FYI, I'm running Kayako SupportSuite v3.50.06 STABLE.
Sign In »
Register Now!
Help

Back to top








