New v4 OctoberCMS

Hey!

Any news on the new v4? I am waiting for the new dashboard etc.

Thanks

3 Likes

Hey @MateThemes

It’s getting there… any day now.

Here’s the quickstart/draft guide that should be the basis of the beta version. Upgrading from v3…

Update composer.json

"require": {
    "php": "^8.2",
    "october/rain": "4.x-dev",
    "october/all": "4.0.x-dev",
    "laravel/framework": "^12.0"
},

Update these files

curl -o ./config/app.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/config/app.php
curl -o ./bootstrap/app.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/bootstrap/app.php
curl -o ./bootstrap/providers.php https://raw.githubusercontent.com/octobercms/october/refs/heads/4.x/bootstrap/providers.php
5 Likes

Hi

in composer I also replace

"minimum-stability": "dev",

Should I run some migrations?

php artisan october:migrate

Give errors.

In routes.php line 3:
                                                                
  The use statement with non-compound name 'App' has no effect  
                                                            

Also there is error in admin dashboard

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'is_custom' in 'field list' (Connection: mysql, SQL: select `is_custom`, `owner_field` from `backend_dashboards` where `owner_type` = Backend\Controllers\Index order by `backend_dashboards`.`sort_order` asc)

Hi @bob-tm,

You can remove the use App; statement from your routes.php file.

After that, run php artisan october:migrate and the error should be resolved:

SQLSTATE[42S22]: Column not found: 1054
Unknown column 'is_custom' in 'field list' (Connection: MySQL, SQL: SELECT is_custom, owner_field FROM backend_dashboards WHERE owner_type = Backend\Controllers\Index ORDER BY backend_dashboards.sort_order ASC)

1 Like

More detailed instructions can be found here:

Thanks, works!

I have custom twig filter ‘inline’ that simply read file content and return is as text.

in v4 all text after custom filter is escaped. So I need to use two filters | inline | raw.

it’s possible to “apply” raw filter in plugin and do not change templates?

looks perfect the new version.

Congratulations.

1 Like

Hi,

When running the upgrade guide everything went normal , but when accessing the backedn I get the following error:

October\Rain\Assetic\Combiner::getFilters(): Argument #2 ($isProduction) must be of type bool, null given, called in /var/www/newsite-dev/vendor/october/rain/src/Assetic/Combiner.php on line 66

On the frontend I get

Carbon\Exceptions\InvalidTimeZoneException
Unknown or bad timezone ()

Php 8.2.28

Thanks for your help

Hi @alexbog8

Please report issues here:

Best

ERROR
We’re sorry, but an unhandled error occurred. Please see the details below.

CSRF token mismatch.
~/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php line 645

Even if the token is stopped in a file .env

ENABLE_CSRF=false

the same error still appears.

Hi @Dheia

Please report issues here:

Best

Any plan for the end of the beta ? We are a quite big project incoming, and would like to start it with the new version.

I think we plan to release 4.0 as essentially the 3.7 version that supports Laravel 12. It contains the new settings and dashboard area. This allows us to keep up with Laravel but also not be too disruptive to sites that are upgrading.

You’re welcome to start with this beta version: October CMS 4.0 Beta - Install Guide · Issue #5848 · octobercms/october · GitHub

We will publish the 4.0 release once the new installer is completed, which might take a couple more weeks.

good to hear that the new version is on the way.

is there any thing new on theme development?

Yes, there are some improvements we have in the pipeline, however they are more likely to arrive in v4.1

1 Like