HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
783 stars 182 forks source link

Page not found #10

Closed ghost closed 4 years ago

ghost commented 4 years ago

When trying to login to /admin, the "page not found" error appears.

Steps for playback: 1) A clean Laravel installation. 2) Installing Laravel-Pagebuilder 3) Performing items from readme.

At the first run, sometimes the /admin page opens, I enter my login and password, redirect me to /admin/auth and the "page not found" error appears. Later on, even the /admin page shows an error.

They are used: PHP 7.3.17 Laravel Framework 6.18.14 Windows 10 / Linux Mint 19.4 / Ubuntu 18.04 (same error everywhere)


in the Laravel Framework 7.11.0 the problem is the same


After taking a little look, I found out that the problem is possible in the function phpb_in_module( ) in helpers php

some obscure values come into play. image image

HansSchouten commented 4 years ago

Hi, do you have set your APP_URL in Laravel .env correctly to http://127.0.0.1:8000? Could you maybe further output the content of phpb_current_relative_url() or how it came to this /n value?

ghost commented 4 years ago

Hi, do you have set your APP_URL in Laravel .env correctly to http://127.0.0.1:8000? Could you maybe further output the content of phpb_current_relative_url() or how it came to this /n value?

seems to have solved the problem. It's in the url. for some reason, 127.0.0.1:8000 didn't work. set the domain name and the problem disappeared.


is there any way to find examples of blocks? or does everything have to be written from scratch?

HansSchouten commented 4 years ago

Ok good to hear that it is working now. About creating blocks, please see this discussion over here: https://github.com/HansSchouten/Laravel-Pagebuilder/issues/8#issuecomment-625748145.