Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

ajax breaks after adding custom global header for staff

I'm not entirely sure why adding a global header would be breaking anything but it has. After adding html code into the header.inc.php file in /include/staff/ I can't create a new ticket. I get the following errors:

VM4839:1 POST http://{"my-site"}/HDInquiry/scp/ajax.php/users/lookup 400 (Bad Request)
(anonymous) @ VM4839:1
send @ jquery-1.11.2.min.js?9ae093d:4
ajax @ jquery-1.11.2.min.js?9ae093d:4
(anonymous) @ scp.js?907ec36:645
dispatch @ jquery-1.11.2.min.js?9ae093d:3
r.handle @ jquery-1.11.2.min.js?9ae093d:3


anyone have any suggestions?

Comments

  • I dont see a question.

    You altered the files and broke your site.  The fix it to restore the stock core files.
  • So you can't add a global header above all other content or it breaks your software?
  • The question is why does adding a header cause: 

    VM4839:1 POST http://{"my-site"}/HDInquiry/scp/ajax.php/users/lookup 400 (Bad Request)
    (anonymous) @ VM4839:1
    send @ jquery-1.11.2.min.js?9ae093d:4
    ajax @ jquery-1.11.2.min.js?9ae093d:4
    (anonymous) @ scp.js?907ec36:645
    dispatch @ jquery-1.11.2.min.js?9ae093d:3
    r.handle @ jquery-1.11.2.min.js?9ae093d:3

    ??
  • No one here can possible answer your question.  
    You have not provided us with the modification(s) that you made.
    Also since you decided to modify the source, no one will support your installation.
  • edited April 12
    I see. No worries mate we figured it out.
  • Good I'm glad to hear it.  Should I mark this as resolved and close it then?
  • Yes sir you may. I appreciate all the work you guys do
  • Maybe you're not adding the header the right way?

    Can you anonymise the code and post it?
Sign In or Register to comment.