My First Drupal 7 Site - CSS Injector
Ok so I have tried this multiple times ( I installed back up and migrate and have been saving after every chapter ) but whenever I get to the CSS Injector module part something goes wrong. Currently I tried it once and it started throwing all kinds of errors along the lines of - Notice: Undefined index: rule_themes in css_injector_init() (line 53 of C:\bam\mfd7\sites\all\modules\css_injector\css_injector.module) - So I restored my back up from the end of chapter 12 (before css injector was ever installed) and then rewatched the videos making sure I hadn't missed anything and followed the examples very carefully, and lo and behold when I try to install CSS Injector it is already installed and I gave it permission to rewrite the file, which it did, but then when I tried to enable it through Drush as I had downloaded it that way, it totally freaked out and now it says that CSS Injector is installed and enabled, but I can't actually get to any of the CSS Injector menus or functions, like if I look in development under configuration CSS Injector just isn't there. So now I am gonna have to go back two chapters and see if that fixes it but I know I am gonna just run into the same problem since this was my third attempt and always the same result (not working) so any ideas before I work myself back to that lesson as to what could be going wrong? Thanks in advance.
Clay
So I tried what I said I would, deleting the whole css_injector module, and it installs fine but then when I try and enable it it throws a ton of warnings because it is already in the database. Why doesn't backup and migrate remove it from the database when I roll back to an earlier one before it was ever installed. Please tell me I don't have to start the series over again that already happened to me once because I didn't save back ups and when I got to this part everything got all messed up and broken. Now I am basically in the same boat even though I made back ups, what gives? Please please help! Thank you.
I do not want to have to redo the first 70% of the simplest video series, I will die of boredom as this will be my third time. Does anyone know what .ini or .info or tpl.php file is refusing to uninstall css injector and leaving it in this weird limbo where it exists but I can't use it? Any help would be so great thanks.
Hi Clay,
I'm wondering if the version of CSS Injector you're using is not the same as the one that were used in the videos and that are backed up with the included Backup and Migrate backups. If you use the modules in the resource pack, you'll know for sure that you're using an identical version.
Let me know if that helps!
Chris
Hey Chris thanks so much for getting back to me, I'm talking about the my first Drupal 7 Site series (MFD7) , it's a little basic for my tastes at parts but I wanted to be sure I had all the basics down pat. The modules and the pre-made back-ups are all intended for the advanced site building course which I will just do if I can't fix whats wrong in the first series. But in the MFD7 course there are no pre-made backups so even if I was to use the module provided in the advanced resource pack, I would still have to start all over again as currently css_injector is installed somewhere in the database even though I have tried all the usual steps, disabling it uninstalling it and reinstalling, I have tried both the new version and the version which I can see Chris installing on the screen in the video and neither of them worked as expected. But what do I do know because I can't do anything, I cant uninstall it, I can't reinstall it, I cant enable it and I sure can't get the desired results at all. So let me know on how to get rid of a stubborn module that wont go away and then I can try again, being sure that I use the modules provided.
I just went and checked and the module in question is not included in the resource pack anyway.
So I thought I had a bright idea and I installed a brand new instance of Drupal, all fresh and clean, and then restored from my back up after chapter twelve and now I can't get any site at all it just gives me an error message and has a totally white screen. I think I've really f***** it up now.. On to the advanced site building i guess I don't know what else to do.
EDIT: nevermind, i got it to work! (and although it's irrelevant now, Injector is indeed impossible to uninstall!)
When I use back up and migrate to go back to chapter 11 css injector is still in the modules listing, so I guess if you make a backup with the back up and migrate module, it doesn't go so far as to remove previously installed modules, I am gonna try deleting the folder from my file structure altogether and then try from the beginning of chapter 12 again.