Create an override for an existing page, and navigate to it. Then delete the page from the form on "admin/structure/pages/existing-pages". Navigate to the page again, and you are met with the following notices:

  • Notice: Trying to get property of non-object in pm_existing_pages_pm_existing_pages_build_subtask() (line 168 of /drupal/sites/all/modules/pm_existing_pages/plugins/tasks/pm_existing_pages.inc).
  • Notice: Trying to get property of non-object in pm_existing_pages_pm_existing_pages_build_subtask() (line 172 of /drupal/sites/all/modules/pm_existing_pages/plugins/tasks/pm_existing_pages.inc).
  • Notice: Trying to get property of non-object in pm_existing_pages_pm_existing_pages_build_subtask() (line 174 of /drupal/sites/all/modules/pm_existing_pages/plugins/tasks/pm_existing_pages.inc).

Clearing the cache removes the notices.

CommentFileSizeAuthor
#2 1442018-2.patch1.25 KBswentel

Comments

swentel’s picture

Could reproduce indeed.

I'm thinking to throw a message that there's an existing variant for this path which should either we disabled or deleted first, otherwise, there's going to be stale data left in the database.

swentel’s picture

Status: Active » Fixed
StatusFileSize
new1.25 KB

Patch attached, committed and fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.