Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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

 

Posted

Did you try the refresh I suggested?

What about logging out and back in again?

What about emptying site/assets/cache/FileCompiler?

Posted

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.

Posted

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. 

Posted

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.

Posted
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? 

Posted

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?

Posted
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

Posted

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
Posted

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.

 

Posted

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.

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
  • Recently Browsing   0 members

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