Quickee Posted November 11, 2016 Share Posted November 11, 2016 While im logged into the Admin user, there was previously a Module tab for adding core/searchable modules. While going back to add another module I noticed the tab is not longer available. Thoughts / Suggestions? Thank you Link to comment Share on other sites More sharing options...
Gideon So Posted November 11, 2016 Share Posted November 11, 2016 Hi, Can you make a screen shot to give us a little more info?? Gideon Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 Here she is. A beautiful PNG Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Silly question perhaps, but are you logged in as a superuser? Just an FYI - it is possible, depending on permissions, for a user to be able to see the Setup and Access menus, but not the Modules menu. Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 Thank you for your response. But yes I am logged in as the superuser. I actually previously added a module with this account. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Do you have debug mode on? Might be some errors. Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 Yeah, I wasn't able to see anything useful. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Can you view the modules page via its URL, eg. mysite.com/processwire/module/ Just trying to figure out if it's just the menu that isn't working. I'd also try calling Modules > Refresh directly, like: mysite.com/processwire/module/?reset=1 Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 I tried to hit the endpoint you suggested and I could not. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Did you try the refresh I suggested? What about logging out and back in again? What about emptying site/assets/cache/FileCompiler? Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 Yes, I just tried the fresh, logging and clear the cache folder. Then logging again, its still in the same state. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Do I understand correctly that this happened after installing a new module? Can you remove all its files from site/modules/ and also its line from the modules database table. Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 Ah, sorry. No, this was not from installing a module. But I know the module options were available at one point previously because I have installed one. (Maybe a couple weeks ago). I just noticed module tab is missing now, because I was trying to a additional module. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Ok, so if the modules db table is missing that sounds like the problem. If you don't have a backup, I would suggest the best option might be to grab the appropriate section from the install.sql file, eg https://github.com/processwire/processwire/blob/36984e4a057268b7a45b848e1b3b6ee757583459/site-default/install/install.sql#L271-L368 and paste that into the SQL tab in PHPMyAdmin or some other tool. Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 the modules db table is not missing Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Just now, Quickee said: the modules db table is not missing Sorry - I misread your last post completely. I am running out of ideas - any chance this site is live and I could take a look? Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 No, im sorry its local. I could probably push it to git. Since the module I want is core. Would it be possible to just write a query for the modules db table and change the "flag" field to 1? To allow me to use that module. Is that how the system works? Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 2 minutes ago, Quickee said: No, im sorry its local. I could probably push it to git. Since the module I want is core. Would it be possible to just write a query for the modules db table and change the "flag" field to 1? To allow me to use that module. Is that how the system works? The flags aren't quite that simple - they are more than just on/off - 0/1. I'd like to know more about what you actually see when you try to visit the modules page directly when you have debug mode on. Is it a blank page? Also, what about showing us what is under the Admin branch in the tree: Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 Oh wow, I just noticed my modules page is missing. That is weird. Under Admin > Pages Setup Access Profile Login Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Yeah, sorry, that should probably have been my first suggestion When you recreate it, make sure you choose "ProcessModule" as the Process on the Content tab under title. Actually I wonder if the better way might be to run these three commands to make sure page ID is correct - I am not sure if that matters or not. INSERT INTO `field_title` (`pages_id`, `data`) VALUES('21', 'Modules'); INSERT INTO `pages` (`id`, `parent_id`, `templates_id`, `name`, `status`, `modified`, `modified_users_id`, `created`, `created_users_id`, `sort`) VALUES('21', '2', '2', 'module', '21', NOW(), '41', NOW(), '2', '2'); INSERT INTO `field_process` (`pages_id`, `data`) VALUES('21', '50'); 1 Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 It says its a dup so I assume the ID is correct. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Can we assume that everything is now working after recreating the module page? Link to comment Share on other sites More sharing options...
Quickee Posted November 11, 2016 Author Share Posted November 11, 2016 actually, I might have created it wrong because the page wasn't working as expected. "When you recreate it, make sure you choose "ProcessModule" as the Process on the Content tab under title." I feel like maybe this step wasn't executed properly. I didnt not see "Process" under Content tab.. Maybe I misunderstood. Link to comment Share on other sites More sharing options...
adrian Posted November 11, 2016 Share Posted November 11, 2016 Perhaps the best thing to do at this point is find the three entries in the field_title, field_process, and pages tables and replace or add them. Just so you know, this is where the Process can be selected: It can't be chosen when creating the page, can be assigned once it is saved the first time. Link to comment Share on other sites More sharing options...
szabesz Posted November 11, 2016 Share Posted November 11, 2016 But why is it that the menu background is blue? I'm suspicious 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now