# Upgrade.php conversion script returns a 404 page

**URL:** <https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151>\
**Category:** Questions\
**Tags:** v3\
**Created:** [January 15, 2019, 8:14pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151 "2019-01-15T20:14:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomasorus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thomasorus/32/857_2.png) [@Thomasorus](https://forum.getkirby.com/u/Thomasorus)\
**Post date:** [January 15, 2019, 8:14pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/1 "2019-01-15T20:14:41Z")

</div>

Hi everyone, congratulations for launching Kirby 3!  
I was following the [migration docs](https://getkirby.com/docs/cookbook/migration/sites#folder-and-file-structure) and the part where it says kirby 3 uses \_ instead of - for folders and how you can convert your content folder to this new rule.

What I did:

- Git cloned the starterkit
- Used valet link (with php 7.2) to have the starterkit served on [http://kirby3.test/](http://kirby3.test/)
- Copied the upgrade.php code into a file named the same name into the root of the starter kit
- Went to [http://kirby3.test/upgrade.php](http://kirby3.test/upgrade.php)

The page returned a 404.

 ![09](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/c/cc136e1c86291ad65124ce3a165f8c23c7a20ed5.png)

Did I miss something? Is there anything I should do before this?

Thanks!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 15, 2019, 8:56pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/2 "2019-01-15T20:56:04Z")

</div>

Maybe a typo in your file name?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [January 15, 2019, 9:04pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/3 "2019-01-15T21:04:51Z")

</div>

And are you using the Kirby Valet Driver?  
See: [Webserver recommendation for local development (Mac)](https://forum.getkirby.com/t/webserver-recommendation-for-local-development-mac/12143/14?u=distantnative)

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 15, 2019, 9:20pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/4 "2019-01-15T21:20:44Z")

</div>

Does the Starterkit itself run including the Panel?

---

<div class="post-metadata">

**Author:** ![Thomasorus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thomasorus/32/857_2.png) [@Thomasorus](https://forum.getkirby.com/u/Thomasorus)\
**Post date:** [January 15, 2019, 9:20pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/5 "2019-01-15T21:20:59Z")

</div>

@texnixe I think I’m right:

 ![03](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/0/0575599b7d3f7fa06fc366017f74907be5ad3e6e.png)

@distantnative I’m not using Valet+ but basic Valet and I never had any problem on Kirby 2. I also accessed Kirby 3 panel without any trouble and created my user. Still going to check for the driver file but I don’t even have an existing folder to place it in.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [January 15, 2019, 9:21pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/6 "2019-01-15T21:21:54Z")

</div>

Just to clarify - Valet from Laravel works out of the box. Valet+ is made by a third party on top of the official Valet, and it’s Kirby driver is about 6 months behind, and needs the update.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [January 15, 2019, 9:22pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/7 "2019-01-15T21:22:35Z")

</div>

My bad - my eyes were sure they read the `+` in there.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 15, 2019, 9:24pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/8 "2019-01-15T21:24:30Z")

</div>

Yep, that looks good.

---

<div class="post-metadata">

**Author:** ![Thomasorus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thomasorus/32/857_2.png) [@Thomasorus](https://forum.getkirby.com/u/Thomasorus)\
**Post date:** [January 15, 2019, 9:24pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/9 "2019-01-15T21:24:41Z")

</div>

Don’t worry, both Valet and Valet plus seems to use the same `valet link` commande line so that’s understandable with the other topic being discussed right now!

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [January 15, 2019, 9:25pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/10 "2019-01-15T21:25:50Z")

</div>

> [@Thomasorus](#):
>
> Don’t worry, both Valet and Valet plus seems to use the same `valet link` commande line so that’s understandable with the other topic being discussed right now!

Yes thats right. Valet+ is valet, its just been extended a little to make it easy to switch PHP version and some extra bells and whistles.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [January 15, 2019, 9:27pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/11 "2019-01-15T21:27:03Z")

</div>

I still think it might be valet. If I’m not mistaken, this is the the valet (not `+`) driver for Kirby: [https://github.com/laravel/valet/blob/master/cli/drivers/KirbyValetDriver.php](https://github.com/laravel/valet/blob/master/cli/drivers/KirbyValetDriver.php)

And I’m really not familiar with the system, but it seems from a first glance, that it only allows static files, the `index.php` and the `panel/index.php` to be accessed?

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [January 15, 2019, 9:31pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/12 "2019-01-15T21:31:37Z")

</div>

> [@distantnative](#):
>
> And I’m really not familiar with the system, but it seems from a first glance, that it only allows static files, the `index.php` and the `panel/index.php` to be accessed?

It works just fine K3, certainly for the past few months. I’ve not tried it with todays release yet but give me a few and i will…

fyi @distantnative The drivers are [explained here](https://laravel.com/docs/5.7/valet#custom-valet-drivers) and for the most part shouldnt need to mess with them, unless your doing something off the wall.

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [January 15, 2019, 9:33pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/13 "2019-01-15T21:33:38Z")

</div>

I’m not saying it does not work with K3… cause K3 just needs the `index.php`. But it might still block access to the `upgrade.php` which usually isn’t part of Kirby 3.

Other point could be the `.htaccess`- any custom rules there, @Thomasorus?

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [January 15, 2019, 9:34pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/14 "2019-01-15T21:34:46Z")

</div>

> [@distantnative](#):
>
> I’m not saying it does not work with K3… cause K3 just needs the `index.php` . But it might still block access to the `upgrade.php` which usually isn’t part of Kirby 3.

Oh yes, of course, I see what you mean now. Ill see what happens for me in a minute.

---

<div class="post-metadata">

**Author:** ![Thomasorus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thomasorus/32/857_2.png) [@Thomasorus](https://forum.getkirby.com/u/Thomasorus)\
**Post date:** [January 15, 2019, 9:37pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/15 "2019-01-15T21:37:41Z")

</div>

So I just tried adding the driver to both these folders:

- `/Users/thomasorus/.composer/vendor/weprovide/valet/cli/drivers`
- `/Users/thomasorus/.composer/vendor/weprovide/valet-plus/cli/drivers`

I restarted valet but no change. As for the .htaccess I didn’t changed anything from the starterkit outside of emptying the content folder and adding my content.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 15, 2019, 9:37pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/16 "2019-01-15T21:37:49Z")

</div>

Do you have any other environment to test in? Since I know this script to work just fine, so I’d suspect it has to do with your setup, either Valet or something else. And somehow it just doesn’t find the file or refuses to deliver it, because the call the to script itself fails.

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [January 15, 2019, 9:40pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/17 "2019-01-15T21:40:35Z")

</div>

> [@Thomasorus](#):
>
> So I just tried adding the driver to both these folders:
> 
> - `/Users/thomasorus/.composer/vendor/weprovide/valet/cli/drivers`
> - `/Users/thomasorus/.composer/vendor/weprovide/valet-plus/cli/drivers`

Wait a minute, you have both installed? Should really have one or the other, they don’t play nicely together.

---

<div class="post-metadata">

**Author:** ![Thomasorus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thomasorus/32/857_2.png) [@Thomasorus](https://forum.getkirby.com/u/Thomasorus)\
**Post date:** [January 15, 2019, 9:41pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/18 "2019-01-15T21:41:23Z")

</div>

No, sorry for the confusion, I don’t have both installed. I just copy pasted both just to be sure.  
@texnixe I’m installing MAMP right now to try with it.

---

<div class="post-metadata">

**Author:** ![Thomasorus](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/thomasorus/32/857_2.png) [@Thomasorus](https://forum.getkirby.com/u/Thomasorus)\
**Post date:** [January 15, 2019, 9:46pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/19 "2019-01-15T21:46:27Z")

</div>

Aaaaaaand @texnixe nailed it! The script worked using MAMP as the local server. So I’m not sure what the problem is but well, it’s done so that’s cool. Just to resume a bit:

- I was using valet (not valet plus)
- I had access to the panel without the driver, and could create users and content
- The kirby valet drivers did not change anything
- In the end MAMP did the trick.

So maybe it has to do with something inside my php configuration?

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [January 15, 2019, 9:49pm UTC](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151/20 "2019-01-15T21:49:21Z")

</div>

I only have Valet Plus installed, so I can’t test with Valet without the Plus. And I’m not really into this stuff…

[Next page](https://forum.getkirby.com/t/upgrade-php-conversion-script-returns-a-404-page/12151.md?page=2)
