Hi all,

I've installed the module, and copied pclzip.lib.php into the module directory, but still get this message.

I tried dropping it into a subfolder within the module folder and into the libraries folder with no luck. Am I missing something?

Thank you for the awesome module!

Comments

dsnydernc’s picture

I'd love to have some help here as well, same issue as above. Placing the library file in a subfolder or in the libraries folder results in library not found.

dharam1987’s picture

Title: Error message Could not find the PclZip library » Fix to this
Component: Code » Documentation
StatusFileSize
new1.48 KB
new1.48 KB

Hi,

Here if some one needs any help, you can use this as patch for now. I think the code that is written for now is wrong.

Do the following steps.

1- Download pclzip.lib.php

2- Create a folder named 'pclzip' inside your libraries folder (preferable - sites/all/libraries)

3- Copy pclzip.lib.php to sites/all/libraries/pclzip (folder) - the path might be diff you have created this folder else where

4- IMP and this is the patch.

Go to pclzip.module file will be there in (pclzip module)

Go to line# 79 - approx and replace the


function pclzip_library_exists() {
  $pclzip_path = libraries_get_path('pclzip.lib.php');
  if (!is_file($pclzip_path)) {
    drupal_set_message(t('Could not find the PclZip library file : @pclzip_path', array('@pclzip_path' => $pclzip_path)), 'error');
    return FALSE;
  }
  return TRUE;
}

WITH

function pclzip_library_exists() {
  $pclzip_path = libraries_get_path('pclzip');
  $pclzip_path = $pclzip_path.'/pclzip.lib.php';
  if (!is_file($pclzip_path)) {
    drupal_set_message(t('Could not find the PclZip library file : @pclzip_path', array('@pclzip_path' => $pclzip_path)), 'error');
    return FALSE;
  }
  return TRUE;
}

Let me know if it works fine for you.... Thanks !

Dharmendra Patri

klucid’s picture

Title: Fix to this » Error message Could not find the PclZip library

Thanks for the patch. It worked for me.

FYI, I've changed the issue title back to the original so that others with the same issue can find the fix.

ns’s picture

So helpful! Thank you.

ssm2017 binder’s picture

Issue summary: View changes
Status: Active » Fixed

thank you for reporting, i have just commited the changes

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

suchdavid’s picture

StatusFileSize
new466 bytes

There is a similar problem in pclzip_build_archive() function, I have created a patch which searches for pclzip.lib.php in a library folder pclzip