Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
theme system
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Anonymous (not verified)
Created:
11 Jul 2016 at 11:27 UTC
Updated:
24 Jun 2019 at 13:40 UTC
Jump to comment: Most recent
Comments
Comment #1
Anonymous (not verified) commentedrajibmp created an issue. See original summary.
Comment #2
cilefen commentedTry browsing /rebuild.php and see https://www.drupal.org/documentation/rebuild
Comment #3
cilefen commentedComment #4
gnugetI tried to replicate this problem and I couldn't do it.
can you please provide a list of steps to reproduce it?
Comment #5
joelpittetI second #4
Comment #7
Anonymous (not verified) commentedsorry, didn't see the message for long:
steps to reproduce:
1. Create a new theme in the themes folder. Add Bartik as its parent theme, add YAML file giving info about your subtheme.
2. Create a templates folder
3. Go to appearance from admin menu and set default the theme you just created.
4. Add a file **page.tpl.php** in the templates folder
5. Add some dummy html and php code eg: (doesn't have to be exact same code, this is mere example)
6. Clear the cache
Edit: As it had been long, I mixed the order of steps... but now its corrected.
Comment #8
joelpittetThanks for the steps to reproduce, unfortunately I followed those steps and couldn't see what you are seeing. The only way those test themes show is if you have this setting in your settings.php or settings.local.php enabled:
Can you look to see if that setting is on somewhere?
Comment #9
Anonymous (not verified) commentedyes indeed.... I didn't remember that... I copied the settings.local.php file somewhere I don't remember either which has the line:
Another thing is: In the above steps to reproduce, I already had the theme enabled before mistakenly adding the tpl.php file inside the templates.
I couldn't go back to the previous state, so, I had to rebuild the site from previous backup and code.
Comment #10
cilefen commentedComment #11
joelpittetIf you think this would be helpful maybe we can comment that line by default in the default.settings.local.php file? That setting is useful but not common.
We can reopen if you think that is helpful
Comment #12
cilefen commentedActually all of example.settings.local.php is development-based. I think that file needs a better comment at the top. default.settings.php refers to settings.local.php like this:
But, I agree that example.settings.local.php does not explain itself. Let's keep this closed as an answered support request and open a new issue to fix up example.settings.local.php.
Comment #13
joelpittetThanks @cilefen I've created a follow-up for that here #2805449: Comment out 'extension_discovery_scan_tests' in example.settings.local.php