1

After I put a new custom theme I did in my theme folder, when I go to my website to install and apply the theme, the site just keeps returning this error:

"The website encountered an unexpected error. Please try again later."

PHP error log message:

"Drupal\Core\Extension\InfoParserException: Missing required keys (core) in themes/custom/javali/javali.info.yml in Drupal\Core\Extension\InfoParserDynamic->parse() (line 29 of /home/rui/public_html/core/lib/Drupal/Core/Extension/InfoPar‌​serDynamic.php)."

Yes, I know the error is very common, but I believe I explained my specific problem well.

PS: And now when I put the theme in the folder themes folder, the site works except the admin nodes.

PROBLEM SOLVED: I put the following lines on the .info.yml file as Neograph734 said and now everything works fine!

core: 8.x
version: 8.x-2.0

closed as too broad by Neograph734, DRUPWAY, Krishna Mohan, mradcliffe, kiamlaluno Jan 3 '17 at 13:04

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Does the problem go away if you remove your custom theme from the theme folder? You likely have a syntax error somewhere, but it is impossible to tell... – Neograph734 Jan 3 '17 at 12:30
  • Welcome to Drupal Answers! I am sorry, but we cannot debug a site to which we don't have access, nor can we list all the possible causes for an error as generic as that one. If you look at the logs, you will find out PHP raised an exception, or a fatal error. – kiamlaluno Jan 3 '17 at 13:04
  • Now your error is pretty clear: Missing required keys (core) in themes/custom/javali/javali.info.yml So apparently you did not define the core version, or there is some other context error in javali.info.yml. Here is some info on theme .info.yml files – Neograph734 Jan 3 '17 at 15:00

Browse other questions tagged or ask your own question.