Jump to content

Problem with module install after update ($config->moduleInstall, ProcessWire 3.0.165).


Simi
 Share

Recommended Posts

Since I updated to the version ProcessWire 3.0.165 installing modules from URL, directory and Upload won't work anymore.
I have already added $config->moduleInstall('download', true); to my /site/config.php file, but it still doesnt work. Has anyone a solution for this?Capture.thumb.PNG.7244be4f9744fe855e030c1c5775f5cd.PNG

Edited by kongondo
merged similar threads.
  • Like 1
Link to comment
Share on other sites

Running PW 3.0.165 and have added to config.php:

$config->moduleInstall('directory', true);
$config->moduleInstall('download', true);
$config->moduleInstall('upload', true);

but with no change in the admin... stil unable to update modules, or grab them via urls ? whats the deal here?

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

  • 4 months later...
On 4/9/2021 at 12:11 PM, johnnydoe said:

Hi! Had this problem today too. In my case this was a problem with file permissions. After setting permissions to 777 for the folder site/modules/ it worked.

Hi johnnydoe!

I adjusted my file permissions, but it still shows the same message!

Link to comment
Share on other sites

  • 1 month later...

@Simi

On 4/10/2021 at 4:25 PM, Simi said:

Hi johnnydoe!

I adjusted my file permissions, but it still shows the same message!

I have the same situation when using PHP 7.4. And no configurations and folder permissions fix this.
When using PHP 7.3 (and earlier) modules are loaded normally.

  • Thanks 1
Link to comment
Share on other sites

@Simi

On 6/7/2021 at 2:08 PM, Andy said:

@Simi

I have the same situation when using PHP 7.4. And no configurations and folder permissions fix this.
When using PHP 7.3 (and earlier) modules are loaded normally.

Problem solved.

PHP 7.4 ZIP extension option --enable-zip was removed. You need to manually install Zip and ZipLib in PHP. 

The rest of the access rights must also be set. But, I still do not understand why errors are not displayed in the log file?

  • Make sure /site/assets/cache/ directory is writeable for PHP.
  • Make sure your site modules directory (/site/modules/) is writeable for PHP.
  • ZipArchive class is required and your PHP does not appear to have it.
  • Like 2
Link to comment
Share on other sites

  • 8 months later...
  • 4 months later...
On 6/9/2021 at 11:18 AM, Andy said:

@Simi

Problem solved.

PHP 7.4 ZIP extension option --enable-zip was removed. You need to manually install Zip and ZipLib in PHP.

Hi Simi,

Can you explain how to do this?

Thank you in advance!

  • Like 1
Link to comment
Share on other sites

On 6/17/2022 at 3:45 PM, Joachim said:

Hi Simi,

Can you explain how to do this?

Thank you in advance!

How to enable archive support in PHP.

Your web hosting provider must have these options enabled when running PHP. If you control this yourself, add these keys on the PHP command line:

--with-bz2=/usr --with-zip --with-zlib 

Detailed instructions are here:

https://bobcares.com/blog/enable-php-zip-extension-cpanel/

  • Thanks 1
Link to comment
Share on other sites

  • 1 month later...
On 6/20/2022 at 1:16 PM, Andy said:

How to enable archive support in PHP.

Your web hosting provider must have these options enabled when running PHP. If you control this yourself, add these keys on the PHP command line:

--with-bz2=/usr --with-zip --with-zlib 

Detailed instructions are here:

https://bobcares.com/blog/enable-php-zip-extension-cpanel/

Thank you, Andy. The steps were slightly different through my provider, but it seems ZIP was enabled anyway.
I tried again to enable debugging in config.php, and for some reason it worked now. Could it be a caching problem somewhere, maybe, as I had just updated ProcessWire before posting my initial message here?

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...