getgrav / getgrav/grav-plugin-admin

Multisite admin redirects to 404 page after saving changes

Open
#2,231 1 comment 0 reactions 1 assignee Claimed by @mahagr View on GitHub
Dominant language
PHP
Stars
377
Forks
225
Avg merge
11h 51m
Merged PRs (30d)
4

Description

Hi there,
I recently noticed an strange behavior with the **admin** in all my multisite sites. It happens in all sites (under ‘sites/’ folder or ‘env/’ folder). The main site works fine.

In the ‘Configuration’ section or ‘Themes’ section, after making some change and trying to save it, the page is redirected to 404 page. For some reason after clicking ‘Save’ the url duplicates the text ‘/admin/admin’ and therefore the url can’t be found.
![image](https://user-images.githubusercontent.com/26466392/151810058-f57be741-5bab-4792-b39a-16549600eb98.png)

I’m using:
Grav version → 1.7.27
Plugin admin → 1.10.27

Trying to identify the origin of this error I installed a fresh copy of Grav 1.7.29 with admin 1.10.29. I created the setup.php file to transform it into a multisite, according to Grav documentation, I didn’t add anything else. Default configuration, default theme, etc… Everything as it comes with Grav.

And hitting SAVE under the Configuration section the error appears:

The URL duplicates the text ‘admin’ and appears the 404 page
…/admin/admin/config/system

**Replicating the same process with Grav 1.7.20 with admin 1.10.20, everything works fine, Changes are saved as expected and no error is showed.**

There is nothing added by my side in both cases.

I assume that may be some issue with the admin plugin between version 1.10.20 and 1.10.27

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.