Jump to content

Module Option Missing


Quickee
 Share

Recommended Posts

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

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

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

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

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:

 

Screen Shot 2016-11-10 at 5.26.21 PM.png

Link to comment
Share on other sites

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');

 

  • Like 1
Link to comment
Share on other sites

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

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:

Screen Shot 2016-11-10 at 6.49.35 PM.png

 

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...