Posted by ManyNancy on March 6, 2010 at 8:34am
10 followers
| Project: | Views Display Tabs |
| Version: | 6.x-1.0-beta6 |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
If I leave show when empty unchecked, the tab of the empty view is still shown. Clicking to it makes the whole tabset disappear! - #734070: Empty views causes tabs to disappear
Isn't the behavior supposed to be, if show when empty is unchecked, the empty tab is not shown?
Thanks for making this great module.
Comments
#1
subscribe
#2
subscribe
#3
Subscribe.
#4
#5
This is a serious problem. You are also unable to hide a normal view tab if the view is empty. There are plenty treads trying to solve this issue but none was successful.
I thought this module was a solution but now it has the same problem as views tabs.
It shows if the view is empty. Why would you want a button that point to nothing?
#6
Subscribing
#7
I have done a patch, which seems to fix the issue in the 6.x-1.0-beta6 version.
Dont have done the check in $show , since i believe that the author have another thought on this variable.
Please lemme know if it's all good
#8
A new and updated patch is attached, a minor bug is fixed.
It now works if your view contains any arguments.
#9
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 80 bytes) in /sites/all/modules/views/includes/base.inc on line 88
I get this error message when I patch the module and visit a views display tabs website.
My memory limit is 128m.
#10
I have added a new patch, which is removing the view variable after testing if the view tab is containing any data, this should free up a lot of memory.
You should replace the old patch with this one
#11
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 78 bytes) in /sites/all/modules/views/plugins/views_plugin_display.inc on line 223
and
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 76 bytes) in /home/wiki/public_html/sites/all/modules/views/includes/base.inc on line 100
still some errors.
#12
ok I increased my memory limit to 256M but still get the same errors, it even use more memory.
http://utopiaclivias.co.za/ here is a link to show you that my tab menus are not that extensive to use so much memory.
Or I must be patching the wrong version.
#13
I have the same problem. Is there a solution?
Thanks.
#14
sub
#15
Revised patch attached, which applies cleanly to 6.x-1.0-beta6. Works for me with views-6.x-2.16 (no memory issues as reported above).