Closed (fixed)
Project:
ImageField
Version:
6.x-3.0-alpha4
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2009 at 20:49 UTC
Updated:
24 Mar 2009 at 23:10 UTC
When I create a view, and use an ImageField as the Field, Anonymous users cannot see the Image, and no HTML is produced. I think this is a views issue, but this information is simply sent to the views, and could likely be an ImageField or Image Cache problem. I've looked over all the Permissions and googled this extensively, and cannot find a fix.
Any help is appreciated.
Drupal 6.9
Image 6.x-1.0-alpha4
ImageCache 6.x-2.0-beta5
ImageField 6.x-3.0-alpha4
$view = new view;
$view->name = 'Photo_Link_Images';
$view->description = 'Photo Links under the left Nav';
$view->tag = 'Photo Links under the left Nav';
$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(
'field_photos_fid' => array(
'label' => '',
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'image_nodelink',
'multiple' => array(
'group' => 1,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => 0,
),
'exclude' => 0,
'id' => 'field_photos_fid',
'table' => 'node_data_field_photos',
'field' => 'field_photos_fid',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'random' => array(
'id' => 'random',
'table' => 'views',
'field' => 'random',
),
));
$handler->override_option('filters', array(
'status' => array(
'operator' => '=',
'value' => '1',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
'title' => array(
'operator' => '=',
'value' => 'Photos',
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'case' => 1,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('header', '<div class="sidephoto">');
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 0);
$handler->override_option('footer', '<a href="/resources/photos" title="photos" class="ppp"><img src="/images/photos.gif" alt="photos" /></a></div>');
$handler->override_option('footer_format', '3');
$handler->override_option('footer_empty', 0);
$handler->override_option('items_per_page', 1);
$handler->override_option('distinct', 1);
$handler = $view->new_display('block', 'Photo Links', 'block_1');
$handler->override_option('block_description', 'Photo Links');
$handler->override_option('block_caching', -1);
Comments
Comment #1
primalmedia commentedI'd just like to add that ImageField and ImageCache and Views work correctly on every other part of the site, just not when ImageField is called as a Field.
Comment #2
primalmedia commentedStill looking for an answer to this.
Comment #3
Buddharide commentedI'm having this same problem. HTML is not showing up for anonymous users. This post #364604: Part of the view does not show up correctly for Anonymous users. stated that this is a CCK problem, not an Views problem. Does anyone have a solution?
Comment #4
Buddharide commentedComment #5
deanw commentedtry going to /admin/user/permissions. most likely there are no anony permissions checked for view field_xxxxx as suggested here - http://drupal.org/node/364604. This fixed similar issue I was having.
Comment #6
Buddharide commentedPermissions did not solve the problem, but upgrading Views to 6.2.3 did solve the problem. Don't know why the upgrade made any difference, but that's what solved it. Thanks for your suggestions.
Comment #7
quicksketch