Menu

#71 Cannot add category or FAQ

1.2.1-ST
open
Tim Gall
None
3
2015-04-19
2015-03-12
Anonymous
No

Fresh install of osTickets and osFAQ1.2.1-ST. I can't add a category or FAQ. There are a couple of different paths this takes:

1) On the FAQ Admin page, I click on 'Add New Category'. Screen goes half-white, then freezes. No error message.

To try the 2nd scenario , I hit F5, to refresh the page, then proceed:

2) On the FAQ Admin page, I click on 'Add New Category'. Screen proceeds to the next page, where I type in my category name, set as Active/Active and hit 'Save'. The screen proceeds back to the FAQ Admin page, but there is no category listed and no error message or success message.

To try scenario 3, you can begin at the same point as scenario 1, as it doesn't matter.
3) On the FAQ Admin page, I click on 'Add new FAQ'. Screen goes half-white, then freezes. No error message.

In a 4th scenario, I am able to get to the 'Add FAQ' screen and actually am able to add the FAQ. I can even go back in and edit it. This scenario is not predictable and I cannot reproduce the situation where I am able to create one.

osTicket Version v1.9.5.1 (1faad22)
Web Server Software Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11
MySQL Version 5.6.16
PHP Version 5.5.11

As a side note, I LOVE this project. I've been hunting for it for 6+ months before I stumbled across it on the OSTicket forums.

Thank you,
Joshua

Discussion

  • Anonymous

    Anonymous - 2015-03-12

    As an added note, I DID install the patch file, as I was having problems with changes being saved in osFAQ Settings.

     
  • Tim Gall

    Tim Gall - 2015-03-14

    Hi Joshua,
    Thanks for the info. I should be able to spend some time on the project this month. There may be some additional changes in the 1.9 osticket series that aren't in the 1.8 series.

    Looking back at possible causes for the bug that I found in the settings area, it was probably related to a javascript library accessing the DOM structure as Ive encountered it on a project Im working on at the moment. Normally a form will still work in html5 when it starts and ends between rows but when the DOM is being accessed it can cause it to fail.
    Its possibly a relevant factor related to some of the issues you encountered but may be a bit more in depth than that depending on the 1.9 osticket structure. I should be able to sort out a patch to get everything working but will also see if I can get a bit more done for a full release late this month. The patch will get released as soon as Ive got it working, the full release will be late this month or early next month (guessing at present).

    Glad you like the project. Its great to hear, thanks.

    Regards,
    Tim

     
  • Anonymous

    Anonymous - 2015-03-16

    Tim - Great news! I really appreciate the detailed response. Some additional testing may shed light on what's going on.

    If I click on a link and go to that page, if I refresh the page before doing anything else, it all works. Example (as from above)... Go to the FAQ Admin page and after it loads, I hit F5. It reloads and I can click on any of the functions and it goes to the next page. Then whatever my next step is, when the page loads, I hit F5 and it reloads. When I put in my data and hit save, it works.

    Hope that helps!

     
  • Tim Gall

    Tim Gall - 2015-04-18

    Hi,
    Ive put together a fix for osFaq with the latest osTicket; I should have it packaged into a patch withing the next 24hours.
    The fix requires a manual edit to the osTicket admin header.inc.php file to disable pjax loading when osFaq is loaded. pjax is an ajax page loading library that osTicket is using in the newer versions.
    I'll update this post and a few others when the patch is online.

    UPDATE 2015-04-18 23:07+10: The fix has been updated to a single line of javascript and no longer requires any manual edits.

    ORIGINAL FIX 2015-04-18 20:21+10: So far the gist of the patch is to disable pjax for osFaq pages like below:
    A few additional bits are also disabled as well since they arent used by osFaq at the moment.

    :::php

    osTicket-Folder/include/staff/header.inc.php

    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        ...
    <?php if(basename($_SERVER['SCRIPT_NAME']) != FILE_FAQ_ADMIN){ ?>
        <script type="text/javascript" src="./js/scp.js?c18eac4"></script>
        <script type="text/javascript" src="<?php echo ROOT_PATH; ?>js/jquery.pjax.js?c18eac4"></script>
        <script type="text/javascript" src="<?php echo ROOT_PATH; ?>js/filedrop.field.js?c18eac4"></script>
        <script type="text/javascript" src="<?php echo ROOT_PATH; ?>js/jquery.multiselect.min.js?c18eac4"></script>
        <script type="text/javascript" src="./js/tips.js?c18eac4"></script>
        <script type="text/javascript" src="<?php echo ROOT_PATH; ?>js/redactor.min.js?c18eac4"></script>
        <script type="text/javascript" src="<?php echo ROOT_PATH; ?>js/redactor-osticket.js?c18eac4"></script>
        <script type="text/javascript" src="<?php echo ROOT_PATH; ?>js/redactor-fonts.js?c18eac4"></script>
        <script type="text/javascript" src="./js/bootstrap-typeahead.js?c18eac4"></script>
        <link rel="stylesheet" href="<?php echo ROOT_PATH ?>css/thread.css?c18eac4" media="all">
    <?php } ?>
        ...
    </head>
    

    ~~~~~~

     

    Last edit: Tim Gall 2015-04-18
  • Anonymous

    Anonymous - 2015-04-19

    Hi,
    The patch to fix osFaq compatibility issues with the osTicket 1.9.x series can be found here:
    http://sourceforge.net/projects/osfaq/files/osFAQ_1.2.1.ST/Compatibility-OST1.9.4/osFAQ-v1.2.1ST_OST-197-PATCH.zip/download

    To install it unpack the zip file and upload the contents of the upload folder to your osTicket installation. No edits needed.

    Regards,
    Tim

     

Anonymous
Anonymous

Add attachments
Cancel