Posted by ManyNancy on January 30, 2010 at 4:50am
3 followers
Jump to:
| Project: | File Aliases |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
IN views, if I don't have the Image: Image field set as a field, all my nodes are displayed correctly. Once I add the Image:Image as a field, only 1 image is displayed. Strange bug, please help. :)
Comments
#1
What kind of view?
I'm sorry but without more details to go on, I can't really help. Obviously, all this stuff works fine for me on my system, otherwise I'd have already fixed it ;)
#2
Any views.
Here's an export:
$view = new view;$view->name = 'image';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'image_image' => array(
'label' => 'Image',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'image_derivative' => 'thumbnail',
'exclude' => 0,
'id' => 'image_image',
'table' => 'node',
'field' => 'image_image',
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'image' => 'image',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('row_options', array(
'inline' => array(),
'separator' => '',
'hide_empty' => 0,
));
I'm using views 2.8, if that makes a difference.
Thanks.
#3
Your view works fine for me, with Views 2.8 and latest dev of Image.
#4
You appear to have edited your comment. I can't tell what you've changed.
If you have a new or updated view of the problem, please post a new comment so I understand what you're doing.
#5
Sorry I didn't edit anything, due to various things I had the edit screen open for some reason and I hit save at some point, without writing anything.
Anyway I have memcache, but that shouldn't cause problems. Also have the display suite module, maybe that's the culprit? It's too integral to my site to really remove it to test.
Not sure what else I can think of.
#6
I'd never heard of display suite -- thanks for bringing it to my attention; it might come in useful!
As for whether that causes the problem, I've no idea. I suggest you set up a localhost test site and try to reproduce the problem starting with just image module, then adding modules from your site until you can cause the problem.
#7
ManyNancy,
Have you identified a cause yet? The same thing has started happening to me. I am going to disable some modules to see if I can find the cause.
#8
Sorry, haven't had a chance to set up a test site yet, I will soon though.
#9
I have found it!
I was trying out http://drupal.org/project/file_aliases . Disabling File Alias module has restored Image:Image field in Views. So now that we have the 'what', we need the 'why'.
Scott J
#10
Moving to that project.
#11
#12
Oh, thanks!