Jump to content

[solved] Ghost pages that are not deletable


Recommended Posts

Sorry for the post title, I don't know how to describe it in short, and the problem is difficult to explain.

On a clients big website Google WMT pointed out to me that some URLs are not crawlable. I found out that the pages in question end like .../for-page-2095/ WHAT?

Some 1.5 years ago I created a repeater for a FAQ, and at that moment PW created pages with the wrong template at the wrong places. I checked the created dates and they match to the second. Those pages have a template baustoff-artikel and are children of the same template which was set to not allow children! The parent is one page among 2000 others and I cannot see why this page was chosen as a parent.
The parent should have been in /admin/repeaters/ and some some pages are there, but with the wrong parent as well.

However... I am unable to delete those pages, neither through the admintree, nor through the API.
I am able to delete the parent page Steinplatte ArtNr 1590, but then I cannot empty the trash! Error message: This page may not be deleted

Some screenshots:

The parent with the template baustoff-artikel which is not allowed to have children:

tree2.jpg.92ca5dbe0e9c220642cef432a9d075eb.jpg

The pages in /admin/repeaters/

admin_repeater2.jpg.3dd5e286e57fff66963c000ce41411f5.jpg

The wrong pages have nothing to do with the repeater locations.

I have deleted the Repeater that caused this, and want to delete the orphaned pages.

I am extremely puzzled and a bit traumatized and have no idea what to do next. If anyone has any idea or experienced something like that I would be grateful for a hint.

(PW version back then pre 3.0.98 and now 3.0.98)

Link to post
Share on other sites

Repeater pages themselves are not deletable because they are system status; if you activate advanced mode and look at the settings for any of those pages, you will see that they have that checked.

1531800242_Edit_Page__blog-post-2__localhost.jpg.6cac2725fd0163f287008b234f650e4d.jpg

In order to remove them you have to first remove that flag.

 

  • Like 3
Link to post
Share on other sites

Thanks a lot for this hint!

I mirrored the complete website(10 GB sigh...) to local. This way I can test without breaking the live site.

I will check with a fresh mind tomorrow. Everything I could expect today would be mistakes.

Link to post
Share on other sites
16 hours ago, Macrura said:

In order to remove them you have to first remove that flag.

 

Thanks again @Macrura

I did it exactly like in the post above. Some pages in a loop and the pages in /admin/repeaters/ I changed the status directly in the database. There seem to be no sideeffects...

Solved!

Link to post
Share on other sites
  • 4 weeks later...

I have these sort of pages created as a side effect of trying to add new pages with repeaters via the API. I'm sure it's something I'm doing wrong and I'm still trying to work it out, but does anyone know WHY they get created, where they get their random location from and what this is a symptom of?

Thanks in advance for any hints!

 

Link to post
Share on other sites

To answer my own question - this repeater came in using page import/export and when I looked in detail I could see it had a random parent in my content tree. I opted to delete (had to use API to delete system things like associated templates) and recreate from scratch (not import), then all was good.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...