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

maximpodorov’s picture

Dzień 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?

hexen’s picture

hehe, dzień dobry ;)

Can you tell me how to exacly do it? Step by step?

maximpodorov’s picture

Can 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.

hexen’s picture

http://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 :)

88.156.26.232 - - [07/Apr/2012:13:16:49 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-1.gif HTTP/1.1" 200 673
88.156.26.232 - - [07/Apr/2012:13:16:50 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-2.gif HTTP/1.1" 200 1849
88.156.26.232 - - [07/Apr/2012:13:16:51 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-3.gif HTTP/1.1" 200 3208
88.156.26.232 - - [07/Apr/2012:13:16:51 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-4.gif HTTP/1.1" 200 1737
88.156.26.232 - - [07/Apr/2012:13:16:52 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-5.gif HTTP/1.1" 200 4176
88.156.26.232 - - [07/Apr/2012:13:16:53 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-6.gif HTTP/1.1" 200 9427
88.156.26.232 - - [07/Apr/2012:13:16:54 +0200] "GET /sites/all/modules/ajaxblocks/images/loader-8.gif HTTP/1.1" 200 723

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.

maximpodorov’s picture

It'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?

maximpodorov’s picture

Issue summary: View changes

just correction of my poor english ;)