CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Message: not be able to install extensions ... PHP ... not support ZIP archives
Pages: [1]

Author Topic: Message: not be able to install extensions ... PHP ... not support ZIP archives  (Read 1493 times)

denishow

  • I’m new here
  • *
  • Posts: 19
  • Karma: 2
  • CiviCRM version: 4.2
  • CMS version: WordPress 3.4.2
  • MySQL version: 5.4
  • PHP version: 5.3.15
Message: not be able to install extensions ... PHP ... not support ZIP archives
October 12, 2012, 02:59:37 pm
Hi,

I'm running CiviCRM v4.2 on WordPress 3.4 on a shared host.

I've written an extension (which allows you to import bank statements, teach it the mapping between transaction descriptions and contact ids and the create appropriate contributions--when it's working robustly, I'll share it).

However, whenever I look at some (but not all) pages, I get a warning saying:

Quote
You will not be able to install extensions at this time because your installation of PHP does not support ZIP archives. Please ask your system administrator to install the standard PHP-ZIP extension.

Unfortunately my ISP won't install the PHP-ZIP extension on a shared host, and anyway I don't really need it. I can manage without being able to install extensions.

The problem is that I get the message on publicly accessible event pages, in fact I get it repeated 5 times at the top of the event page I was hoping to publish today.

It's an important message, but I don't think it should be visible on public pages--in fact it only needs to be visible on the Manage Extensions page.

How can I get rid of it without hacking CRM/Core/Extensions.php?

Thanks in advance
Denis

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Message: not be able to install extensions ... PHP ... not support ZIP archives
October 12, 2012, 04:50:47 pm
We could make the message more conditional. In particular, how about adding these two tests:

1. Only display if the user has permission to "administer CiviCRM"
2. Only display if automatic downloading is enabled (which is the default) -- if the administrator has opted out of automatic downloading, then there is no need for ZIP support.

(*) There's a hidden option to disable automatic downloading: http://issues.civicrm.org/jira/browse/CRM-10575?focusedCommentId=43792&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-43792

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Message: not be able to install extensions ... PHP ... not support ZIP archives
October 12, 2012, 04:52:11 pm
I've made a ticket for this -- http://issues.civicrm.org/jira/browse/CRM-11048 -- and will address this weekend.

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: Message: not be able to install extensions ... PHP ... not support ZIP archives
October 13, 2012, 10:38:39 am
A patch for CRM_Core_Extensions has been written and should be included in 4.2.3.

You mentioned hacking CRM/Core/Extension.php -- if you're anxious and feel comfortable working with code, then try the pre-release patch from SVN (r42899) or from the attached file.

denishow

  • I’m new here
  • *
  • Posts: 19
  • Karma: 2
  • CiviCRM version: 4.2
  • CMS version: WordPress 3.4.2
  • MySQL version: 5.4
  • PHP version: 5.3.15
Re: Message: not be able to install extensions ... PHP ... not support ZIP archives
October 14, 2012, 09:13:52 am
Hi totten,

Thanks for the patch. I've just tested it and then applied it to the live site and it works well.

Thanks for doing for me. I really appreciate it.

Best wishes
Denis

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Message: not be able to install extensions ... PHP ... not support ZIP archives

This forum was archived on 2017-11-26.