---
title: 'MIgrating to 2.0'
url: 'https://getgrav.org/forum/support/migrating-to-2-0-t9437'
markdown: 'https://getgrav.org/forum/support/migrating-to-2-0-t9437.md'
date: '2026-06-21'
description: 'I''m using the Wizard. Step 5: Test: When opening the "Open staged admin" I get a white screen. Cannot post images ATM, so here you go:'
---

[Support](https://getgrav.org/forum/support)

#  MIgrating to 2.0 

  Started by stell 2 months ago · 5 replies · 649 views    

 [2 months ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437#post-41973 "Permalink") 

I'm using the Wizard.
Step 5: Test:
When opening the "Open staged admin" I get a white screen.
Cannot post images ATM, so here you go:

https://i.postimg.cc/8zFbQFyR/Desktop-screenshot-28-09-2026-16-53.webp

 [2 months ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437#post-41976 "Permalink") 

Thanks for the screenshot, that told me what's going on. The staged admin is loading, but all its files are being requested from /docs/user/plugins/admin2/... instead of from inside the staged folder, so they 404 and you get a white page. That happens when `custom_base_url` is set in an environment config folder, e.g. `user/env/<your-host>/config/system.yaml`. The wizard clears that setting for the staged preview, but it only looked in `user/config/system.yaml`, and an environment folder overrides that one.

Can you check whether you have one? For now you can work around it in the staged copy: open `grav-2/user/env/<your-host>/config/system.yaml` (or `grav-2/user/<your-host>/config/system.yaml` on an older layout), set `custom_base_url: ''`, and reload the staged admin. Put your value back in that file after you promote, since the wizard won't know to restore it.

I've fixed this in migrate-grav so it clears the setting in environment folders too and restores it automatically on promote. That will be in the next release (1.0.17). If you don't have `custom_base_url` set anywhere, let me know and I'll keep digging.

— Andy

 [1 month ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437#post-41978 "Permalink") 

Hi there,

this folder/file I don't have: `user/env/<your-host>/config/system.yaml`

What I see is a `system.yaml` here: `/user/<my-host>/config/system.yaml`
The `custom_base_url: <my-host> is also inside.`

 [1 month ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437#post-41982 "Permalink") 

That's the one. `user/<my-host>/config/system.yaml` is the older way of laying out an environment folder, and it overrides `user/config/system.yaml` the same way.

Keep that setting, by the way. Login and Email use `custom_base_url` to build correct links, so it belongs on your site. The only problem is the staged preview: it runs from the `/grav-2/` subfolder, and your base URL points everything at the live site root instead, so the staged admin's files 404.

Quickest fix: open the staged copy, `grav-2/user/<my-host>/config/system.yaml`, set `custom_base_url: ''` just for the preview, and reload the staged admin. Leave your live site's copy alone. After you promote, put your original value back in that file, because the wizard won't restore a change you made by hand.

Or you can update migrate-grav to 1.0.17, which is out now (`bin/gpm update migrate-grav`), and run the wizard again. It now finds `custom_base_url` in both environment folder layouts, blanks it only for the staged preview, and puts it back on its own when you promote.

— Andy

 [1 month ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437#post-41984 "Permalink") 

Hi Andy,

Thank you very much. I appreciate your work for a long time.
I'll just use 1.0.17, and if I run into any issues, I'll let you know ;)

 [1 month ago](https://getgrav.org/forum/support/migrating-to-2-0-t9437#post-41999 "Permalink") 

Just to let you know. When I went through the migration for the first time, the backend worked. For the frontend, I use a variant of the Learn2 theme (class MyTheme extends Learn2). When I loaded the frontend, I got the following message:

`“Unknown ‘trim’ function in Twig in ...”`

It was a Twig override file (base.html.twig) in my template. I looked at that section and found:

`<span class="{{edition}} {% if edition not in page.header.editions|replace({‘ ’ : ‘’})|split(‘,’) %}not{% endif %}">{{trim(edition)|capitalize}}</span>`

I then canceled the migration and restarted it.

Strangely enough, the second time around, not only was the Learn2 theme updated correctly, but the trim function was also gone from my override...?

Everything is working now.

 👍 1 

[Log in](https://getgrav.org/login?return=%2Fforum%2Fsupport%2Fmigrating-to-2-0-t9437) to reply.

###  Suggested topics

 | Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| [retina images are shown in Admin (but not all of them)](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504)    [Support](https://getgrav.org/forum/support) · by Anna, 4 days ago |  | 1 | 82 | [3 days ago](https://getgrav.org/forum/support/retina-images-are-shown-in-admin-but-not-all-of-them-t9504 "by Anna") |
| [page.date != page.header.date, now my collection sorting is broken (bug? by design?)](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484)    [Support](https://getgrav.org/forum/support) · by Anna, 3 weeks ago |  | 1 | 259 | [3 weeks ago](https://getgrav.org/forum/support/page-date-page-header-date-now-my-collection-sorting-is-broken-bug-by-design-t9484 "by Anna") |
| [it's no possible sign in with email......](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462)    [Support](https://getgrav.org/forum/support) · by webmasterodp, 1 month ago |  | 4 | 377 | [1 month ago](https://getgrav.org/forum/support/it-s-no-possible-sign-in-with-email-t9462 "by webmasterodp") |
| [Site stopped working overnight - 'not writeable' error](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445)    [Support](https://getgrav.org/forum/support) · by nwhitfield, 1 month ago |  | 2 | 348 | [1 month ago](https://getgrav.org/forum/support/site-stopped-working-overnight-not-writeable-error-t9445 "by pamtbaau") |
| [Render thumbnail in Flex object list view](https://getgrav.org/forum/support/render-thumbnail-in-flex-object-list-view-t9410)    [Support](https://getgrav.org/forum/support) · by gravinator, 2 months ago |  | 5 | 777 | [1 month ago](https://getgrav.org/forum/support/render-thumbnail-in-flex-object-list-view-t9410 "by bde") |
