Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem: When you edit, export or clone a view, the 'view' tab gives a 'page not found'.
Reason:
In the views_ui.module the callback to create the 'view' tab points to an unexisting function:
function views_ui_add_menu_items(&$items, $view, $url, $base = TRUE, $args = array()) {
if (user_access('administer views')) {
if ($base) {
// we also have to add the administrative 'view' of the view in some
// cases
$items[] = array('path' => $url,
'title' => t('View'),
'callback' => 'views_page',
'callback arguments' => array_merge(array($view->name), $args),
'access' => user_access('administer views'),
'type' => MENU_CALLBACK);
}
..
That should be:
'callback' => 'views_view_page',
Attached you'll find a patch.
Comment | File | Size | Author |
---|---|---|---|
vieuw_ui_0.patch | 1.05 KB | Jo Wouters | |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedI swear, I looked at that for at least an hour without figuring out I had the function name wrong. Sigh. Thanks.
This is the major thing that's held up the 1.6 release!
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedApplied. I am grateful for this fix, and am only sad that it took me so long to get to it.
Comment #3
Jo Wouters CreditAttribution: Jo Wouters commentedGreat! I'm happy I could help you in improving views (even if it was only by changing 1 line :-)
I suppose I can mark this fixed.
Comment #4
(not verified) CreditAttribution: commented