I've installed a fresh Drupal 7.28 over a clean Ubuntu 14.04. The environment is virtualbox 4.3 with 4Gb ram an 8Gb disk (hosted by win7). PHP version is 5.5.9-1ubuntu4 and db is mysql. The installed site, empty, works normally.
issue
Trying to install any module via URL leads to WSOD or downloading the module package manually the install button does nothing. After the white page i can go back and continue to navigate the site with no errors or warnings.
Fatal Error
Call to undefined function gzopen()
File: .../drupal-7.31/modules/system/system.tar.inc:716
706: }
707:
708: // ----- File to open if the local copy
709: $v_filename = $this->_temp_tarname;
710:
711: } else
712: // ----- File to open if the normal Tar file
713: $v_filename = $this->_tarname;
714:
715: if ($this->_compress_type == 'gz')
716: $this->_file = @gzopen($v_filename, "rb");
717: else if ($this->_compress_type == 'bz2')
718: $this->_file = @bzopen($v_filename, "r");
719: else if ($this->_compress_type == 'none')
720: $this->_file = @fopen($v_filename, "rb");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
only tar.gz does not work, zip works fine for me
jabecz commented
I am facing the same problem. I use drupal on other Ubuntu 14.04 servers, but all of them are 64-bit. This server which is going to WSOD on tar.gz module installation is the only one running Ubuntu 14.04 32-bit. So I think the problem is only on 32-bit Ubuntu 14.04 server edition.
I am not able to troubleshoot this problem so I reinstall the server to Ubuntu 14.04 64-bit and see if it helps.
Have You resolved the issue?
Thanks
^^^^^^^^^^^^^^^^^^THIS WORKED FOR ME,THANKS^^^^^^^^^^^^^^^^^^
Zlib missing gzopen is PHP5 bug on 32bit systems
malc_b commented
I have the same issue. This seems to be known bug, that was fixed and has now come back. It only affects 32bit systems. In php5, with big files option, in zlib there is no gzopen only gzopen64. The latest (1.3.12) pear package archive_tar includes a test that checks if gzopen doesn't exist and gzopen64 does, and then it defines its open gzopen to call gzopen64. That fix is close but flawed too, and it doesn't help with Drupal (7, at least) which doesn't call the pear package but has its own (older) copy in core module system.tar.inc.
The fix is to edit system.tar.inc (/var/www/drupal/modules/system/system.tar.inc for my box) to add, after
define ('ARCHIVE_TAR_ATT_SEPARATOR', 90001);
define ('ARCHIVE_TAR_END_BLOCK', pack("a512", ''));
these lines to system.tar.inc
if (!function_exists('gzopen') && function_exists('gzopen64')) {
function gzopen($filename, $mode, $use_include_path = 0)
{
return(gzopen64($filename, $mode, $use_include_path));
}
}
if (!function_exists('gztell') && function_exists('gztell64')) {
function gztell($zp)
{
return(gztell64($zp));
}
}
if (!function_exists('gzseek') && function_exists('gzseek64')) {
function gzseek($zp, $offset, $whence = SEEK_SET)
{
return(gzseek64($zp, $offset, $whence));
}
}
Or I guess to some other module if you wish.
No comments:
Post a Comment