Trying to update plugin - "Plugin is not valid, it is missing the plugin.json file."

Hello! I’m trying to update the MarketingCampaignsReporting-plugin. I get 2 messages:

“Plugin is not valid, it is missing the plugin.json file.”

WARNING: /plugins/CorePluginsAdmin/PluginInstaller.php(261): Warning - opendir(/usr/www/users/myuser/public_html/matomo-user/tmp/latest/plugins/bd9032234b0af64c040bc660c8919e18/): Failed to open directory: No such file or directory - Matomo 5.2.2 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already) (Module: Marketplace, Action: updatePlugin, In CLI mode: false)

Any ideas what the problem might be?

Additional information:
The file /usr/www/users/myuser/public_html/matomo/plugins/MarketingCampaignsReporting/plugin.json
does exist.

I use
define(‘PIWIK_USER_PATH’, $_SERVER[‘DOCUMENT_ROOT’].‘/matomo-user/’);
in bootstrap.php to set the USER_PATH.

I have the same issue for another (third-party) plugin:

It keeps on coming back after multiple tries… Did you find a resolution?

For a client of ours we have updated their Matomo and it is now at the latest version 5.3.1. However, as soon as we try to update our (third-party) plugin it throws an error stating the ‘plugin.json’ file is missing. While the plugin.json file is actually available just like previous versions of our plugin that were already installed…

We were able to fully update our plugin in the latest Matomo environment of our own Matomo instance at MIST Analytics. So there is no difference but still at the clients’ instance it throws this error.

@thomas_matomo @RonanChardonneau any thoughts?

plugin.json is available:

Here the full JSON file:

{
    "name": "Surveys",
    "description": "Get instant feedback from your website visitors and retrieve qualitative insights. Combine all collected information with other data in Matomo.",
    "version": "1.1.1",
    "license": "Upside Analytics EULA",
    "keywords": ["survey", "feedback", "qualitative data", "net promotor score", "customer effort score"],
    "homepage": "https://github.com/StefanKoning/matomo-surveys-plugin",
    "authors": [
        {
            "name": "Stefan Koning",
            "email": "stefan@mistanalytics.nl",
            "homepage": "https://mistanalytics.nl"
        }
    ],
    "preview": {
        "demo_url": "https://mistanalytics.nl/area-51/",
        "video_url": "https://youtu.be/3Y5IsmqridA"
    },
    "support": {
        "email": "stefan@mistanalytics.nl",
        "issues": "https://github.com/StefanKoning/matomo-surveys-plugin/issues",
        "forum": "https://forum.matomo.org",
        "source": "https://github.com/StefanKoning/matomo-surveys-plugin",
        "wiki": "https://github.com/StefanKoning/matomo-surveys-plugin#readme",
        "docs": "https://matomo.org/docs/"
    },
    "require": {
        "matomo": ">=5.0.0"
    }
}

Maybe this file is not readable by Apache? Check unix right access

1 Like

@heurteph-ei Yes, this was indeed the issue. It was rights-related.

We contacted Matomo support and this helped us further. The feedback survey plugin was updated in the environment of the client and is running smoothly again.

Thank you for the help!

1 Like