This theme is not compatible with Drupal 9.0.5. Check that the .info.yml file contains a compatible 'core' or 'core_version_requirement' value.

Issue fork omega-3169332

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Gauravmahlawat created an issue. See original summary.

gauravvvv’s picture

StatusFileSize
new314 bytes

I have provided the patch please verify if it is working or not.

gauravvvv’s picture

Status: Active » Needs review
ytsurk’s picture

Status: Needs review » Closed (duplicate)
Related issues: +#3148273: Automated Drupal 9 compatibility fixes

There are more changes then just in the info.yml needed ...

ytsurk’s picture

Status: Closed (duplicate) » Reviewed & tested by the community

Sorry my bad, this is the only thing missing in the automated patch

ytsurk’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new735 bytes

Was too quick, your patch does not respect non-D9, and the omega_tools module also needs an updated core_version_requirement

divyesh19’s picture

StatusFileSize
new2.07 KB

Attaching updated patch which fixes some more deprecated code.

tushar_sachdeva’s picture

StatusFileSize
new78.61 KB

@divyesh19 the above patch#7 does not apply, whereas on applying #6 patch apply cleanly but throws an error: "The website encountered an unexpected error. Please try again later".

tushar_sachdeva’s picture

Status: Needs review » Needs work

elimw made their first commit to this issue’s fork.

elimw’s picture

Status: Needs work » Needs review
mcannon’s picture

StatusFileSize
new27.93 KB

I was just working on this same issue & have been running into error using composer. Both patched on this issue fail because of the changes in the `*.info.yml` files. This is the same problem that I have been having. The patch I am uploading DOES NOT contain any `*.info.yml` updates, but it contains a lot of updates I found via `drupal-check` to replace deprecated code that will not be available in D9.

I hope it helps!

Any advice on how to get past the issues I'm having with the `*.info.yml` files would be appreciated.

ytsurk’s picture

Use this fork here. See https://www.drupal.org/docs/develop/git/using-git-to-contribute-to-drupa...

Or add your own repository in composer.json, like

       "my/omega": {
          "type": "package",
          "package": {
              "name": "my/omega",
              "version": "dev-df96ba3",
              "source": {
                  "type": "git",
                  "url": "https://git.drupalcode.org/project/omega.git",
                  "reference": "df96ba3"
              },
              "require": {
                  "drupal/core": "^8.8 || ^9.0"
              },
              "type": "drupal-theme"
          }
        }

require cweagans/composer-patches

and in the extra section of your composer.json, add

        "enable-patching": true,
        "patches": {
            "my/omega": {
                "d9": "https://www.drupal.org/files/issues/2020-06-06/omega.5.x-dev.rector.patch",
                "d9 info": "https://www.drupal.org/files/issues/2020-12-18/3169332-d9_info_ymls-6.patch",
                "d9 comp": "patches/omega-term.patch",
                "warnings and errors": "patches/omega2.patch"
            }
        },

remove drupal/omega and add my/omega.

pavelgerasuta’s picture

Patch for upgrading to Drupal 9 for alpha7 version

pavelgerasuta’s picture

davidburns’s picture

StatusFileSize
new6.25 KB

Patch in #13 worked for me.

Still ran into 1 error.

omega-functions.php line 120
$vocab = $term->getVocabularyId(); should be $vocab = $term->bundle();

Sarahlee1’s picture

Hey I have tried the patches in this thread.
This currently the error i have.

The website encountered an unexpected error. Please try again later.
ParseError: syntax error, unexpected end of file in Drupal\system\Form\ThemeSettingsForm->buildForm() (line 319 of themes/omega/omega/theme-settings.php).

Drupal\system\Form\ThemeSettingsForm->buildForm(Array, Object, 'omega')
call_user_func_array(Array, Array) (Line: 532)
Drupal\Core\Form\FormBuilder->retrieveForm('system_theme_settings', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 578)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 717)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Wilson2100 made their first commit to this issue’s fork.

Sarahlee1’s picture

@Wilson2100 I have pulled down the "remotes/origin/3169332-drupal-9-compatible" branch, should i now be applying the previous patches in this thread to it?
Sorry im not very familiar with git and branch merging etc, currently I have just been applying patches manually.

When i try to apply patches with git I always get "error: patch failed"

rathod03’s picture

Hi @PavelGerasuta, Tried to apply your patch on alpha 7 version but I can't, it gives error
Could not apply the patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2021-11-08/Drupal_9_compatible_alpha_7-3169332-15.patch
Can you please check or suggest if there is something wrong?

Thank you in Advance!

michellesfrazer’s picture

This theme is not compatible with 9.3.15. Seeking an alternative. Looks like Bartik as a base theme might be the wiser route to go.

dfletcher’s picture

@ytsurk nice composer solution. The patch fails on (d9 comp) and (warnings and errors). Is that bit missing? Because it has an error "The website encountered an unexpected error. Please try again later." 500 any non-admin page. It says "Error: Class 'Drupal\omega\Theme\OmegaSettingsInfo' not found" and the settings page is broken. Ideas?