We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

The requested module is not installed

Development and Programming

richardjellis's avatar
richardjellis
5 posts
8 years ago
richardjellis's avatar richardjellis

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

       
TJ Draper's avatar
TJ Draper
222 posts
8 years ago
TJ Draper's avatar TJ Draper

Hi richardjellis,

A couple of questions:

  1. What version of EE are you using?
  2. Are all the components of the module present? You need upd.module_name.php, mcp.module_name.php, mod.module_name.php, and language/english/module_name_lang.php. And if you are writing a module for EE 3, you also need an addon.setup.php.
       
richardjellis's avatar
richardjellis
5 posts
8 years ago
richardjellis's avatar richardjellis

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

       
richardjellis's avatar
richardjellis
5 posts
8 years ago
richardjellis's avatar richardjellis

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

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Do you have an index() method in your mcp class, and is it returning anything? If that doesn’t lead you to the issue, can you tell the full URL in your address bar when you receive this error? Thanks!

       
richardjellis's avatar
richardjellis
5 posts
8 years ago
richardjellis's avatar richardjellis

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!

       
TJ Draper's avatar
TJ Draper
222 posts
8 years ago
TJ Draper's avatar TJ Draper

       
ChrisBarberRiley's avatar
ChrisBarberRiley
2 posts
8 years ago
ChrisBarberRiley's avatar ChrisBarberRiley

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

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

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!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.