# Error when installing a new theme

**URL:** <https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009>\
**Category:** Themes\
**Tags:** v3\
**Created:** [February 22, 2019, 5:07am UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009 "2019-02-22T05:07:44Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 5:07am UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/1 "2019-02-22T05:07:44Z")

</div>

Hello  
I have started by installing the “Starter Kit” I messed around trying to add a blog, but was not having the success I hoped for.

Next I purchased an inexpensive theme that looked simple and clean. I tried to swap out folders staying in the same directory structure.

Now I get an error:

"  
**Error**

**session\_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and ‘-,’**  
"  
Can anyone give me some advice and how to solve the problem? Thank you for your time.

---

<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:** [February 22, 2019, 7:27am UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/2 "2019-02-22T07:27:39Z")

</div>

Try deleting the session data in `/site/sessions`.

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 9:02pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/3 "2019-02-22T21:02:13Z")

</div>

> [texnixe](https://forum.getkirby.com/u/texnixe)  
> Support
> 
> ```
> February 22
> 
> ```
> 
> Try too delete the session data in `/site/sessions`.

> * * *
> 
> [Visit Topic](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/2) or reply to this email to respond.

> To unsubscribe from these emails, [click here](https://forum.getkirby.com/email/unsubscribe/2c450872506657f699e59cbfc5fa61798e305afe718aa42677ea2377e780dae1).

---

<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:** [February 22, 2019, 9:03pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/4 "2019-02-22T21:03:46Z")

</div>

@tsparks ?

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 9:22pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/5 "2019-02-22T21:22:02Z")

</div>

The site\session folder was empty.

I wonder if the problem is the site initially was made with the starter kit? I first tried to do a fresh install with the theme but soon realized having kirby in a second location was illegal.

---

<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:** [February 22, 2019, 9:24pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/6 "2019-02-22T21:24:32Z")

</div>

- Have you been able to solve the problem?
- Have you made sure to use a Kirby 3 theme?
- You can also try to delete the session data in your browsers dev tools, that usually should solve the problem

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 9:32pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/7 "2019-02-22T21:32:34Z")

</div>

Still working on the problem, I can open domain/panel without a password , I get redirected to domain/panel/install with the same error every time

I will try cleaning my browser.

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 10:11pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/8 "2019-02-22T22:11:58Z")

</div>

Cleaning out the browser cleared the error. I get the panel now but Kirby doesnt recognize my license key.

Is this a syntax problem or do I need to do something else? Here is my config file:

```
<?php

# License
c::set('license' , 'K3-PRO-somemoreletters');

# Kirby Settings
c::set('debug' , true);

# Enable/disable adding images to XML Sitemap

c::set('sitemap.include.images' , false);
c::set('sitemap.include.invisible' , false);
c::set('sitemap.ignored.templates' , ['feed']);

c::set('panel.install', true);

return [
  'panel' => [
    'slug' => 'panel'
  ]
];
```

---

<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:** [February 22, 2019, 10:25pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/9 "2019-02-22T22:25:26Z")

</div>

That is old Kirby 2 code. You have to register your K3 license via the panel, in the Startpage of the Panel you will see a Register button:

![04](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/5/52d2aef0f9da6a4dc2cea7f6f5d82e2cee771b3e.png)

If you click on that, you can enter your license code.

Adding your license in the config.php won’t do anything.

Where does that old config code come from? Are you updating from Kirby 2?

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 10:31pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/10 "2019-02-22T22:31:02Z")

</div>

Yes I did update from Kirby 2 . I do not see the key like your image shows. Do I need to re-install to get to the version 3? The maker of the theme said it was a Kirby 3 theme. Below is my setup.

## Kirby info

Toolkit version: 2.5.12  
Kirby version: 2.5.12  
Panel version: 2.5.12

## Kirby license

You are using the Kirby trial version  
[Please, buy a license ›](http://getkirby.com/buy)

---

<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:** [February 22, 2019, 10:45pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/11 "2019-02-22T22:45:52Z")

</div>

But that is a Kirby 2 installation, not a Kirby 3 installation. What is the theme you bought, could you provide a link, please?

Something seems to be pretty messed up.

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 11:07pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/12 "2019-02-22T23:07:48Z")

</div>

Please don’t jump to conclusions I could have created these problems myself by mixing code from 2 and 3.

The theme came from : [https://manuelmoreale.com/](https://manuelmoreale.com/) he sells via this site:

> **[My Site's Theme - Buy Me A Coffee](https://www.buymeacoffee.com/l/manuthemeone)**
>
> A couple of people have asked for this in the past so I finally decided to do it. This is an exact replica of my personal site. It's yours in exchange for a couple of coffees.

He has been friendly and helpful I don’t want my problems to be his problem. I am not too skilled at this and could easily messed this up myself.

I think maybe I should go through the upgrade instructions again see if that sorts this out.  
[https://getkirby.com/docs/cookbook/migration/sites#requirements-and-installation](https://getkirby.com/docs/cookbook/migration/sites#requirements-and-installation)

---

<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:** [February 22, 2019, 11:12pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/13 "2019-02-22T23:12:18Z")

</div>

No, I’m not jumping anywhere, I just wanted to try and clarify what’s happening here.

Did the theme come with the Kirby core files?

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 11:20pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/14 "2019-02-22T23:20:14Z")

</div>

![image](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/b/b2a6487f64415e734041bc0ebc99914423a35751.png)

That’s the folder structure I recieved.

---

<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:** [February 22, 2019, 11:23pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/15 "2019-02-22T23:23:30Z")

</div>

That’s definitely Kirby 2, not Kirby 3. Kirby 3 doesn’t have a panel folder on the root level, nor a thumbs folder.

I think you best get in touch with @manuelmoreale and ask for the Kirby 3 version, probably the link hasn’t been updated yet.

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 22, 2019, 11:25pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/16 "2019-02-22T23:25:54Z")

</div>

Will do thank you!

---

<div class="post-metadata">

**Author:** ![manuelmoreale](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/manuelmoreale/32/839_2.png) [@manuelmoreale](https://forum.getkirby.com/u/manuelmoreale)\
**Post date:** [February 23, 2019, 8:49am UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/17 "2019-02-23T08:49:19Z")

</div>

@tsparks sent you an email 😉

---

<div class="post-metadata">

**Author:** ![tsparks](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tsparks/32/2259_2.png) [@tsparks](https://forum.getkirby.com/u/tsparks)\
**Post date:** [February 23, 2019, 5:50pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/18 "2019-02-23T17:50:13Z")

</div>

Manu, Sonja

Thank you for your patience, everything is working as it should. I am happy and grateful. Have a wonderful weekend!

---

<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:** [February 23, 2019, 5:58pm UTC](https://forum.getkirby.com/t/error-when-installing-a-new-theme/13009/19 "2019-02-23T17:58:16Z")

</div>

Glad you could sort it out!

Have a great weekend, too, @tsparks .
