October 3 update error

I update October from 2 to 3. PHP 8 and i got error
I updated same system on my local envoirment adn everything was fine.

  • Upgrading composer/composer (2.2.24 => 2.7.7): Extracting archive
  • Upgrading october/rain (v2.2.34 => v3.7.4): Extracting archive
    1 package suggestions were added by new dependencies, use composer suggest to see details.
    Generating autoload files

System\Console\ComposerScript::postAutoloadDump
PHP Fatal error: Class System\Classes\PluginBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (October\Contracts\Support\OctoberPackage::registerPageSnippets) in /home/users/xxx/public_html/modules/system/classes/PluginBase.php on line 16

In PluginBase.php line 16:

Class System\Classes\PluginBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (October\Contracts\Support\Octobe
rPackage::registerPageSnippets)

96 packages you are using are looking for funding.
Use the composer fund command to find out more!

System\Console\ComposerScript::postUpdateCmd
PHP Fatal error: Class System\Classes\PluginBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (October\Contracts\Support\OctoberPackage::registerPageSnippets) in /home/users/xxx/public_html/modules/system/classes/PluginBase.php on line 16

In PluginBase.php line 16:

Class System\Classes\PluginBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (October\Contracts\Support\Octobe
rPackage::registerPageSnippets)

PHP Fatal error: Class System\Classes\PluginBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (October\Contracts\Support\OctoberPackage::registerPageSnippets) in /home/users/xxx/public_html/modules/system/classes/PluginBase.php on line 16

In PluginBase.php line 16:

Class System\Classes\PluginBase contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (October\Contracts\Support\Octobe
rPackage::registerPageSnippets)

My composer.json

“require”: {
“php”: “>=7.2.9”,
“october/rain”: “^3.0”,
“laravel/framework”: “^9.0”,
“october/all”: “3.0”,
“janvince/smallextensions-plugin”: “^1.19”,
“rainlab/pages-plugin”: “^1.5”,
“rainlab/blog-plugin”: “^1.7”,
“carlosrgzm/cookieconsent-plugin”: “^1.0”
},

The issue is probably the PHP version on your server. Make sure that you CLI version of PHP is 8.x and update your composer.json:

"require": {
    "php": "^8.0.2",
    [...]
},

PHP version is 8.0.2. Changing composer.json didnt help.

Should be

"october/all": "^3.0",

1 Like

Many thanks :smiley: It worked.

1 Like