Deployment issues v2 -> v3

I am in the process of migrating from kirby v2.
I have followed all the steps for migration (replacing and deleting certain files), but only receive a page error.
I cannot access the panel either.

Screenshot 2023-06-01 at 9.18.30 AM

This is a time sensitive issue. Any help is greatly appreciated.

to give more context.
I did everything with the plainkit starter. dropped in the new files.
i ran upgrade.php. it produces a blank page, which im not sure if it worked or not.

here is my current file structure.

Screenshot 2023-06-01 at 9.22.10 AM

the problem persists.

Did you enable debug mode as instructed in the message in your config to get more information about the error?

yes debug mode is on. Here is the code in config.php:



<?php



return [
    'hooks' => [
        'page.create:after' => function ($page) {
            buildPageTree($page);
        },
        'page.update:after' => function ($newPage) {
            if ($newPage->children()->isEmpty()) {
              buildPageTree($newPage);
            }
        },
        'route:after' => function ($route, $path, $method) {
            $uid = explode('/', $path);
            $uid = end($uid);
            $uid = str_replace('+', '/', $uid);
            $page = kirby()->page($uid);
    
            if ($page && $page->children()->isEmpty()) {
                buildPageTree($page);
            }
        },
    ],

    'debug'  => true
];

but i still get this error at the home page:

Screenshot 2023-06-01 at 9.18.30 AM

Does your config start with empty lines?

yes, okay that worked but now i am dealing with some new issues.
The main one being registering the product with my license.

I want to be sure I am doing this correctly.
In my Kirby 2 panel I have my license:

Screenshot 2023-06-01 at 10.09.13 AM

Should I just take the license (redacted text) and paste it into the new license code area?

Also do I need the originally email associated with the registration? This site is for a client and I am not the person who made the original site.

Thank you.

A Kirby 2 license key is not valid for Kirby 3, you need either an upgrade or a new license (depending on when the old license was bought). You need to log in to the license hub with the original email address and order number. You should be able to get them from your client, I guess.

Okay. Thank you. I will look into that.

More questions on new thread! development vs production issues in blueprints

thanks again!