Hello,
I have problems... so, shortly:
I have function, that gets url's from 3rd party site. It's a stock exchange url's system for positioning sites. This function is getting links from 3rd site system. System is definied in bootstrap.inc by this:
require_once './prolink.php';
function is in block, with PHP code filter:
prolink_getLinks();
It's getting simple links in ul list. Something like: text texttdfg [url with anchor] text text. And it's working, but I want to load this block content with ajax to prevent it from caching (boost), and when I turn block into ajax with Ajax Blocks module - it's not working. There is no any content. Function is loaded, it's working (I debugged this), but block is empty.
I've tried to clear cache after every change of any option in block ajax options, also I tried to turn off cache completely, and nothing helps.
Can u help me?
p.s. sorry for my english, I hope it's understandable
Comments
Comment #1
maximpodorov CreditAttribution: maximpodorov commentedDzień dobry, pan. :)
Could you try to see the HTTP requests from your browser to the site (using Firebug or similar tools)? Is there request to /ajaxblocks URL? If yes, what is the result of such request?
Comment #2
hexen CreditAttribution: hexen commentedhehe, dzień dobry ;)
Can you tell me how to exacly do it? Step by step?
Comment #3
maximpodorov CreditAttribution: maximpodorov commentedCan you show me this problem on your site (you can send private message with site link)?
If you can access site's logs (access_log file), please look the lines that contain the word "ajaxblocks". If you can see them, it means that the browser tries to load blocks, and the problem is in the code which generates block contents.
Comment #4
hexen CreditAttribution: hexen commentedhttp://studentcafe.pl - but for now - there is no any ajax block on site
There is only few lines with "ajaxblocks", and they are gif ref's :)
And one after trying again:
178.37.115.102 - - [12/Apr/2012:13:39:42 +0200] "GET /ajaxblocks?_=1334230781861&blocks=block-5&path=node&nocache=1 HTTP/1.1" 200 83
nothing more in access_log file
Also I tryied with other blocks, I mean block from Similar Terms module and it's working fine.
So, where is problem? My block (this one that is not working with ajax_blocks) is working fine without ajaxyfing.
Comment #5
maximpodorov CreditAttribution: maximpodorov commentedIt's more clear now. This is the request which must receive block content:
http://studentcafe.pl/ajaxblocks?_=1334230781861&blocks=block-5&path=nod...
Could you turn on ajax for this block and get the result of this request?
Is it a block which must be shown on front page only? If yes, could you enable this block on other pages and check these pages also?
Comment #5.0
maximpodorov CreditAttribution: maximpodorov commentedjust correction of my poor english ;)