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:
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
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. 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.