Closed (fixed)
Project:
Tweet Button
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2011 at 05:38 UTC
Updated:
2 Jan 2012 at 21:40 UTC
I get the following php error twice when enabling the module or clearing the cache:
Warning: Invalid argument supplied for foreach() in _block_rehash() (line 386 of [path]\modules\block\block.module).
When disabling and uninstalling the module the errors are gone when clearing the cache.
Comments
Comment #1
chia commentedMany thanks for testing it, it seems to have incomplete implementation of hook_block_info
I have fixed it. Should show up when the next time package script will run.
Comment #2
chia commentedmarking as fixed based upon above comment
Comment #3
tsvenson commented@chia No new dev version has popped up yet. When looking at CVS messages, it seems you committed this patch to 7--2 and not 7--1. Also, when using the CVS viewer I get a download requester when clicking on the latest version (FF) and not a normal HTML page showing the diff. Not sure what's going on here, maybe it has something to do with that the new file is 6.66 KB big according to Windows :)
Anyway I downloaded the new .module and tested it. It works for me, the error msgs are gone.
Comment #4
chia commentedYes, i think i might have commited it to 7--2
Many thanks for testing and helping me out. I will make the change to 7--1 branch soon.
Comment #5
chia commentedThe module now implements hook_block_info, so it should work okay now.