How to delete a page draft that contains errors?

Permalink
I have a couple of unpublished pages that appear under the Drafts heading of the site map. When I select on I get the following error and the option to return to Home.

"Call to a member function getPageTypeHandle() on null"

I would like to delete these pages even though they are only taking a few bytes of disk space. They are just clutter and only cause confusion. If I could find the file(s) I could edit and remove the offending statement.

Any advice or instruction would be greatly appreciated

Rick

 
ob7dev replied on at Permalink Reply
ob7dev
Hey there.

Whenever I have a page that is throwing errors like this, so that there is no way to get into the page settings from the page itself, you need to go to the site map and edit it from there using the modal popups available when you click on the name of a page, and then click one of the options that appears to edit the pages settings from outside the page itself.

Since your pages are drafts and not published pages in your site map, to see these pages in your site map you must click on "Include System Pages in Sitemap" and from there unpublished drafts are listed under drafts. Simply click the draft name and select delete!

Let us know if you need anything else.
RickJ replied on at Permalink Reply
Thanks ob7, that did it. I didn't realize that SiteMap and Pages are not the same thing.

I am new to Concrete and starting to like it a lot. The main kind of problems I have encountered is in knowing where things (functions etc) are. Once I find them there fairly easy to figure out and use.

Thanks
Rick
kdpetrowsky replied on at Permalink Reply
Hello ob7dev - I have a similar problem. I am trying to launch my website and have a social links block showing up between my branding and nav bar that I cannot find in concrete5. I had a similar problem with a giant logo and solved that by deleting the pages in trash. I suspect that the social block is in one of the draft pages. I am trying to delete the 4 draft pages. Unfortunately, the drafts do not show up in the full sitemap with the system pages. They are in the regular sitemap. When I try to delete them through edit mode, a warning comes up that I am deleting a system file (Page Not Found). Is there a way to remove these drafts? Thanks for any help you can provide. Kathy
ob7dev replied on at Permalink Reply
ob7dev
Hey Kathy,

From the site map, if you click "Include System Pages In Site Map", there should then appear a menu item called "Drafts", and from there you can delete drafts from outside the draft page itself.

Let me know if that works for you.
kdpetrowsky replied on at Permalink Reply 3 Attachments
Hi There, thanks so much for your reply. I had clicked "Include System Pages In Site Map and the 'drafts' item was there but nothing under it although they showed up in the regular site map. When I went into concrete5 this evening, the drafts were gone. Maybe the cache cleared. But they were not my problem.

Unfortunately, my problem is still there. I have attached 3 files. As you can see, when I am in concrete5 (edit or view mode), there is no 'social link block' between my banner and the navigation bar. However, when I go 'live' or look at the mobile preview, the social link block is there. I really need to get rid of it as I only use Facebook right now. Any ideas? Thanks, Kathy
RickJ replied on at Permalink Reply
There are three areas above the menu bar. You might try adding an image or something in each area to determine in which one, if any, those icons reside. Also if you are using Chrome browser you can right click and choose inspect object to see what's actually there. You may see something that clues you or someelse in as to what's going on.
kdpetrowsky replied on at Permalink Reply
Thanks Rick, I am continuing to work on it. When I looked at it in Chrome while in Concrete5 there was a weird reference to the footer which does have Facebook and YouTube in it following <div class="top-section clearfix">.

<div class="ccm-area-footer ccm-ui">

<div class="ccm-area-footer-handle" data-area-menu-handle="60" id="area-menu-footer-60"><span><i class="fa fa-share-alt"></i> Sitewide Top Section Full</span></div>

<div class="popover fade" data-area-menu="area-menu-a60">
<div class="arrow"></div>
<div class="popover-inner">
<ul class="dropdown-menu">
<li><a href='#' data-menu-action="area-add-block">Add Block</a></li>

<li><a data-menu-action="edit-area-design" href="#">Edit Area Design</a></li>
. . .

When I am not in Concrete5, the social links are in the code plain as day. This code is mixed in with my banner. When I take the banner out, I still can't see anything in Concrete5. I think I will delete the social links from the footer and see what happens.

<div class="top-section clearfix">
<div class="row"> <div class="small-12 columns">

<picture><!--[if IE 9]><video style='display: none;'><![endif]--><source srcset="http://livedecisively.com/application/files/6014/7546/4196/LD_Banner_Sept8.png" media="(min-width: 1100px)" class="ccm-image-block img-responsive bID-853" alt=""><source srcset="http://livedecisively.com/application/files/thumbnails/large/6014/7546/4196/LD_Banner_Sept8.jpg" media="(min-width: 900px)" class="ccm-image-block img-responsive bID-853" alt=""><source srcset="http://livedecisively.com/application/files/thumbnails/medium/6014/7546/4196/LD_Banner_Sept8.jpg" media="(min-width: 768px)" class="ccm-image-block img-responsive bID-853" alt=""><source srcset="http://livedecisively.com/application/files/thumbnails/small/6014/7546/4196/LD_Banner_Sept8.jpg" class="ccm-image-block img-responsive bID-853" alt=""><!--[if IE 9]></video><![endif]--><img src="http://livedecisively.com/application/files/thumbnails/small/6014/7546/4196/LD_Banner_Sept8.jpg" alt="" class="ccm-image-block img-responsive bID-853"></picture>

</div></div> <div class="row">
<div class="small-12 large-6 columns">

<div class="ccm-custom-style-container ccm-custom-style-main-15 small-only-text-center" >

<div id="ccm-block-social-links15" class="ccm-block-social-links">
<ul class="list-inline">
<li><a target="_blank" href="http://twitter.com"><i class="fa fa-twitter"></i></a></li>
<li><a target="_blank" href="http://facebook.com"><i class="fa fa-facebook"></i></a></li>
<li><a target="_blank" href="http://google.com"><i class="fa fa-google-plus-square"></i></a></li>
<li><a target="_blank" href="http://www.youtube.com"><i class="fa fa-youtube"></i></a></li>
<li><a target="_blank" href="http://instagram.com"><i class="fa fa-instagram"></i></a></li>
</ul>

Thanks for your help.
kdpetrowsky replied on at Permalink Reply
I moved the banner from the top section to the sitewide branding area and the social links were then above the banner. I found the code regarding the footer (embedded in the top section) in Concrete5. Do you suppose it would be OK to delete it?