My theme can't be found after update to version 3.4

william - 2 months ago

Everything works fine. I go over the 3.4 upgrade instructions. Now i get Class Pixney\WilliamastromTheme\WilliamastromTheme does not exist.

I can not run any php artisan commands obviously. I have tried composer dump. The class obviously exist.

Wake up and help me mr @ryanthompson :)

Answer

william - 2 months ago

So it's confirmed this issue happens when going from 3.2 to 3.3 and then to 3.4. The blogpost regarding upgrade is about to be updated now. But what was missed earlier was that we also need to make sure the following is included in the composer.json file:

"extra": {
"merge-plugin": {
"include": [
"addons/*/*/*/composer.json",
"core/*/*/composer.json"
],
"recurse": true,
"replace": false
}
},
"config": {
"bin-dir": "bin",
"preferred-install": "dist",
"optimize-autoloader": true
}

Another important part, is that if you are using the grid, it has to be updated to 1.3 since it breaks with 3.4 running on 1.1.

william - 2 months ago

My theme:

alt textalt text

william - 2 months ago

Was gonna scaffold a new theme and see if that worked. But i get the same kind of issue, saying it doesn't exist.

william - 2 months ago

Tried with another site and that also failed. Other sites have worked fine upgrading. The commons are as follows: Those that work, are sites built on 3.3 and then going to 3.4 Those that does not work, are sites built originally on 3.2, upgraded earlier to 3.3 and now trying to go to 3.4.

william - 2 months ago

So it's confirmed this issue happens when going from 3.2 to 3.3 and then to 3.4. The blogpost regarding upgrade is about to be updated now. But what was missed earlier was that we also need to make sure the following is included in the composer.json file:

"extra": {
"merge-plugin": {
"include": [
"addons/*/*/*/composer.json",
"core/*/*/composer.json"
],
"recurse": true,
"replace": false
}
},
"config": {
"bin-dir": "bin",
"preferred-install": "dist",
"optimize-autoloader": true
}

Another important part, is that if you are using the grid, it has to be updated to 1.3 since it breaks with 3.4 running on 1.1.