• [deleted]

I have downloaded the storage-fs.phar plugin and uploaded it to the includes/plugins folder

After adding the plugin it is disabled, and corrupt

It won't enable, and if I click to edit it shows


Manage Plugin — (defunct — missing)
Configuration
This plugin has no configurable settings
Every plugin should be so easy to use.

Any ideas?

It seems that your system is not reading the .phar properly. My guess is that your php or webserver has .phar disabled.

  • [deleted]

Thanks for the reply. When I look at the Dashboard information screen it says PHAR is installed

So I thought that meant all was well.

Put when I run phpinfo.php it says PHAR is disabled

I ams truggling to find where to enable it though - there does not seem to be an obvious "switch" in Easyapache4 or mphpmanager in our WHM / Centos system

The only thing I can find is this in the ini file

[Phar]
; http://php.net/phar.readonly
;phar.readonly = On

; http://php.net/phar.require-hash
;phar.require_hash = On

;phar.cache_list =

Will removing those ";" do the trick or do I need to do something else?

afterthought: It could also be a problem with the file ownership/permissions on the phar. Make sure that the user that your webserver runs as owns or has permissions to access the file.

.phar by default is included with PHP and enabled by default starting in PHP v5.3.
source: https://www.php.net/manual/en/phar.installation.php
So if it is disabled then someone would have had to disable it (either your host, sysadmin, or you).

I'd take a look at this thread:
https://forum.osticket.com/d/93529-plugins-defunct-missing-after-v1-10-4-to-v1-11-upgrade
This person had the same symptoms and we jumped through a lot of hoops to figure out why.

If you are running something like mod_security I suppose it could be blocking the .phar.
It could be disabled in your php.ini using the disable_functions directive.
You could be starting php with the --disable-phar directive.

    • [deleted]

    ntozier It could be disabled in your php.ini using the disable_functions directive.
    You could be starting php with the --disable-phar directive.

    I will read up on the links you provided. But it may well be that even with PHP 7.2 phar is automatically installed. But the phpinfo does have the line

    --disable-phar' - http://graphskill.co.uk/phpinfo.php

    My problem is that after hours of trawling google and can;t find a simple explaation of how to change thatto say that phar is enabled

    Are you self hosting or do you have a hosting account with someone?
    If you have a hosting account, then you need to talk to the host.
    OR you can unphar the plugin (manually at the command line, or by using something like unphar.com).
    [as a side note: I run an unphar Authentication::LDAP and Active Directory plugin on my site just fine.]

    If you self host then you might be able to do something like this:
    https://stackoverflow.com/questions/14592897/how-to-override-configure-command-parameter-in-php

      Follow up... don't forget to remove the phpinfo.php file that you created when you are done with it. It reveals a lot of information about your server. ?

      • [deleted]

      ntozier OR you can unphar the plugin (manually at the command line, or by using something like unphar.com).

      That did the trick. Thanks for your help

      Very welcome. It's a work around more than a fix. But I've been running the plugin unpharred for a few years now.

      Write a Reply...