Seems to fail to block feed source
| Project: | Content Blocker |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi nedjo, I just downloaded the latest version from the project page, and it seems that there is a problem with the ajax in the module. Now when I click to block a content, the ajax starts, but then stops and the mopdule loads a new page that asks if I want to confirm the action. Even if I click to confirm, the link does not change, so it seems to stay at the same state.
Even if I refresh the page, the state stays the same. Also there is this empty array that shows on the admin pages of the site right after I install the module...
Array ( )
Array ( )
Array ( )
Sometimes it only shows once, sometimes much more, like 5-6 times...
Here is what shows in the logs:
Type php
Date Dimanche, Avril 29, 2007 - 10:03
Utilisateur admin
Emplacement http://localhost/geek4/?q=node/136/toggle/contentblocker_leech_news_feed...
Référent http://localhost/geek4/?q=sources
Message: Duplicate entry '136' for key 1 query: INSERT INTO relatedlinks_tracker (nid, keywords) VALUES (136, '') dans C:\apache2triad\htdocs\geek4\includes\database.mysql.inc à la ligne 172.
Importance erreur
Nom d'hôte 127.0.0.1
Hope this helps getting the beta version up and running!
later,
Alex

#1
The user blocking seems to be working fine, but I wonder why is it that when I use the admin user, I get redirected to another page to confirm, but when I'm with another authenticated user them It seems the ajax blocking (for users) works fine??
I tried to use the leech blocker with an authenticated user, and the ajax seems to work as I am not redirected to another page, but the content is not blocked at all, you can always see the nodes...
#2
Thanks for the note. I'd left in some debugging code, I've removed it now.
Some notes:
1. The content blocking won't affect UID 1, who always sees all content.
2. You can follow the 'Content blocker' navigation menu link to see what blocks have been registered. If you don't find a block there, it wasn't registered.
The module continues to work with no errors on my testing. The error message you report seems to come from the relatedlinks module. It may be that an error in that module is preventing the AJAX from working. Pls try with relatedlinks turned off. Pls also try the other Fast Toggle links (e.g., 'promote' a node). If they too have problems, this would tent do confirm the source of the issue as a module other than Content Blocker.
#3
Hi Nedjo,
i removed and uninstalled the related links module, but there still seems to be an issue with the fasttoggle module. When I click on any item to toggle setting, instead of loading the ajax it takes me to some confirmation page, but even if I confirm in that confirmation page, the setting does not change...
I guess I have no other choice than to disable all modules till I find which one interferes with fasttogle...It's weird cause in my first tests all seemed to work ok, but for some reason now, even fasttogle won't work...
Well, I,ll keep you posted on my testings...
Patchak
#4
I think I found the module that was causing the ajax to fail... It's the double-click module, which allows users to double click to go directly to the edit page of a node.
I guess since both modules (fasttogle and dbclick) use ajax there might be some conflict...I'll continue testing by re-enabling one module at a time.
#5
well I can confirm that this is related to the double click and the fasttoggle modules interfering... I guess I'll post an issue, not sure where tho...At least we can confirm that it's not related to this module...