Hi, assistance please
After installing and enabling the AT Tools and AT theme generator modules this warning persists:
The following module is missing from the file system: THEMENAME bootstrap.inc:233 [warning]
Unknown path for THEMENAME module.running: AT 8.x-1.0-rc2, AT tools 8.x-1.0-rc2, Drupal 8.1.6
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | Screen Shot 2017-11-30 at 4.59.04 PM.png | 188.55 KB | ret5 |
| #13 | db_system.theme_.data_.txt | 28.67 KB | abaier |
Comments
Comment #2
Jeff Burnz commentedHave you generated any themes yet? Or made any modifications to the module, e.g. copy pasted the starterkit and placed it somewhere and modified it?
I'm not sure how to replicate the issue (scratching head), it seems to indicate something is called drupal_get_filename() on a module called THEMENAME, or drupal_get_path().
THEMENAME is the placeholder in the starterkit we used to search and replace on when generating a new theme.
Comment #3
patrickmichael commentedHi Jeff, all i did was install and enable the modules. I did not generate any new themes or modify the module. The existing sub theme is in place and is the default theme, however that was generated some months back, prior to these modules being installed.
I installed the modules in response to the message:
I had been using AT for 3 months without the modules.
Comment #4
Jeff Burnz commentedCan you try clearing the Drupal cache. I am wondering if there is something left over from the programmatic uninstall of the old generator theme (something in the database), if the clear cache does not work is it possible to do a full text search on the database on that string "THEMENAME"
Also look in themes/adaptivetheme/ are there any directories other than /at_core/ ?
Comment #5
patrickmichael commentedonly at_core in themes/adaptivetheme
running drush cr and then drush pm-updatestatus shows the warning persists
string search reveals:
1 match in cache_bootstrap
2 matches in key_value -> system.theme.data and system.theme.files
in all three instances the values in the tables are BLOB
Comment #6
abaier commentedI am also getting this message since the update from rc1/dev to rc2. Same tables.
Comment #7
Jeff Burnz commentedOh you're kidding. That has to be a Drupal core bug,THEMENAME is a real theme but hidden and never enabled, ever, but Drupal is storing it as a "required by" at_core, but not removing this when the theme is removed from the file system. The bootstrap cache you can clear, but I think it will come back because its in key_value, I need to study the theme installer for Drupal and figure out how to work around this.EDIT: now I have looked more I'm not sure this is a bug... not sure.
Comment #8
Jeff Burnz commentedThe problem I am having is that I cannot actually reproduce the issue, I can see the data but I just never get any warnings (and I'm running pretty much the same thing as you, upgraded modules/themes etc for at least 3 themes I use as tests).
I have a possible workaround, however if you do this you will not successfully generate new standard themes (clones should work) until such time as I release a new version of AT Tools module.
Open this file:
modules/at_tools/at_theme_generator/starterkits/starterkit/THEMENAME.info.ymlRemove the line: "base theme: at_core"
Save and clear the Drupal cache. Let see if that removes the warning for you.
If this still doesn't work for you then I need to know what the contents of a row in the database:
table: key_value
row: system.theme.file
Comment #9
abaier commentedRemoving
base theme: at_corefrom the starterkit did not remove the warning for me.Here's the db-content of
system.theme.files(including additional line-breaks …)Comment #10
abaier commentedI don't know what is happening behind the scenes while updating a theme, but maybe the fact that
at_theme_generatorwas moved tomodules/at_toolsleft some traces behind …?I followed this order:
· working on adaptivetheme dev (rc1 state)
· subtheme was generated with rc1 before updating to dev
· installed and enabled
at_tools· replaced adaptivetheme folder with the one from rc2
· followed the update suggestions (rc1 to rc2)
Comment #11
Jeff Burnz commentedHave you enabled the Theme Generator module?
If you could attach a text file with the contents of system.theme.data that would be great.
What tests have you run to get all those test themes in system.theme.files?
I can see this entry is correct:
Thats all I have also, and that path is correct so the warning from drupal_get_filename() really has me scratching my head. I need to run more debugging on this, so hard when I can't reproduce it, very frustrating!!
Comment #12
patrickmichael commented#8 did not remove warning for me
Comment #13
abaier commentedYes, theme generator is enabled, because I needed this to do the file updates from the "donor" subtheme, like you described.
I actually did not run any tests, but this functionality was activated in settings.local.php … set this to false now.
Herwith also the content of
system.theme.dataas text file. Hope the structure is ok.Comment #14
Jeff Burnz commentedOK, this is where I'm at, I've basically run out of debugging options and I haven't been able to replicate the issue - my only recourse at this stage is to ask you guys to start debugging drupal_get_filename() yourself and see where the warning is coming from, or if one of you can give me a copy of your site (all files, database etc) so I can install and debug it locally. I'd really like to get to the bottom of this.
Comment #15
patrickmichael commentedDebugging at this level is beyond my skill, although i would love to learn how! I can make a copy of my site available for you via ftp. Perhaps we continue on irc or skype to arrange?
Comment #16
Jeff Burnz commentedI debugged Patricks site and found the issue is when drush dl or pm-update is run, debugging drush is not something I know a whole lot about, I've picked through the code and can potentially see where the issue lies, however drush is fairly complex and not something I feel confident dealing with or giving advice about.
I'm going to close this as cannot reproduce this, since no as yet as said Drupal is returning this error when used in a normal way - drush is not normal, at all, it has all sorts of functions for extension discovery and the bug could be in one of those, since all things being equal I am yet to see this bug in a Drupal watchdog log or even on screen, other than in a cli with drush on one site (does not happen on any of my development sites).
If you can give me a rock solid way to reproduce this in Drupal front end, I'm all ears. I can't debug something I can't reliably reproduce.
Comment #17
abaier commentedNevermind and thanks for your effort. I don't see this warning in watchdog neither, only in drush.
Because I previously had this "missing module" warning using another module as well (this time in watchdog and frontend warnings), I found a post, that could maybe be interesting for you, as I saw AT is using
drupal_get_path()instead of the "newer"drupal_get_filenamefunction. But as I would expect, you already know that ;) … See here: https://www.drupal.org/node/2581445Comment #18
Jeff Burnz commentedYou would only call drupal_get_filename directly to set the param to FALSE if you're checking if a file actually exists - AT doesn't really need or want to do that, we only call files that should/do exist (not maybe or lets check if they etc), if they don't we get a warning, which is good, because your site is not going to work as expected if any of those files are actually missing.
In this case it's Drush calling drupal_get_path(), e.g. in pm-update it calls it, and I suspect that is where the issue is - this is what is really weird, the last check that drupal_get_filename does before the warning is to check the state, and in Particks site the path to THEMENAME is right there in the database, the exact info it's asking for, which works fine on every other site I have running for dev and testing etc:
this is why I asked about state system.theme.files, this is from Patricks site (nothing security wise here):
a:8:{s:6:"bartik";s:34:"core/themes/bartik/bartik.info.yml";s:6:"classy";s:34:"core/themes/classy/classy.info.yml";s:5:"seven";s:32:"core/themes/seven/seven.info.yml";s:6:"stable";s:34:"core/themes/stable/stable.info.yml";s:5:"stark";s:32:"core/themes/stark/stark.info.yml";s:9:"THEMENAME";s:77:"modules/at_tools/at_theme_generator/starterkits/starterkit/THEMENAME.info.yml";s:7:"at_core";s:45:"themes/adaptivetheme/at_core/at_core.info.yml";s:11:"at_ds_eight";s:39:"themes/at_ds_eight/at_ds_eight.info.yml";}
and there it is, the path to the info file, so why is drush bumming out? You tell me.
Comment #19
abaier commentedReally weird, indeed. I am sorry I can't help on this, because it's way out of my skills.
Comment #20
Carlos Miranda Levy commentedUninstalling both at_tools and at_theme_generator modules and deleting the at_tools from the modules folder solved this for me.
Nothing else would.
The message was being displayed on any drush update command on any sites of a multisite installation, including those were the AT modules had not being activated.
Comment #21
Jeff Burnz commentedPlease see #16 if you can satisfy those requirements please re-open, i.e.:
Comment #22
ret5 commentedI know this thread was closed a year ago but I keep running into this same issue. There is definitely a relationship between the AT Tools module and it throwing the error when Drush performs future actions such as drush up or drush dl. Tried on several sites and replicated each time. So I've documented in a screen grab.
Started a new test D8 site. No themes, no modules installed.
1. Downloaded Bootstrap (for sake of comparison). Followed with Drush Up. No errors.
2. Downloaded Adaptive Theme. Followed with Drush Up. No Errors.
3. Downloaded AT Tools. Followed with Drush Up. Throws the following errors:
The following module is missing from the file system: STARTERKIT bootstrap.inc:250 [warning]
Unknown path for STARTERKIT module. [warning]
The following module is missing from the file system: SKIN bootstrap.inc:250 [warning]
Unknown path for SKIN module.
Note that i have not enabled any of these modules or themes. Only downloaded.
Even after removing themes, drush continues to throw error on drush dl or drush up.
Am I missing anything obvious? Any ideas? Thanks!
[screenshot attached]
Comment #23
Jeff Burnz commentedWeel I could guess that's an issue where drush is looking for info.yml files and not checking if they're modules or themes, which is kind of reasonable given they're themes in the module directory.
I could solve this by changing the info.yml files to txt files and then renaming them during theme generation.
Comment #24
ret5 commentedThanks for the quick reply. I'm not much of a coder so that would be great if you could put together a patch. Would be happy to test.\
Thanks!
Comment #25
ret5 commentedJust a quick mention.. i created another d8 test site, this time manually adding the at_tools module... No drush was involved. Got the same error. Just thought I'd mention as it sounds like maybe something in the module info file. Also, apologies, I'm guessing this thread would make more sense on the at_tools issue page.
Comment #26
dries arnoldsI still get the SKIN and STARTERKIT missing module errors on 8.x-3.1.
Comment #27
thuthuka commentedI am also getting a "Unknown path for STARTERKIT / SKIN module".
I dont want to cross post but I only found this thread after I posted
this here
But I am not so sure it is Adaptive Theme as I am getting other Drush errors.
EG:
count(): Parameter must be an array or an object that implements
Countable Table.php:789 [warning]
So I am looking for other "missing module errors" or "Unknown path for ???? module."
with Drush that might have a solution.
I am going to try option #8 and look into #18 to see if any of it helps me. :-)
Comment #28
wxman commentedI'm running Drupal 8.6.1 and the same thing just happened to me. It was the first time I've tried to run updates through drush and I got the same fail:
The following module is missing from the file system: STARTERKIT bootstrap.inc:276 [warning]
Unknown path for STARTERKIT module. [warning]
The following module is missing from the file system: SKIN bootstrap.inc:276 [warning]
Unknown path for SKIN module. [warning]
Drush version is 8.0.0