When I click on "Manage display" in the Drupal 7 contextual menu, Display Suite isn't opening its pages in the overlay, nor using the admin theme.

Comparing the code with Webform, I see that Display Suite is missing an implementation of hook_admin_paths(). Dropping the following function into ds.module fixes the problem for me.

/**
 * Implements hook_admin_paths().
 */
function ds_admin_paths() {
  if (variable_get('node_admin_theme')) {
    return array(
      'node/*/display' => TRUE,
    );
  }
}

I'm not sure whether there are any other paths for Display Suite that should also be listed here.

Comments

swentel’s picture

Status: Active » Fixed

Committen and pushed. Also add the user/*/display and taxonomy/term/*/display paths as well.

astutonet’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Status: Fixed » Active

Hi.

I also have this issue in dev version.

Some links in admin area, like Fields and Views Mode don't work. In Layout page, links also don't work.

I don't test without Overlay.

Tks.

swentel’s picture

Status: Active » Closed (cannot reproduce)

Can't reproduce this.

astutonet’s picture

Category: bug » support
Status: Closed (cannot reproduce) » Active

Ok,

If you can´t reproduce this, you can at least help me to solve this?

Tks

swentel’s picture

Status: Active » Closed (cannot reproduce)

Try to give me steps to reproduce. I can't really help you from where I'm sitting :)
+ all callbacks start with 'admin', so if anything doesn't work, this is a core bug.

astutonet’s picture

Status: Closed (cannot reproduce) » Active

Ok

I think I found the error. Perhaps the problem isn't related to the DS, but it is necessary to evaluate the issue in more detail:

When I'm on page of DS (http://localhost/drupal/en/home#overlay=en/admin/structure/ds) and I click in Fields, for example, a new page is loaded in this address: http://localhost/drupal/en/home#overlay=en/admin/structure/ds/fields.

Nevertheless, at the opening, I receive the following error message:

The website encountered an unexpected error. Please try again later.

In the log files of PHP, MySQL or Apache, there are no error messages, but in dblog I found the following error message:

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drupal.ds_fields' doesn't exist: SELECT t__0.* FROM {ds_fields} t__0; Array ( ) in ctools_export_load_object() (line 427 of C:\wamp\www\drupal\sites\all\modules\ctools\includes\export.inc).

This error also is repeated with other links of the DS.

I would also like to note that this site is multi language.

Can you help me?

Tks.

swentel’s picture

Status: Active » Closed (fixed)

It means the ds_fields table isn't available. You should uninstall the module completely. Related see, #1267050: PDOException: Table ds_view_modes doesn't exist

astutonet’s picture

After uninstall and reinstall the issue was solved.

Tks.