How I can migrate from roots/sage-lib 9.0.2 to sage 10?

I am upgrading a wordpress project to 6.1.1 and I would like to update Sage as well, currently the version is “roots/sage-lib”: “9.0.9”, and I would like to upgrade to the latest version correctly, I have searched for documentation but I can’t find it.

Via composer I have the following errors as the repositories don’t exist:

Package roots/sage-lib is abandoned, you should avoid using it. No replacement was suggested.
Package roots/sage-woocommerce is abandoned, you should avoid using it. No replacement was suggested.
Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.
Package roots/sage-installer is abandoned, you should avoid using it. No replacement was suggested.

currently the version is “roots/sage-lib”: “9.0.9”, and I would like to upgrade to the latest version correctly,

Why do you want to upgrade Sage? Is there some specific functionality you’re after? Generally Sage is not meant to be “upgraded.”

1 Like

I don’t exactly want to update, but I have some errors after the update that I don’t know if they come from the sage vendor:

Notice : Function rest_validate_value_from_schema was called incorrectly . The “type” schema keyword for mode can only be one of the built-in types: array, object, string, number, integer, boolean and null. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/clients/client2/web495/web/web/wp/wp-includes/functions.php on line 5835

Adding a backtrace I have the following information and I see that there are several functions that are called in the sage vendor and I thought it would be because it was not updated.

0 _doing_it_wrong() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/rest-api.php:2139]
1 rest_validate_value_from_schema() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/class-wp-block-type.php:442]
2 WP_Block_Type->prepare_attributes_for_render() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/class-wp-block.php:185]
3 WP_Block->__get() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/class-wp-block.php:256]
4 WP_Block->render() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/blocks.php:1051]
5 render_block() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/blocks.php:1089]
6 do_blocks() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/class-wp-hook.php:308]
7 WP_Hook->apply_filters() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/plugin.php:205]
8 apply_filters() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/post-template.php:255]
9 the_content() called at [/var/www/clients/client2/web495/web/web/app/uploads/cache/c52cf7d6c7982aea507b1c3e4611676695238a3e.php:3]
10 include(/var/www/clients/client2/web495/web/web/app/uploads/cache/c52cf7d6c7982aea507b1c3e4611676695238a3e.php) called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/Engines/PhpEngine.php:43]
11 Illuminate\View\Engines\PhpEngine->evaluatePath() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/Engines/CompilerEngine.php:59]
12 Illuminate\View\Engines\CompilerEngine->get() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/View.php:142]
13 Illuminate\View\View->getContents() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/View.php:125]
14 Illuminate\View\View->renderContents() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/View.php:90]
15 Illuminate\View\View->render() called at [/var/www/clients/client2/web495/web/web/app/uploads/cache/454497862f3181e22a930ee4c33ffbe25c608d0d.php:30]
16 include(/var/www/clients/client2/web495/web/web/app/uploads/cache/454497862f3181e22a930ee4c33ffbe25c608d0d.php) called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/Engines/PhpEngine.php:43]
17 Illuminate\View\Engines\PhpEngine->evaluatePath() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/Engines/CompilerEngine.php:59]
18 Illuminate\View\Engines\CompilerEngine->get() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/View.php:142]
19 Illuminate\View\View->getContents() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/View.php:125]
20 Illuminate\View\View->renderContents() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/illuminate/view/View.php:90]
21 Illuminate\View\View->render() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/vendor/roots/sage-lib/Template/Blade.php:58]
22 Roots\Sage\Template\Blade->render() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/app/helpers.php:59]
23 App\template() called at [/var/www/clients/client2/web495/web/web/app/themes/critic/app/filters.php:54]
24 App{closure}() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/class-wp-hook.php:308]
25 WP_Hook->apply_filters() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/plugin.php:205]
26 apply_filters() called at [/var/www/clients/client2/web495/web/web/wp/wp-includes/template-loader.php:104]
27 require_once(/var/www/clients/client2/web495/web/web/wp/wp-includes/template-loader.php) called at [/var/www/clients/client2/web495/web/web/wp/wp-blog-header.php:19]
28 require(/var/www/clients/client2/web495/web/web/wp/wp-blog-header.php) called at [/var/www/clients/client2/web495/web/web/index.php:5]