grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

Create custom page creation modal - “Undefined index: rout”

Open MohamedAlwash opened this issue 5 years ago • 8 comments

Hello every one!

I want to create a custom page creation modal. But I get a error “Undefined index: rout”.

I did exactly as it says here but still the same result. This is what I have in my blueprint. Capture

Can someone help me plz. I don't know how to solve this.

MohamedAlwash avatar Jan 20 '20 09:01 MohamedAlwash

Can you send us a screenshot from the error?

mahagr avatar Jan 20 '20 09:01 mahagr

Can you send us a screenshot from the error?

After I click on "add Case" this is what I got Capture After clicking on "Continue" I got this. Capture

MohamedAlwash avatar Jan 20 '20 10:01 MohamedAlwash

@w00fz It looks like JS may be messing up with the form and removing the route...?

mahagr avatar Jan 20 '20 11:01 mahagr

The issue is in admin 1.9.12 (as well as in 1.10).

mahagr avatar Jan 20 '20 11:01 mahagr

The issue is in admin 1.9.12 (as well as in 1.10).

What should I do ? Or must I wait until it's fixed?

MohamedAlwash avatar Jan 20 '20 11:01 MohamedAlwash

Hi !

I'm experiencing a similar issue than @MohamedAlwash

I followed instructions of Admin Receipe, have a similar user/blueprints/admin/pages/yamlfile.yml. My button appears in Page section of Admin, clicking on it open a empty modal with only "Continue" button (as if blueprint was completely ignored). When clicking on that button, I don't have any error message, page is just refreshing and nothing happens.

Any news about that issue ?

Versions Grav v1.6.26 Admin v1.9.15

Thanks 🙂 Philippe

PangeeEmissary avatar Aug 04 '20 15:08 PangeeEmissary

As of today with Admin 1.10 released, this seems fine on the JS / Rendering side but fails on the backend:

POST looks correct:

data[title]: test
data[folder]: @slugify-title
data[route]: /posts
data[name]: post
data[visible]: 
data[blueprint]: 
task: continue
admin-nonce: 36156b82c01b04214de814d1aa84d0a8

But it does seem to fail: w00fz-2021-03-22_@_18 31 17@2x

w00fz avatar Mar 23 '21 01:03 w00fz

Any news?

I can confirm the behavior documented by @w00fz – the POST looks good as far as I can tell but I'm immediately redirected to the same 404 page. For the sake of documentation, this is the console output in devtools.

grav_admin_custom_modal_error

trough avatar Jul 05 '21 12:07 trough