I upgraded to the latest version of views module 6.x-2.8 and now none of my download links work they just appear as text. This is happening in all the views I have created.
Here is an export of my view
7latestcontent:
$view = new view;
$view->name = '7latestcontent';
$view->description = 'Latest Content';
$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(
'title' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 1,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'created' => array(
'label' => 'Date',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'date_format' => 'small',
'custom_date_format' => '',
'exclude' => 0,
'id' => 'created',
'table' => 'node',
'field' => 'created',
'relationship' => 'none',
),
'description_1' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'exclude' => 0,
'id' => 'description_1',
'table' => 'term_data',
'field' => 'description',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
'teaser' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'exclude' => 0,
'id' => 'teaser',
'table' => 'node_revisions',
'field' => 'teaser',
'relationship' => 'none',
),
'upload_fid' => array(
'label' => 'Attached files',
'alter' => array(
'alter_text' => FALSE,
'text' => '',
'make_link' => FALSE,
'path' => '',
'alt' => '',
'link_class' => '',
'prefix' => '',
'suffix' => '',
'trim' => FALSE,
'max_length' => '',
'word_boundary' => TRUE,
'ellipsis' => TRUE,
'strip_tags' => FALSE,
'html' => FALSE,
),
'type' => 'separator',
'separator' => ', ',
'empty' => '',
'link_to_file' => 1,
'only_listed' => 1,
'exclude' => 1,
'id' => 'upload_fid',
'table' => 'node',
'field' => 'upload_fid',
'relationship' => 'none',
),
'description' => array(
'label' => '',
'alter' => array(
'alter_text' => 1,
'text' => 'Download',
'make_link' => 1,
'path' => 'sites/default/files/[upload_fid]',
'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_file' => 0,
'exclude' => 0,
'type' => 'separator',
'separator' => ', ',
'id' => 'description',
'table' => 'upload',
'field' => 'description',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('sorts', array(
'created' => array(
'order' => 'DESC',
'granularity' => 'second',
'id' => 'created',
'table' => 'node',
'field' => 'created',
'relationship' => 'none',
),
));
$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',
),
'vid' => array(
'operator' => 'in',
'value' => array(
'1' => '1',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'vid',
'table' => 'term_data',
'field' => 'vid',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('title', 'Radio Out of the Past Latest Content');
$handler->override_option('header', 'Click on the title of a show to view the entire
page about that poticular show. Click on the download link to download the show.
You can also download the show from the shows main page.
');
$handler->override_option('header_format', '1');
$handler->override_option('header_empty', 1);
$handler->override_option('items_per_page', 7);
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'latestcontent');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => '0',
'name' => 'menu-radioarchives',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));
Comments
Comment #1
Jim Ruby commentedis there a way I can go back to a previous version cause I need people to be able to use them download links it is a main part of my site.thank you
Comment #2
Jim Ruby commentedIf there is not a solution would it be possible to go back to the 2.6 or 2.2 version where things were working correctly?
Thanks sorry for being a bother, but things I try don't change the problem. hope later today brings good news.
Comment #3
dawehnerMake a backup of your site, then you can try out to go back to a previous version. I think it should work, because nothing big changed.
Comment #4
Jim Ruby commentedI went back to 6.x-2.6 and all is fine again my download links are fine again, now for the big question, wonder what changed in 6.x-2.8 to make my views go bad as my views are very very simple. the only thing that stopped working is my "download" link to the path sites/default/files/[file-fid] appeared as text. sorry if I got te tag wrong I copy it from the views when I made it so I know the tag is correct.
Thanks for your help.
Comment #5
merlinofchaos commentedhttp://drupal.org/node/652742 should fix it.