Greetings,

Really would love to use this module as it can be VERY useful to my users. However, I just cannot get it to work...

After intalling and making all the settings, the link does appear on my selected content types. But when clicking on the link, it flashes but never changes from "You Are Not Watching". I have double checked all permissions and settings and still no go.

Any ideas?

Thanks Much!

-- Dave

Comments

solipsist’s picture

Try disabling javascript in your browser and try clicking the link.

The AJAX code calls a certain path on your site that returns a value that indicates whether the request was successful or not, it would appear that the request times out, thus the link fading out without returning. The default behavior is that the link fades out and fades in upon success. If the request fails, the link fades in the same state/color as before. If successful, color/state changes.

Users without JS support in their browsers have the same functionality, but their browsers need to reload the page to handle the request (compared to the javascript ajax request which happens in the background, hidden from the user).

solipsist’s picture

Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)
ldway’s picture

Turning JavaScript OFF in the browser works. However, obviously I cannot tell everyone on my site to do this just to use this function. So what is the fix for this problem? Is there something I need to do on my server to make this AJAX work correctly?

I am using other AJAX modules that work just fine such as Fasttoggle. Why would those modules work for AJAX and not this one? I also turned off the other ajax modules to see if they were incompatible with this one but did not make a difference.

Any ideas on why other AJAX modules work such as fasttoggle but not this one?

Thanks,

Dave

solipsist’s picture

Turning JavaScript OFF in the browser works. However, obviously I cannot tell everyone on my site to do this just to use this function. So what is the fix for this problem? Is there something I need to do on my server to make this AJAX work correctly?

I wouldn't suggest you tell people to disable JS, it's not an option. It's just a way to diagnose the problem.

I suspect the problem is caused by a request timeout. The timeout value is set to 4 seconds so it should work even with satellite link connections that tend to have very high latency. You can open modules/watcher/js/watcher.js, find line 53 and change the timeout value to twice as much (8000 ms) and see what happens. You can also use firebug's performance testing features to see much time the AJAX request actually takes.

Another question, does it happen with all browsers or just one particular?

ldway’s picture

changing the timeout did not work... I should have mentioned that the link does fade out and back in all within about 1 second, so I don't think there is any problem with that... I am running on a very fast dedicated server.

It is a problem with both IE and Firefox.

I am also running an module called content blocker which uses the fasttoggle AJAX module. Is there a way I could make this module also use the fasttoggle module since I know that using fasttoggle ajax functionality works?

Dave

ldway’s picture

Forgot to mention that Firebug is reporting an average of 350 ms for it when clicked on.

solipsist’s picture

Can you send me the URL of your site along with a user account and password? You can use my contact form. I need to have a look at this myself.

solipsist’s picture

I suspect the issue stems from the $_GET superglobal not being available*. Can you email me a copy or link to a printout of phpinfo()?

* http://www.php.net/manual/en/ini.core.php#ini.variables-order

ldway’s picture

sent it to ya. :)

solipsist’s picture

Ok, thanks, I can rule that theory out.

Your site keeps sending a "302 Temporarily Moved" header with the response. On the sites I've used the module a "200 OK" response is made. It's likely you have a module installed that hooks into the request and alters its response header. Try disabling every contributed module except Watcher and see what happens. Pay special attention to SEO modules that serve to redirect users.

I haven't seen this happen anywhere else and I'd like to fix it if possible.

solipsist’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)