In a Drupal 8.8.4 clean installation we try to install the theme en we get the following error:

The gin theme was not found.

CommentFileSizeAuthor
#11 breakpoint_gin_install.png118.3 KBq__nt_n
#4 install_error_3.png765.4 KBAnonymous (not verified)
install_error.png468.44 KBAnonymous (not verified)

Comments

Anonymous’s picture

Notice: Trying to get property 'info' of non-object in Drupal\system\Form\ThemeExperimentalConfirmForm->Drupal\system\Form\{closure}() (line 110 of

saschaeggi’s picture

Status: Active » Postponed (maintainer needs more info)

Hey, did you follow the instructions over at https://www.drupal.org/project/gin ?

Anonymous’s picture

StatusFileSize
new765.4 KB

Yes we did.

Anonymous’s picture

Notice: Trying to get property 'info' of non-object in Drupal\system\Form\ThemeExperimentalConfirmForm->Drupal\system\Form\{closure}() (line 110 of

simon georges’s picture

I have the same issue. After enabling Caro as default theme, clicking on "Install Gin" brings a "The gin theme was not found".
Drush gives a "Unable to install modules gin due to missing modules gin."

I found the issue: I had installed "Claro" but not set it as my admin theme. By doing that, Gin installation works.

saschaeggi’s picture

Status: Postponed (maintainer needs more info) » Fixed

Thanks @simon I've updated the steps accordingly: https://www.drupal.org/project/gin

q__nt_n’s picture

Status: Fixed » Needs work

Hello,

I follow the new steps and it's doesn't work.
I'll try to debug

q__nt_n’s picture

StatusFileSize
new118.3 KB

I add a breakpoint at line 129 in ThemeInstaller.php.

The condition has not been met because gin_toolbar dependency isn't in $theme_data (@see attachment). Is it because gin_toolbar is a module and not a theme ?

So, when I remove this :

# Dependency on module > Drupal 8.9
dependencies:
  - gin_toolbar:gin_toolbar

in your gin.info.yml and enable gin_toolbar manually, then installing Gin theme works !

  • saschaeggi committed 138dec4 on 8.x-3.x
    Issue #3122352 by q__nt_n, saschaeggi, Simon Georges:  Unable to install...
saschaeggi’s picture

Okay that was added recently to because of this #474684: Allow themes to declare dependencies on modules but I'll remove it again for now. Thanks for reporting. Just rolled out Alpha4 with the fix.

Let me know if it works again with Alpha4.

saschaeggi’s picture

Status: Needs work » Needs review
saschaeggi’s picture

Can anybody confirm that it works again with the release of Alpha4? Thanks :)

anruether’s picture

I just installed alpha5 and followed the instructions on the module page. It works for me! (Looks great btw :)

saschaeggi’s picture

Status: Needs review » Reviewed & tested by the community

@SimonGeorges @q__nt_n can you confirm? :)

saschaeggi’s picture

Status: Reviewed & tested by the community » Fixed
saschaeggi’s picture

Status: Fixed » Closed (fixed)