Hello everyone,
I'm working on new theme development on my new development machine. I've got code for Moodle 3.8.1+ running on three machines. My development laptop (works fine), a production server (works fine) and now on my new development machine it's not working right.
I thought maybe this was a browser cache problem so I cleared my cache. Nothing changed. I tried hitting my development machine from another machine and the same problem existed. So I'm sure that it's not a client-side issue resulting from bad caching.
I thought perhaps I corrupted something in the process of copying files. So I have literally re-installed everything several times (from source folder, from two different working sites, and fresh download) and it's still not working. I've gone to great effort to compare working directories from each machine to ensure I've got the latest code. I've even re-downloaded a fresh copy of Moodle 3.8.1+ the latest build and installed that from the ground up again. Still the same problem.
The issue seems to take place in the toggling of display:none to display:block for sections of HTML. I believe that this toggling is the nature of Bootstrap 4.0 as I use it in other sites I work on that aren't Moodle. The HTML is there, but the styles are not changing when you click on any of the menu dropdown links, notification drawer, user menu, and if you're on a page that has tabs, none of the tabs aside from the first one, do not work.
Using Chrome, if you debug by viewing page source and alter the CSS to eliminate the display:none on a few classes you can see all the content of the entire tabbed page area, and then clicking on the tabs will take you to each of the settings. So it's a toggle issue. I believe the dropdown menu is also operating with a toggle capability.
I've searched high and low through the forums here and found several other instances of others having the same exact problems. Some people saying the problem is with Boost theme. Well, I switched themes around and every theme I picked has the same problem. It's not a bug with my own theme code either because the identical code for the theme we are working with is my own and I've copied it literally from sites where it is known to work.
At this point I think I should mention also that I'm using PHP 7.4.3, MySql 8, Moodle 3.8.1+ (downloaded today), and we host our Moodles on Windows using IIS. That should pretty well describe the operating environments involved in case that's an issue. I am wondering if Moodle 3.8.1+ is known to work with PHP 7.4.3. I was not able to find anything saying that PHP needs to be lower than 7.4.3 but maybe since themes are compiled using PHP code, perhaps something in there is interfering with the javascript or CSS while it resets the theme cache. I suppose if I had endless amount of time I could solve this but I'm coming here hoping that this is a simple issue I can resolve by asking for help.
Here is a screen shot to show you where items are affected: