New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spinning icon problem (maybe IPv6 or browser dependent) #1439
Comments
Tricky one. The JSON response and server log show that the request is handled correctly. The problem seems to be purely on the client side, hence a Javascript problem, and for once it's MSIE that works :-P Since your server is live on the net, could you set me up a temp account on your YOURLS setup? 1% chance I'll find something that you didn't see but hey, who knows... |
@ozh: I've sent you account data by e-mail. |
Well... In short: I have no idea. It's not about IPv4 or v6, I tried both, and anyway I have several YOURLS running on both and it works smooth. Everything seems to work fine (response content-type, etc) Is there any funky host/server setup that could trigger a false "Same Origin Policy" error? (ie jQuery thinking the response doesn't come from chtau.be?) |
I am using the FreeBSD jails mechanism on my server: The PHP interpreter is running inside a jail and is separated from the rest of the system. It has its own (internal) IP address, too. Requests to .php files are forwarded into the jail by nginx and processed by php-fpm inside the jail. I am not sure if jQuery would have any problems with that setup, as I don't know how jQuery works. At least, jails are very commonly used on servers running FreeBSD. There is a Wordpress installation in the same jail where YOURLS is located and it is running flawlessly. As far as I understand, jQuery is running on the client side within the browser? Is there any possibility to debug jQuery stuff or enable some kind of logging, so I can take a deeper look into this? |
Firebug in Firefox shows only normal stuff for the jQuery ajax stuff. If you are positive that everything ajax works in WP (everything that refresh in the admin area without page reloading, for instance, when you write a blog post, add tag and you click on the "Choose from the most used tags" link), then I'm totally lost and have no idea. There has been no similar issue raised after a couple dozens of thousands install, it has to be something very specific to your server, but I have no idea what... |
Just curious: in your |
Just changed it to And for WordPress: "Choose from the most used tags" opens the most used tag right underneath it, without me reloading the page of course. |
Last idea: try installing YOURLS in a subdirectory on blog.chtaube.eu and chtaube.eu (eg blog.chtaube.eu/yourls/ and chtaube.eu/yourls) and tell if that works or not (I'm still investigating the "funky host/server setup" way) |
Copied it here and modified |
Well... I'm officially out of ideas. Sorry, I don't know. |
Ok, thank you very much for your help! I will sleep over this, maybe I have another clue tomorrow. I will let you know if I find something. |
I just updated from PHP 5.3 (with suhosin 0.9.33) to PHP 5.5 (without suhosin) and this fixed the issue. I guess some security stuff within suhosin might be the cause for the spinning icon issue I had. I could switch back to PHP 5.3 and remove the suhosin module to further investigate this, but I think the public interest might not be too high as I seem to be the only reported case with this problem. :-) |
Out of curiosity, check issue #1463 also related to suhosin |
Hi folks, Nothing in my error logs, just this in my access logs : Except suhosin, do you have any idea what could be the origin of that problem ? Note : the "edit" button doesn't work either (but the "delete" button works). |
I installed YOURLS 1.6 on my FreeBSD root-server and have the "spinning icon" problem: The "Shorten" button gets a little spinning icon forever and nothing happens. However, clicking "Admin interface" afterwards shows the new link has been successfully added to the database.
I read the wiki-page about the "Spinning Icon" problem and tried to pin down the problem:
In Firebug, /admin/admin-ajax.php is requested and successfully served by the server (Status: 200 OK).
The answer from admin-ajax.php as shown in Firebug looks like this:
I'm not an JSON expert, but the response looks good to me. Maybe someone can give me a hint what might be wrong.
I thought about an IPv6 related problem and tried accessing via IPv4. I wasn't able to fix it down to this, but I found out that Internet Explorer 8 had no problem with editing/adding URLs. No spinning icon there with either IPv4 nor IPv6.
This is the entry in the nginx log file:
PHP and Suhosin show no error messages in its logfiles.
Browsers I have tested were:
* Iceweasel 3.5.16 (Firefox in Debian Linux)
* Mozilla Firefox 20.0.1 (Windows)
* Opera 12.15 (Linux)
* rekonq 0.5.0 (Linux)
* BlackBerry Browser 10.1.0.2354
* Midori 0.2.4 (Linux)
* Internet Explorer 8 (the only working browser!)
I have updated YOURLS to 1.7-alpha from github. No change.
Server:
The text was updated successfully, but these errors were encountered: