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

HELP! Can’t install module on live site - EE thinks the file is missing!

Development and Programming

Matthew Pennell's avatar
Matthew Pennell
221 posts
16 years ago
Matthew Pennell's avatar Matthew Pennell

I have a new module named “Vouchers”. It works fine on my development site, and I am able to install and uninstall it via the Modules page.

But when I put the files live and try to install the module on the live site, I get the following error:

“Unable to locate the files needed to install this module”

What I have tried so far:

  • Checked that the mcp.vouchers.php file is on the server and in the right place
  • Checked and changed file permissions on that file
  • Tried manually installing the module by adding an entry to the exp_modules table; I then get the same error when trying to access its CP page
  • Tried accessing the file directly via ssh: “php mcp.vouchers.php”; I get the expected “Invalid file request” error message (so the file is present and the PHP is getting parsed)

I then tracked down where that error comes from (cp/cp.modules.php) and put some debug information in here:

if ( ! is_file($path))
{
  $OUT->fatal_error($LANG->line('module_can_not_be_found'));
}

I echoed the $path variable out - it matches exactly the correct server path (verified by copy+pasting into console).

I need to get this up and running today - do you have any suggestions for what might be wrong?

Moved to Modules: Technical Assistance by Moderator

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Hi, Matthew. This is outside of what we support in this particular forum. I can move this to the Modules forum for you.

       
Matthew Pennell's avatar
Matthew Pennell
221 posts
16 years ago
Matthew Pennell's avatar Matthew Pennell

Thanks Sue, but it’s not a problem with a particular module - it’s a problem with EE or server permissions. I tried creating a new, virtually empty, Test module from scratch and have the same problem.

It’s something to do with file permissions as far as I can tell, but nothing I’ve tried has fixed it.

Edit: Aha - fixed it!

The problem was that my mcp.mymodule.php file had the wrong owner. I needed to chown -R the folder to the correct owner. 😊

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
16 years ago
Sue Crocker's avatar Sue Crocker

Yeah! Glad you figured it out, and ignore my reply via email. 😊

       

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.