blocks created by views (block views) are not refreshed (Drupal 5.9, Views 1.7)

venuslabs - July 29, 2008 - 12:58
Project:Block Refresh
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Hello:

The above code works fine for the default blocks provided by Drupal. i.e. Who's online
etc, but it breaks down for blocks that are created using Views.

To reproduce the problem do the following
1 - Install vanilla Drupal 5.9
2 - Install Block Refresh 5.x-1.x-dev
3 - Install Views 5.x-1.6.
4 - Enable the modules Views and Block Refresh
5 - Create 5 sample pages with title and body
(i created Page1-Body of Page1 ...)

6 - Create a Block View
http://www.example.com/admin/build/views/add

  1. Basic Information
    • Name: testview1
  2. Block
    • check "Provide Block"
    • view type "List View"
    • title "Test View 1"
    • nodes per block "1"
  3. Fields
    • Node: Title
  4. Filter
    • Node: Type Is One Of Page (option - not exposed)
  5. Sort Criteria
    • Field Random Ascending

7 - Save view
8 - Admin - Blocks
9 - Enable block testview1 and who's online
10 - Configure block testview1 and who's online and enable manual refresh
11 - open a page - www.example.com to see both the blocks with the manual refresh links.
12 - please use firefox with firebug plugin enabled
13 - open firebug and see console window
14 - click on refresh for Who's online
you'll see a message in the console window
"GET http://www.example.com/block_refresh/user/3 (208ms)"
and that response looks fine
15 - click on referesh for Test view 1
you'll see the failed request at
"GET http://www.example.com/block_refresh/views/testview1 404 (188ms)"
it's returning a 404 it seems.

Thanks

Yashesh Bhatia
Venuslabs.

AttachmentSize
block_refresh.png166.96 KB

#1

venuslabs - July 29, 2008 - 13:07

I'm attaching the log file i created. specifically these are breakpoints and variable values in the callback function block_refresh_block_content() in block_refresh.module

AttachmentSize
log1.txt 3.22 KB

#2

Rysk - August 16, 2008 - 11:27

I'm getting the 404 issue as well, but if i navigate to the page itself, the block elements are listed after the < /html> tag. Not sure what I can do about it at this point, other than just say the module doesn't work in it's current release. (ex. http://kuroanime.blogsite.org/portal/block_refresh/avatar_blocks/0 )

 
 

Drupal is a registered trademark of Dries Buytaert.