Open whiteatom opened 11 years ago
The info is fetched via ajax - can you fire up firebug or web inspector and see if ajax calls are being made?
Is this on a Godaddy hosted site by chance?
Nope.. private server.
There is a request going https://mydomain.com/support/scp/ajax.php/tickets/41/preview, but it returns a 404. I have verified that ajax.php is there, but the rest of the url seems to be interpreted as a path, not variables.. is there a modRewrite rule required to make this work?
I found the $_SERVER['PATH_INFO'] was the problem for me with the same issue and a few others such as choosing a canned response to send in the reply to a ticket, viewing the dashboard graph, viewing FAQ's popup bubbles.
For me, changing $_SERVER['PATH_INFO'] to $_SERVER['ORIG_PATH_INFO'] in the following files worked
ajax.php api/http.php scp/ajax.php
Didn't fix it for me.. are we sure there's no .htaccess file that I'm missing here?
@whiteatom - If you have access to httpd.conf then make sure AcceptPathInfo directive is turned on i.e AcceptPathInfo on
. You might be able to do the same via .htaccess - if the overwrite is allowed on the directive.
I had the same problem as stated above, and AcceptPathInfo on in my .htaccess did the trick! Maybe this should be in the requirements section of the installation documentation?
Hi folks, same problem here and have been going round in circles trying to figure out how to apply these fixes.
Changing $_SERVER['PATH_INFO'] to $_SERVER['ORIG_PATH_INFO'] didn't work for me.
Can't find any mention of AcceptPathInfo in httpd.conf and not sure if I should change it there even if I could - big warning re not to modify by hand? Also got a dozen+ sites on my dedicated server and wouldn't like to break anything.
Tried adding various things into .htaccess files but no success:
single line - AcceptPathInfo On
and variations of
Options FollowSymLinks AllowOverride FileInfo AcceptPathInfo On
Can someone please be specific as to exactly what text I need to add and to which .htaccess file to put it in please (tried at root and in api/).
Thanks :)
@FromOz - I only added AcceptPathInfo On as a single row in .htaccess right at the root of osticket. And that's the only row I've got in my .htaccess.
Are you running php in cgi mode? Found someone mentioning on some site that AcceptPathInfo does not work when running in cgi mode. If that's true or not I don't know but worth checking out. I believe you can see if php is a apache2 module if you check your phpinfo(); - it should say Apache 2.0 Handler under Server API section at the top.
Which apache version do you use? AcceptPathInfo is available in Apache =>2.0.30
Yeah, tried that, sadly no go.
Sorry, should have mentioned, running on:
dedicated server CENTOS 5.9 x86_64 Apache 2.2.24. PHP 5.3.14 Server API CGI/FastCGI cgi.check_shebang_line - On (I assume, says 1 in php.info) cgi.fix_pathinfo - On
No idea what else would be relevant?
A colleague believes our Moodle installs use a similar technique to show images so hunted through the code in Moodle and we found the following code and gave it a try; didn't work in the OsTicket .htaccess file:
< IfDefine APACHE2 >
AcceptPathInfo on
< /IfDefine >
(Note: added spaces after/before < > to get them to show in here, not when added to .htaccess file.)
@FromOz - I found this page, says if using FastCGI AcceptPathInfo Default should be used, try to add it in your vhost-file.
http://wiki.davical.org/w/Apache_Config
I've never used FastCGI myself so I don't know the big differences really. If that doesn't work I got no idea sadly.
Thanks for that, lost count of the links I've read after Googling but that's a new one for me.
Will hopefully get a chance to try it tonight and report back.
Just as an FYI tooltips work fine under IIS7 w/ PHP5.3.x
@FromOz if editing the server config doesn't work, could you try this version of include/class.osticket.php? It works for me using NGINX (where PATH_INFO isn't available the way it is on Apache).
https://github.com/tomashastings/osTicket-1.7/blob/develop/include/class.osticket.php
Thanks, my colleague has come up with a hack to get the code to get the tooltips working on the tickets, and still looking into other areas.
Just tried swapping out class.osticket.php but sadly no go. Bearing in mind the ticket tooltips is "fixed" (temporarily at least until we can figure out what the real deal is) still issues with none of the following working:
Was hoping your version would fix those up.
Same problem here using last version of osticket 1.7.0 and uploaded a file to osticket dir with AcceptPathInfo On in it but problem still there. By the way, I do not find the $_SERVER['PATH_INFO'] in the following files to change it to $_SERVER['ORIG_PATH_INFO']...
ajax.php api/http.php scp/ajax.php
Does any body has a solution for this? Where is now the $_SERVER['PATH_INFO'] in osticket 1.7.0 files to change it and try if it works?
Thanks.
It should be in class.osticket.php in osTicket::get_path_info()
Hi greezybacon, thanks for your help. I changed $_SERVER['PATH_INFO'] to $_SERVER['ORIG_PATH_INFO'] in class.osticket.php and added a .htaccess file in /osticket directory with AcceptPathInfo On but no sucess at all... dashboard not showing anything, cannot add canned responses to tickets, tooltips not showing anything... it looks ajax is not working properly. Any other suggestions? It looks that I will have to pay ostickte staff to get it working properly.
@gwepower, how do you have PHP configured? I assume you're using Apache?
I guess what I mean is how do you have osTicket+PHP configured in your apache configuration file(s)?
You can see my php configuration here if that is what you need:
Hello, Greezybacon. My site is sadly hosted on Godaddy and I have the same problem (no statistics, no canned responses). Has the server anything to do with it? Thanks...
I'm having the same issue on GoDaddy virtual hosting. I see that in the current version, get_path_info() handles both cases of $_SERVER['PATH_INFO'] to $_SERVER['ORIG_PATH_INFO'] so you don't need to change this anymore.
Any fix for GoDaddy hosting on this version of OSTicket yet?
I would really like to work with you guys and get this issue resolved. Can either of you verify (via browser developer tools) if the Ajax requests are returning http 404 or 400 errors?
Von meinem iPhone gesendet
Am Oct 4, 2013 um 14:00 schrieb jbjorgaard notifications@github.com:
I'm having the same issue on GoDaddy virtual hosting. I see that in the current version, get_path_info() handles both cases of $SERVER['PATHINFO'] to $SERVER['ORIGPATH_INFO'] so you don't need to change this anymore.
Any fix for GoDaddy hosting on this version of OSTicket yet?
— Reply to this email directly or view it on GitHub.
I'll check when I get back to a computer. On Oct 4, 2013 9:47 PM, "Jared Hancock" notifications@github.com wrote:
I would really like to work with you guys and get this issue resolved. Can either of you verify (via browser developer tools) if the Ajax requests are returning http 404 or 400 errors?
Von meinem iPhone gesendet
Am Oct 4, 2013 um 14:00 schrieb jbjorgaard notifications@github.com:
I'm having the same issue on GoDaddy virtual hosting. I see that in the current version, get_path_info() handles both cases of $SERVER['PATHINFO'] to $SERVER['ORIGPATH_INFO'] so you don't need to change this anymore.
Any fix for GoDaddy hosting on this version of OSTicket yet?
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHubhttps://github.com/osTicket/osTicket-1.7/issues/422#issuecomment-25740714 .
Hi greezybacon,
I have checked woth the firefox console that I get a HTTP/1.1 500 Internal Server Error (if you want I can send you a window capture). For example, when I try to select a canned response i get this:
https://www.global-wellness-emporium.com/osticket/scp/ajax.php/kb/canned-response/3.json?tid=343&_=1380973482025 Método de la petición: GET Código de estado: HTTP/1.1 500 Internal Server Error
It looks to me that the URL is not well constructed here: "ajax.php/kb/" so maybe that is the problem.
I am so desperate to find a solution to this issue and others that I have with osticket, that I posted this on osticket forum willing to pay to any developer that could find me a solution and make my osticket installation work perfectly:
I also sent that same email to osticket developer team three times and I did not receive any response at all. So if you want I can pay you to get this and the other problems I have and maybe later you can post the solution here. Osticket is a great software but not being able to solve your problems even trying to pay the developer team is a thumbs down for this software.
Is there any way you can recover the php errors emitted from the HTTP 500 errors?
Von meinem iPhone gesendet
Am Oct 5, 2013 um 7:07 schrieb gwepower notifications@github.com:
Hi greezybacon,
I have checked woth the firefox console that I get a HTTP/1.1 500 Internal Server Error (if you want I can send you a window capture). For example, when I try to select a canned response i get this:
https://www.global-wellness-emporium.com/osticket/scp/ajax.php/kb/canned-response/3.json?tid=343&_=1380973482025 Método de la petición: GET Código de estado: HTTP/1.1 500 Internal Server Error
It looks to me that the URL is not well constructed here: "ajax.php/kb/" so maybe that is the problem.
I am so desperate to find a solution to this issue and others that I have with osticket, that I posted this on osticket forum willing to pay to any developer that could find me a solution and make my osticket installation work perfectly:
I also sent that same email to osticket developer team three times and I did not receive any response at all. So if you want I can pay you to get this and the other problems I have and maybe later you can post the solution here. Osticket is a great software but not being able to solve your problems even trying to pay the developer team is a thumbs down for this software.
— Reply to this email directly or view it on GitHub.
Yes, the strange configuration on Godaddy servers is the problem. Unfortunately, I don't have a Godaddy hosting account, so I can't reproduce and correct the issues on my own.
Von meinem iPhone gesendet
Am Sep 27, 2013 um 16:20 schrieb Marie notifications@github.com:
Hello, Greezybacon. My site is sadly hosted on Godaddy and I have the same problem (no statistics, no canned responses). Has the server anything to do with it? Thanks...
— Reply to this email directly or view it on GitHub.
The only thing I see in my error logs is that a 500 error page cannot be found when I access any of the pages in osticket with the ajax problem, nothing else:
[Sat Oct 05 11:09:32 2013] [error] [client 201.141.140.147] File does not exist: /home/globalw8/public_html/500.shtml, referer: https://www.global-wellness-emporium.com/osticket/scp/tickets.php?id=347
Is there anyway to activate a debug system in osticket?
You can tell osticket to display errors. I dont think that this has changed recently but how to is listed here:
http://www.tmib.net/frequently-asked-questions-faq-about-osticket-17st#3
On Sat, Oct 5, 2013 at 11:12 AM, gwepower notifications@github.com wrote:
The only thing I see in my error logs is that a 500 error page cannot be found when I access any of the pages in osticket with the ajax problem, nothing else:
[Sat Oct 05 11:09:32 2013] [error] [client 201.141.140.147] File does not exist: /home/globalw8/public_html/500.shtml, referer: https://www.global-wellness-emporium.com/osticket/scp/tickets.php?id=347
Is there anyway to activate a debug system in osticket?
— Reply to this email directly or view it on GitHubhttps://github.com/osTicket/osTicket-1.7/issues/422#issuecomment-25750306 .
One word of caution, if you enable error display, bear in mind that Ajax requests are crashing, so you'll need to use your browser's developer tools to read the raw response from the server for the request to retrieve the PHP error messages
Von meinem iPhone gesendet
Am Oct 5, 2013 um 10:49 schrieb ntozier notifications@github.com:
You can tell osticket to display errors. I dont think that this has changed recently but how to is listed here:
http://www.tmib.net/frequently-asked-questions-faq-about-osticket-17st#3
On Sat, Oct 5, 2013 at 11:12 AM, gwepower notifications@github.com wrote:
The only thing I see in my error logs is that a 500 error page cannot be found when I access any of the pages in osticket with the ajax problem, nothing else:
[Sat Oct 05 11:09:32 2013] [error] [client 201.141.140.147] File does not exist: /home/globalw8/public_html/500.shtml, referer: https://www.global-wellness-emporium.com/osticket/scp/tickets.php?id=347
Is there anyway to activate a debug system in osticket?
— Reply to this email directly or view it on GitHubhttps://github.com/osTicket/osTicket-1.7/issues/422#issuecomment-25750306 .
— Reply to this email directly or view it on GitHub.
This has never been fixed for me either. No on GoDaddy, .htaccess file in place with AcceptPathInfo On, everything mentioned in this file has been done.. but still I get
Failed to load resource: the server responded with a status of 400 (Bad Request)
for every Ajax response. Not having this problem on any of the 15 or 20 other web based apps we are using, so why has osTicket chosen a non-standard way of handling AJAX requests?
I'm not sure if I should bother posting, considering that osTicket is so far beneath you.
That said, Http 400 means that the request is being handled by osTicket; however the PATH_INFO variable is not initialized correctly by the http server.
You could help if you would add
var_dump($_SERVER);
die();
To scp/ajax.php
just before the line where the system responds with HTTP 400, and send the output snarfed from the developer tools window.
Then I could inspect how we should perceive the PATH_INFO on your servers.
Cheers,
To clarify, the code needs to go above the bottom line of scp/ajax.php
above the line that calls the resolve
method of the dispatcher
hi i have fixed this issues by go to /etc/apache/ sudo nano /etc/host and add host name like 127:0:0:1 l localhost and after that go to /etc/apache2$ sudo nano httpd.conf add servername like localhost and set AcceptPathInfo On
Hi amitkiwi
Can you please describe in detail, where we can find these files. etc/apache/ sudo nano /etc/host ----> Are these OsTicket files or Godaddy files.
Please find the my screen shot of my Godaddy account.
Thanks raja18j
Hi Raj you can not found any files in godaay files when you work on ubuntu server via command line we fetch host file where you can change host name
Thanks
On Tue, Sep 2, 2014 at 9:29 PM, raja18j notifications@github.com wrote:
Hi amitkiwi
Can you please describe in detail, where we can find these files. etc/apache/ sudo nano /etc/host ----> Are these OsTicket files or Godaddy files.
Please find the my screen shot of my Godaddy account. [image: osticket] https://cloud.githubusercontent.com/assets/8630247/4121274/d8a82e7e-32b9-11e4-99af-23726f0034af.PNG
Thanks raja18j
— Reply to this email directly or view it on GitHub https://github.com/osTicket/osTicket-1.7/issues/422#issuecomment-54174231 .
This e-mail and all attachments are intended solely for use by the intended recipient and may contain confidential / proprietary information of KiwiTech, LLC, subject to important disclaimers and conditions including restrictions on the use, disclosure, transfer or export of such information. If you have received this message in error or are not the named recipient(s), please immediately notify the sender at the telephone number stated above or by reply e-mail and delete this e-mail from your computer
@tomashastings thank you OS Ticket + NGINX + AJAX issue is been fixed. Finally I have got the solution, in order to short out this issue you need to perform 2 steps Step 1: function get_pathinfo() as mension https://github.com/tomashastings/osTicket-1.7/blob/develop/include/class.osticket.php and updated host Step 2: location ~ ^/ajax.php/(.)$ { tryfiles $uri $uri/ /ajax.php; } location ~ ^/scp/ajax.php/(.)$ { try_files $uri $uri/ /scp/ajax.php; }
fon
hm
@hussainwazir are you spamming us?
I'm no longer a user of osticket. Can I get removed from this thread. Thanks
On Monday, November 30, 2015, ntozier notifications@github.com wrote:
@hussainwazir https://github.com/hussainwazir are you spamming us?
— Reply to this email directly or view it on GitHub https://github.com/osTicket/osTicket-1.7/issues/422#issuecomment-160714254 .
Jeremiah Bjorgaard - 913.738.4448
@jbjorgaard
Thanks!
On Mon, Nov 30, 2015 at 1:26 PM, ntozier notifications@github.com wrote:
@jbjorgaard https://github.com/jbjorgaard
- log into github.
- in the upper right click the down arrow to the right of your gravatar icon.
- click settings
- click notification center
- change the settings to your hearts desire.
— Reply to this email directly or view it on GitHub https://github.com/osTicket/osTicket-1.7/issues/422#issuecomment-160732867 .
Jeremiah Bjorgaard - 913.738.4448
Hi, did someone found solution/s for this issue?
@blckhwk I would recommend that you visit the support forums and post a thread about your situation and your information. Posting updates on resolved threads will likely go unanswered and you have not provided us with any meaningful environmental details with which to assist you.
Please read before requesting assistance: http://www.osticket.com/forum/discussion/77765/please-read-before-requesting-assistance#latest
Forums: http://www.osticket.com/forums
Other wise there are a number of solutions here on github regarding nginx and this issue.
I'm having an issue with the tooltip boxes on all the "list" pages (system log, open ticket list). The little window that comes up doesn't contain any info - I'm assuming this would be how I get more info on the error log entries, so it makes the screen quite vague and useless if the tooltips don't populate.
Is there supposed to be content there on most pages? It does the same thing in Chrome, Safari, and Firefox..
OSTicket: v1.7-RC3+ PHP: 5.4.4 Browser: Safari 6.0.2 on Mac OS 10.7.5
Cheers,
whiteatom