I've tried your module. It doesn't work properly on my site.
I've enabled it, set ajax settings on admin/build/block/configure/myblock/0.
Block wasn't visible. I looked it with firebug. And that's I've seen:
Without JS enabled that works fine. It shows cached block;
I looked with Mozilla YSlow addon and and saw, that no additional HTTP request was made (only including ajaxblocks.js).
Moreover, when I deleted the module, I've got following SQL error:
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE cid = 'ajaxblocks'' at line 1 query: DELETE FROM WHERE cid = 'ajaxblocks' in /usr/home/webadm/www_root/includes/cache.inc on line 179.
Auxiliary information:
I use standart drupal caching.
- page caching - on.
- page compression - on.
- block caching - off
- optimize css - on
- optimize js - on
Some time ago I've installed and uninstalled modules cache router and boost. Changed settings.php to default.
Comments
Comment #1
warobushek commentedI've tested it with another copy of my site.
Cache router and boost can't be the reason of this bug, because that copy never contained these modules.
Comment #2
warobushek commentedProblem is in JQuery version
your module works fine with standart drupal jquery version - v 1.12.2.3
but with jquery v 1.4.2 it doesn't ((
problem is in LF's in block content
all is ok, if I make single line block content
hm.. quite strange behaviour: it works only if block consists of [0-9]. I tried to add english letters - failed..
So, probably, I should accept using of jquery 1.2.6.
Comment #3
maximpodorov commentedThe module also works on sites with jQuery Update installed (i.e. jQuery 1.3.2).
AFAIK jQuery 1.4 is not supported at all (see http://drupal.org/node/685060 and http://drupal.org/node/479368).
As for uninstallation problem, yes, it's the bug in Ajax Blocks module. In ajaxblocks.install file cache_clear_all('ajaxblocks') must be replaced by cache_clear_all('ajaxblocks', 'cache')
I'll fix it in the next release.
Comment #4
warobushek commentedThanks for quick answer.
Yes, cache_clear_all('ajaxblocks', 'cache') works fine.
Comment #5
maximpodorov commentedComment #6
maximpodorov commented