Error: Publishing failed because the parent page isn't published Options
ChristophS
Posted: Wednesday, February 13, 2008 3:15:39 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
Hi,

I have this weird but serious problem in Umbraco. I had this working and running testsite. After a lot of experimenting I decided to delete this site and to start a new one. Unfortunately, this isn't working out so well. I made a new content item based on 'Home page' document type and template. But when I'm trying to publish, I'm getting the error as you can see in the topic title.
I've found almost nothing on the internet concerning this error, so I was hoping anyone on this forum could help me out with this one.

Greets.
drobar
Posted: Wednesday, February 13, 2008 3:36:51 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,408
Location: KY, USA
You can "save" content nodes anywhere in the content tree. But umbraco doesn't let you "publish" a node unless all the nodes above it are also published.

If you site had the following content...

CONTENT
- Home
- - Products
- - - Product A
- - - Product B
- - News (saved, but not published)
- - - News Item 1 (saved, but not published)
- - - News Item 2 (saved, but not published)

If you tried to publish "News Item 2", you'd the the notice that "publishing failed because the parent page isn't published." In order to publish "News Item 2" you'd also have to publish the "News" node as well.

cheers,
doug.



MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
ChristophS
Posted: Wednesday, February 13, 2008 3:51:41 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
Problem is there ain't no parent. Here you can have a look at the structure.
I don't know what is the problem here. Neither of those two can be published.
ChristophS
Posted: Wednesday, February 13, 2008 3:52:13 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
Problem is there ain't no parent. Here you can have a look at the structure.
I don't know what is the problem here. Neither of those two can be published.
drobar
Posted: Wednesday, February 13, 2008 4:08:53 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,408
Location: KY, USA
Well, that's one I haven't seen before. Hmmm...

Okay, a couple questions and a few things to try.

Did you create a fresh umbraco installation and database for this new site, or simply delete stuff from an existing site and reuse the same umbraco installation and database?

If deleted/re-used, what was in the site before you deleted it? Did you use a website wizard package? Did the site work properly, or did it also have issues?

If you deleted a bunch of stuff from the site to "clear it out", delete the two remaining nodes, empty the umbraco recycle bin and then "republish the entire site" by right-clicking on the CONTENT node at the top of the content tree. Now add a node and publish it. Does that work?

If the above didn't work, create a new document type with a new name. For testing purposes you don't even need to assign any properties, nor any templates. Then, create a new content node at the top level of the content tree and select the new docType you just created. Does it publish? If so, then the issue is with your other docType(s) and since you don't have any content, I'd delete the content and *then* the docTypes, then create new docTypes and new content nodes based on them.

Let us know how it goes.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
ChristophS
Posted: Wednesday, February 13, 2008 4:22:44 PM
Rank: Devotee

Joined: 2/4/2008
Posts: 38
Douglas Robar wrote:

Well, that's one I haven't seen before. Hmmm...

Okay, a couple questions and a few things to try.

Did you create a fresh umbraco installation and database for this new site, or simply delete stuff from an existing site and reuse the same umbraco installation and database?

If deleted/re-used, what was in the site before you deleted it? Did you use a website wizard package? Did the site work properly, or did it also have issues?

If you deleted a bunch of stuff from the site to "clear it out", delete the two remaining nodes, empty the umbraco recycle bin and then "republish the entire site" by right-clicking on the CONTENT node at the top of the content tree. Now add a node and publish it. Does that work?

If the above didn't work, create a new document type with a new name. For testing purposes you don't even need to assign any properties, nor any templates. Then, create a new content node at the top level of the content tree and select the new docType you just created. Does it publish? If so, then the issue is with your other docType(s) and since you don't have any content, I'd delete the content and *then* the docTypes, then create new docTypes and new content nodes based on them.

Let us know how it goes.

cheers,
doug.


Q1: No. It's still my first installation using the same database. I just deleted the content items.
Q2: In the site before was 1 global 'home page' with documenttype 'home page'. Under that several subpages of doctype 'Text page'. It was created by myself without a wizard and it didn't have any issues. It worked perfectly, but it was messy so I deleted it. Starting to regret it now.
Q3: Does not work. (Note, I also noticed I can't really empty recycle bin. When I delete an item, it goes to the recycle bin. When I right click the recycle binte menu shows but directly disappears again.
Q4: This doesn't work either. I created a new doctype, created a content item based on it, published it. Doesn't work.
MisterG
Posted: Friday, February 29, 2008 4:39:21 PM
Rank: Newbie

Joined: 8/22/2007
Posts: 7
Hello,

We have exactly the same problem.
A page that cannot be published with no parent.

It's a fresh install from 2 days. I really don't want to recreate the database with all the stuff in it.

When we delete something, it does not go anymore in the recycle bin...if it can help.

Do you have any idea ?
MisterG
Posted: Friday, February 29, 2008 4:40:49 PM
Rank: Newbie

Joined: 8/22/2007
Posts: 7
BTW, there is a typo in the message "publishing failed ..."
Dobly
Posted: Monday, April 14, 2008 3:01:31 PM
Rank: Newbie

Joined: 3/15/2008
Posts: 10
ChristophS wrote:
Hi,

I have this weird but serious problem in Umbraco. I had this working and running testsite. After a lot of experimenting I decided to delete this site and to start a new one. Unfortunately, this isn't working out so well. I made a new content item based on 'Home page' document type and template. But when I'm trying to publish, I'm getting the error as you can see in the topic title.
I've found almost nothing on the internet concerning this error, so I was hoping anyone on this forum could help me out with this one.

Greets.



I see there is not solution to this one yet. I have exactly the some problem.

Mine started like this..

I had this site structure (doc types shown in ())

Code:

Content
   Home (Home)
       Some Page (Page Doc Type)
       Next Page (Page Doc type)
       Another Page (Page Doc Type)


Now, all was good, until I worked out that 'Another Page' needed to have a child page, where the other content items at that level did not.

So, I created a new document type called 'Another Doc Type', deleted the existing 'Another Page' and recreated it with the new Doc Type.

Now, my Content tree looked exactly the same as above. However when I ran my site, 'Another Page was listed in the navigation twice!!

As a test I deleted the new 'Another Page'. This time when I ran the site the Another Site nav item was still there.

Nothing I could do would make it disappear.

So I deleted every content item from the tree with the hope of starting again. This is where the fun started..

With NO items in the umbraco content tree, when I ran the site, it STILL had a nav item there for 'Another Page'. I deleted the XML from the Umbraco.config file and it got recreated with the 'Another Page' item in it.

I restared IIS, Rebooted my machine, Refreshed and refresh and every thing I could, yet that long ago deleted content item remained.

Finally, I attempted to recreate the site, I created the Home page again and tried to publish it.

My content tree now looks like this.
Code:

Content
    Home (Home)



I got the same error as the other guys here.. Publising failed because the parent page isn't published

Can the top level Content item be pubished? Can it be deleted? Where is in the database tables? Can't I just set it to published in the database?
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.