Christophe Posted Tuesday at 06:00 PM Share Posted Tuesday at 06:00 PM Hello, I just installed a fresh new ProcessWire 3.0.243 instance on a (not local) web server. The PHP version is 8.2. "Add Module From Directory" or any other method is not accessible even with debug mode activated (acknowledged by the backend). For "Add Module From Directory" : with $config->debug = true; it only displays : This install option is configured to be available only in debug mode. To enable, edit file /site/config.php and specify: $config->debug = true; temporarily …or… $config->moduleInstall('directory', true); to enable always with $config->debug = false; (or $config->debug = true;) and $config->moduleInstall('directory', true); it displays: This install option is currently disabled. To enable, edit file /site/config.php and specify: $config->moduleInstall('directory', true); to enable always …or… $config->moduleInstall('directory', 'debug'); to enable in debug mode only I can of course do it manually via SFTP, but I would really like to have that option like I had before on other installations and to know why I don't have access to it. Has anybody had this issue even with $config->debug = true;? It's not that something (like a hosting provider's firewall for example) is disabling this possibility of downloading from the backend (it already happened and I just had to deactivate the firewall). It's that it doesn't even show the input field to enter the module class, just these messages. Link to comment Share on other sites More sharing options...
wbmnfktr Posted 6 hours ago Share Posted 6 hours ago Using this in /site/config.php $config->debug = true; // or false, doesn't matter $config->moduleInstall('directory', true); // this is important $config->moduleInstall('download', false); $config->moduleInstall('upload', false); allows me to use the directory to install modules. Link to comment Share on other sites More sharing options...
Christophe Posted 3 hours ago Author Share Posted 3 hours ago Thanks, but it doesn't work for me. I see that in wire/config.php the default is 'directory' => 'debug', 'upload' => false, and download' => false. So $config->moduleInstall('download', false); $config->moduleInstall('upload', false); shouldn't be necessary if I want to download from the Directory. And I suppose all the "Add" methods could be activated at the same time (?). For "Add Module from Directory", the default(s) seems to confirm that you just need $config->debug = true; and the directory will be available only while debug is on true, or $config->moduleInstall('directory', true) and it will always be enabled. On the Modules page (in New) the notes change depending on what is enabled in site/config.php. By default for "Add Module From Directory": This install option is configured to be available only in debug mode. To enable, edit file /site/config.php and specify: $config->debug = true; temporarily …or… $config->moduleInstall('directory', true); to enable always So, just adding $config->debug = true; should work as what corresponds to $config->moduleInstall('download', debug); is the default. Or $config->moduleInstall('directory', true); to make it always work. So both can of course be present. But nothing works for me, I never see the Module Class Name area. I can't figure out why for the moment. Permissions are usually 755 and 644. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now