Hi,

I wanted to test out the osticket system for our environment. I cannot create the required FAQ for our Knowledgebase. According to the documentation there should be a "Listing type" when creating a new FAQ. This option is not available when I create it.

Our environment includes the following:

Is there something I did wrong? Or is there a bug perhaps in the code?

The knowledgebase is one of the main reasons why we want to implement this solution in our company.

    Cellooo00

    Please check you logs (general server logs, webserver error logs, PHP error logs, MySQL/MariaDB error logs, osTicket System Logs, Browser Console logs, etc.) for any related errors.

    Cheers.

    I haven't found anything in the logs that could be related to the problem.

    www-error.log:

    [10-Feb-2022 10:04:01 UTC] PHP Warning: Unknown: Failed to open stream: Permission denied in Unknown on line 0
    [10-Feb-2022 10:04:40 UTC] PHP Warning: Unknown: Failed to open stream: Permission denied in Unknown on line 0
    [10-Feb-2022 10:04:42 UTC] PHP Warning: Unknown: Failed to open stream: Permission denied in Unknown on line 0
    [10-Feb-2022 10:05:52 UTC] PHP Warning: Unknown: Failed to open stream: Permission denied in Unknown on line 0
    [10-Feb-2022 10:07:02 UTC] PHP Warning: Unknown: Failed to open stream: Permission denied in Unknown on line 0
    [10-Feb-2022 10:09:36 UTC] PHP Warning: Unknown: Failed to open stream: Permission denied in Unknown on line 0
    [10-Feb-2022 13:35:05 UTC] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/osTicket/upload/include/class.user.php:1243
    Stack trace:
    #0 /var/www/osTicket/upload/include/class.user.php(1219): UserAccount::sendUnlockEmail()
    #1 /var/www/osTicket/upload/account.php(115): UserAccount->sendConfirmEmail()
    #2 {main}
    thrown in /var/www/osTicket/upload/include/class.user.php on line 1243
    [10-Feb-2022 13:35:42 UTC] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/osTicket/upload/include/class.user.php:1243
    Stack trace:
    #0 /var/www/osTicket/upload/include/class.user.php(1219): UserAccount::sendUnlockEmail()
    #1 /var/www/osTicket/upload/account.php(115): UserAccount->sendConfirmEmail()
    #2 {main}
    thrown in /var/www/osTicket/upload/include/class.user.php on line 1243
    [10-Feb-2022 15:12:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [10-Feb-2022 15:12:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [10-Feb-2022 21:29:38 UTC] PHP Fatal error: Uncaught Error: Call to undefined method TicketStatusList::getSortModes() in /var/www/osTicket/upload/include/staff/dynamic-list.inc.php:89
    Stack trace:
    #0 /var/www/osTicket/upload/scp/lists.php(205): require()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/dynamic-list.inc.php on line 89
    [11-Feb-2022 12:51:50 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 12:51:50 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:02:26 UTC] PHP Fatal error: Uncaught ArgumentCountError: DateTime::setTimestamp() expects exactly 1 argument, 0 given in /var/www/osTicket/upload/include/class.schedule.php:958
    Stack trace:
    #0 /var/www/osTicket/upload/include/class.schedule.php(958): DateTime->setTimestamp()
    #1 /var/www/osTicket/upload/include/ajax.schedule.php(86): ScheduleEntry->getForm()
    #2 /var/www/osTicket/upload/include/class.dispatcher.php(145): ScheduleAjaxAPI->updateEntry()
    #3 /var/www/osTicket/upload/include/class.dispatcher.php(38): UrlMatcher->dispatch()
    #4 /var/www/osTicket/upload/include/class.dispatcher.php(120): Dispatcher->resolve()
    #5 /var/www/osTicket/upload/include/class.dispatcher.php(38): UrlMatcher->dispatch()
    #6 /var/www/osTicket/upload/scp/ajax.php(316): Dispatcher->resolve()
    #7 {main}
    thrown in /var/www/osTicket/upload/include/class.schedule.php on line 958
    [11-Feb-2022 13:02:33 UTC] PHP Fatal error: Uncaught ArgumentCountError: DateTime::setTimestamp() expects exactly 1 argument, 0 given in /var/www/osTicket/upload/include/class.schedule.php:958
    Stack trace:
    #0 /var/www/osTicket/upload/include/class.schedule.php(958): DateTime->setTimestamp()
    #1 /var/www/osTicket/upload/include/ajax.schedule.php(86): ScheduleEntry->getForm()
    #2 /var/www/osTicket/upload/include/class.dispatcher.php(145): ScheduleAjaxAPI->updateEntry()
    #3 /var/www/osTicket/upload/include/class.dispatcher.php(38): UrlMatcher->dispatch()
    #4 /var/www/osTicket/upload/include/class.dispatcher.php(120): Dispatcher->resolve()
    #5 /var/www/osTicket/upload/include/class.dispatcher.php(38): UrlMatcher->dispatch()
    #6 /var/www/osTicket/upload/scp/ajax.php(316): Dispatcher->resolve()
    #7 {main}
    thrown in /var/www/osTicket/upload/include/class.schedule.php on line 958
    [11-Feb-2022 13:22:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:22:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:36:37 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:36:37 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:39:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:39:32 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 13:40:30 UTC] PHP Fatal error: Uncaught Error: Call to undefined method TicketStatusList::getSortModes() in /var/www/osTicket/upload/include/staff/dynamic-list.inc.php:89
    Stack trace:
    #0 /var/www/osTicket/upload/scp/lists.php(205): require()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/dynamic-list.inc.php on line 89
    [11-Feb-2022 20:47:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:47:13 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:49:06 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:49:06 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:56:05 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:56:05 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:57:53 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 20:57:54 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:07:15 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:07:15 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:07:47 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:07:47 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:26:58 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:26:58 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:30:06 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [11-Feb-2022 21:30:06 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 11:54:28 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 11:54:29 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 12:16:51 UTC] PHP Fatal error: Uncaught Error: Using $this when not in object context in /var/www/osTicket/upload/include/class.draft.php:77
    Stack trace:
    #0 /var/www/osTicket/upload/include/class.page.php(283): Draft::getAttachmentIds()
    #1 /var/www/osTicket/upload/include/ajax.content.php(198): Page->update()
    #2 /var/www/osTicket/upload/include/class.dispatcher.php(145): ContentAjaxAPI->updateContent()
    #3 /var/www/osTicket/upload/include/class.dispatcher.php(38): UrlMatcher->dispatch()
    #4 /var/www/osTicket/upload/include/class.dispatcher.php(120): Dispatcher->resolve()
    #5 /var/www/osTicket/upload/include/class.dispatcher.php(38): UrlMatcher->dispatch()
    #6 /var/www/osTicket/upload/scp/ajax.php(316): Dispatcher->resolve()
    #7 {main}
    thrown in /var/www/osTicket/upload/include/class.draft.php on line 77
    [14-Feb-2022 12:34:24 UTC] PHP Fatal error: Uncaught Error: Call to undefined method TicketStatusList::getSortModes() in /var/www/osTicket/upload/include/staff/dynamic-list.inc.php:89
    Stack trace:
    #0 /var/www/osTicket/upload/scp/lists.php(205): require()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/dynamic-list.inc.php on line 89
    [14-Feb-2022 12:38:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 12:38:46 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 12:52:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 12:52:49 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 19:52:53 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 19:52:53 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 19:53:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 19:53:22 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 19:55:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85
    [14-Feb-2022 19:55:57 UTC] PHP Fatal error: Uncaught Error: Call to undefined function each() in /var/www/osTicket/upload/include/staff/faq.inc.php:85
    Stack trace:
    #0 /var/www/osTicket/upload/scp/faq.php(168): require_once()
    #1 {main}
    thrown in /var/www/osTicket/upload/include/staff/faq.inc.php on line 85

    osticket_error.log:

    [Mon Feb 14 20:39:08.558031 2022] [proxy_fcgi:error] [pid 176871:tid 140457661110016] [client 10.242.3.1:54163] AH01071: Got error 'Primary script unknown'

    These are the only logs I could find with significant errors.

    Furthermore I would like to add some additional screenshots from my knowledgebase environment. Perhaps I'm doing something wrong there.

    I also changed the default log behaviour to hopefully get more useful information in the future

    I can confirm, that in include/staff/faq.inc.php line 85 there is each function that is deprecated
    I fixed replacing with
    <?php foreach($topics as $topicId=>$topic) { ?>

      Finally it works! Thank you guys so much for the efforts!

      Write a Reply...