Fresh install of Drupal 8.2.4, first thing I attempted to do was install mBase theme. I did, and got the "The website encountered an unexpected error. Please try again later." error. I clicked "back", and checked my log, which shows:
Drupal\Core\Extension\InfoParserException: Unable to parse temporary://update-extraction-501052eb/mbase/mbase.info.yml yaml_parse(): scanning error encountered during parsing: found character that cannot start any token (line 39, column 3), context while scanning for the next token (line 39, column 3) in Drupal\Core\Extension\InfoParserDynamic->parse() (line 25 of /home/{PATH}/core/lib/Drupal/Core/Extension/InfoParserDynamic.php).
I completely uninstalled Drupal, and reinstalled, as I say, making mBase the first thing I attempted to do, after logging in, and the issue still persists.
Comment | File | Size | Author |
---|---|---|---|
#12 | infoparserexception-2841095-12.patch | 310 bytes | cilefen |
Comments
Comment #2
cilefen CreditAttribution: cilefen as a volunteer commentedLine 39 of the info.yml file starts with an '@' symbol:
Comment #3
BEGRAFX CreditAttribution: BEGRAFX commentedWhere did this @ symbol come from? As I said, fresh Drupal install, mBase fresh from Drupal.Org. How did this happen?
Comment #4
cilefen CreditAttribution: cilefen as a volunteer commentedI am sure I do not know what you mean. This symbol is in the code of the mbase project, added in this commit: http://cgit.drupalcode.org/mbase/commit/mbase.info.yml?id=9c47bc83303482...
It is there it must be fixed.
Comment #5
BEGRAFX CreditAttribution: BEGRAFX commentedI understand, and agree; but I'm confused, as I had set up another site using the same core Drupal and the same release of mBase, and it worked fine. Clearly, something changed somewhere, but I'm trying to figure out what. I'm trying to figure out how the "@" symbol suddenly appears. I looked, and there is only one release of mBase listed on Drupal.org, unless, for some reason, the author pushed a revision of the same version, which had the @ ?
Comment #6
cilefen CreditAttribution: cilefen as a volunteer commentedThe unquoted '@' has been in this project from its beginning on Drupal 8 it seems. It is invalid YAML. Have you got Drupal 8.2.4 from a zip download or did you build with composer?
Comment #7
BEGRAFX CreditAttribution: BEGRAFX commentedAll I know is, I installed mBase on an 8.2.4 site about 2 weeks ago, without issue, and then about a week ago now, I attempted to use it on another site, and got the error. I believe both instances of 8.2.4 were installed via Drush.
Comment #8
cilefen CreditAttribution: cilefen as a volunteer commentedAre the composer.lock files different between the sites? In an uncanny coincidence, we just posted a utiltity app to compare composer.lock files, yesterday.
Comment #9
khaji00 CreditAttribution: khaji00 commentedI'm also experiencing this issue. I'm on Drupal 8.2.5 and tried to install 8.x-1.0
Comment #10
cilefen CreditAttribution: cilefen as a volunteer commentedRe #7: Oh, drush. Are they on the same platform?
Comment #11
BEGRAFX CreditAttribution: BEGRAFX commentedRe: #10; Don't they have to be, in order for it to work at all? Or am I misunderstanding your question?
Comment #12
cilefen CreditAttribution: cilefen as a volunteer commented@BEGRAFX I am trying to answer #5 by determining if the Drupal core code or platform details are different. Otherwise there would be only magical explanations.
But let me be clear: This theme contains invalid YAML.
Comment #13
BEGRAFX CreditAttribution: BEGRAFX commented@cilefen: Both Drush Installations were to the same host/platform, yes. Not knowing all of the intricacies of Drupal.org and how it handles revisions and such; is it possible that I downloaded a working version of mBase on (for example sake) 1/1, and then, on 1/5 someone, while perusing the code, unintentionally added the "@" and then saved it as the same version? So that when I attempted to build the next site on 1/7, and went to install mBase, the bad code was there, and caused the problem? Would Drupal.org allow identical code, with the exception of one character, to be saved with an identical version number?
Comment #14
cilefen CreditAttribution: cilefen as a volunteer commentedNo, no and no.
Comment #15
cilefen CreditAttribution: cilefen as a volunteer commentedAnyway, I hope the patch I posted in #12 helps.
Comment #16
BEGRAFX CreditAttribution: BEGRAFX commented*I* have saved a .ZIP of mBase with the offending @ removed, so it works fine when I need the base theme. However, clearly a corrected version needs to be posted for others.
Comment #17
vrwired CreditAttribution: vrwired commentedFWIW, I had this *exact same* experience and used the patch to clear it up. IMO this theme is an excellent bootsrap and glad to have it working for another site based on a patch to solve whatever necessitated it.