Hi,
I am getting an error saying when I try to execute my save_settings method in my mcp file and redirect:
The requested module is not installed
Despite this, the settings array does get serialized and updated in the database, my install function returns true and there is a row for my module in the exp_modules table.
Really struggling to find the issue, so any help would be appreciated.
Thanks
Hi richardjellis,
A couple of questions:
Hi TJ,
I’m using 3.3.0 and all of the module components are present. I am packaging an extension with this module, however that is also being correctly inserted on install and updated in the exp_extensions table when I save settings.
Is there a way to debug this error cause the message itself doesn’t really give me much info?
Thanks
I’ve debugged this further and found that the error is being thrown by the $vars[‘_module_cp_body’] not being set. I imagine this is something to do with whatever I’m returning either from my save_settings or my index method. Does anyone know where this index is set?
Thanks
Hi,
I found it in the end, wasn’t an issue with the index() method. I was using a get method defined in a custom settings library to return my settings from the DB but it was returning empty strings (defaults).
I took the render off the end of the View that save_settings() returned to debug hence leaving the module CP body empty. Got there in the end though.
Appreciate the help Derek and TJ!
Thanks!
Hello, I know this a little old but how did you debug this?
I too am getting “Error: The requested module is not installed:” but everything so far has run successfully. I’ve stripped everything out of my method to just vardump $_POST and the only variable I’m passing is being carried through.
Thanks Chris
Hi Chris, can you share more of what you’re trying to do? Is this a CP controller method, or an ACTion request? And have you tried stripping your method down to a simple “hello world” to make sure your URL paths, routing, and views are behaving as expected? If you can, share the full code for your method that is failing to work as expected. Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.