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

Article Page showing error 404 #200

Closed
reyesvicente opened this issue Jul 19, 2019 · 7 comments
Closed

Article Page showing error 404 #200

reyesvicente opened this issue Jul 19, 2019 · 7 comments

Comments

@reyesvicente
Copy link

After making the article, the blog_page shows but when I click on the link of the article/post, it returns a 404. I followed the instructions on how to install it ontop of wagtail.
Screen Shot 2019-07-19 at 10 37 35 PM

@loleg
Copy link

loleg commented Aug 9, 2019

Works fine for me with Wagtail 2.5.2 and the latest Puput release. Make sure your Site is correctly configured, the Blog homepage as well as the article are fully published. Then click the View Live link in the admin. How about the preview from the editor? If that still doesn't work, make sure you've gone through all the setup steps.

@RmaxTwice
Copy link

RmaxTwice commented Aug 14, 2019

I get the same error. The View Live link works well as expected in my case the url has the following structure:
localhost:8000/pages/blog/my-first-blog-post/

But when you are on the blog main page with the post list, if you click any of the posts main title or Continue reading >> links, it displays a 404 error because those links have the following structure:
localhost:8000/pages/blog/2019/08/14/my-first-blog-post/

Edit: Allow me to elaborate further, I installed puput as a plugin on top of an existing wagtail project already created.

@RmaxTwice
Copy link

This issue was my fault, I included wagtails urls before puput ones in the project urls.py file. With an order swap the error was resolved.

@marctc marctc closed this as completed Nov 30, 2019
@Jonas-089
Copy link

Jonas-089 commented Apr 4, 2021

I have the exact same issue, but my url paths are in the correct order.
My patterns look like this:

urlpatterns = [
    # <my urls>
    
    re_path(r'',include(puput_urls))

    path('cms/', include(wagtailadmin_urls)),
    path('documents/', include(wagtaildocs_urls)),
    path('pages/', include(wagtail_urls)),

]

Any idea on what the problem might be?

@reyesvicente
Copy link
Author

I have the exact same issue, but my url paths are in the correct order.
My patterns look like this:

urlpatterns = [
    # <my urls>
    
    re_path(r'',include(puput_urls))

    path('cms/', include(wagtailadmin_urls)),
    path('documents/', include(wagtaildocs_urls)),
    path('pages/', include(wagtail_urls)),

]

Any idea on what the problem might be?

Can you post the traceback?

@Jonas-089
Copy link

I can't post the traceback because I already uninstalled it again, but the error was the exact same one as yours (minus the blog name). The actual article entry was linked at blog/article-name and the article link on the homepage led to blog/date/article-name.

@chris0chris
Copy link

I had the same error with exact the same settings. My problem was a misconfiguration of the root page.
Within the wagtail backend under: Settings -> Sites I selected as Root Page the parent page of the created blog entries and this fixed my problem.

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

6 participants