Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent / Children nested level greater than 3 for docs( 2 lines on admin panel ) display will not load. #308

Closed
jondo89 opened this issue May 10, 2013 · 3 comments

Comments

@jondo89
Copy link

jondo89 commented May 10, 2013

Hi , great plugin ,

I'm having some issues with nested documents ( parent /child ) past 2 levels , the document can be edited in the admin wordpress back end , however when viewed or edited in the front end site it displays not found.

There is also a corresponding PHP that seem to occur with this
"Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/m6752040/public_html/mh/wp-includes/post.php on line 2996

Warning: Cannot modify header information - headers already sent by (output started at /home/m6752040/public_html/mh/wp-includes/post.php:2996) in /home/m6752040/public_html/mh/wp-includes/pluggable.php on line 876"

Thanks
Jon

@boonebgorges
Copy link
Owner

Thanks for the heads up. It makes sense that it would break at this
point, given the way I have to juggle URLs to make parent/child stuff
work. I'll see what I can do about fixing this in a future release.

On 05/10/2013 05:24 AM, jondo89 wrote:

Hi , great plugin ,

I'm having some issues with nested documents ( parent /child ) past 2
levels , the document can be edited in the admin wordpress back end ,
however when viewed or edited in the front end site it displays not found.

Thanks
Jon


Reply to this email directly or view it on GitHub
#308.

@boonebgorges
Copy link
Owner

@jondo89 Can you verify whether you are also using the buddypress-docs-wiki plugin? It looks like that plugin is definitely causing problems with the way that nested docs work, and I'd like to know if what you're experiencing the same problem.

boonebgorges added a commit that referenced this issue May 27, 2013
The previous code for generating canonical Doc URLs attempted to slice off
the slug of $post->post_parent when it was found. But this did not work for
Docs that were nested more than one level deep.

The new code enforces a totally flat URL structure by rebuilding the URL based
on the Docs archive link.

Fixes #308
@boonebgorges
Copy link
Owner

I believe that the changes in 92d1174 will fix this issue for you. Please reopen the ticket if you find otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants