Laravel-Backpack/PageManager

Edit page content found 404 when I changed template

gumpon opened this issue · 6 comments

found 404 page when I changed service to about_us template.

404
Page not found.

No query results for model [Backpack\PageManager\app\Models\Page] about_us

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

  • Bug Reports, Feature Requests - Github Issues (here);
  • Quick help (How do I do X) - Gitter Chatroom;
  • Long questions (I have done X and Y and it won't do Z wtf) - Stackoverflow, using the backpack-for-laravel tag;

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

--
Justin Case
The Backpack Robot

Hi @gumpon ,

Seems to work for me https://cl.ly/e491f7f05d3c

  1. How did you install PageManager?
  2. Did you change it in any way?

Cheers!

  1. README.md
    install step by step

  2. not change

PS. I user laravel 5.6.13 and PHP 7.1.8

That’s odd.

  1. What’s your initial URL?
  2. What’s the URL you’re redirected to?
  3. Do you have a way to record your screen while this happens - might help debugging.

Developed on localhost:8000 . I have record my screen here http://danbkk.com/temp/404.gif

Hi @gumpon ,

Looks like after you select a different template you’re being redirected to
admin/page/1/edit/about_us
but you should be redirected to
admin/page/1/edit?template=about_us

I’m pretty sure you have an old version of the template field. Please put this file in your resources/views/vendor/backpack/crud/fields/select_page_template.blade.php - overwrite the file if it already exists.

That should fix it for you.

Cheers!