A new bug was introduced with the code added to render_pane function for IPE in 7.x-3.10. If the user is attempting to perform in-place editing on the front page of a site, the destination is set to "front". This causes the following error to be thrown:

Notice: Trying to get property of non-object in node_page_title() (line 2200 of /modules/node/node.module).

This can be fixed by checking if the current destination is "front", and skipping the evaluation if it is. Please review the attached patch, or let me know if there's a more appropriate way to fix the problem. Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ron_s created an issue. See original summary.

ron_s’s picture

ron_s’s picture

Just to clarify, this error is seen when using IPE + Mini Panels. The Mini Panels sub-module redirects the user to a separate page to perform modifications, and the page will have a ?destination=front query string. This is what generates the error.

joelpittet’s picture

Thanks for the report @ron_s, I'm a bit leary of the solution, where is 'front' path coming from?

ron_s’s picture

The front path is coming from the _panels_mini_ipe_editor function in the Mini Panels In-Place Editor module. This provides IPE functionality for mini-panels.

It creates a "Return to previous page" button that for the instance when on the front page, will have a destination = "front":

  if (isset($_GET['destination'])) {
    drupal_set_message(l(t('Return to the previous page'), $_GET['destination']) . '.');
  }

See:
https://git.drupalcode.org/project/panels_mini_ipe/-/blob/7.x-1.x/panels...
https://www.drupal.org/project/panels_mini_ipe

ron_s’s picture

This patch still applies cleanly to the new 7.x-3.11 release.

Let me know if I can provide any further information, or if we should take a different approach to resolve this issue.

joelpittet’s picture

Thanks @ron_s, I'll add it to the target for the next release.

joelpittet’s picture

joseph.olstad’s picture

triggered more tests