Request to marketplace fails


(Sobhika) #1

@Nitesh I am having the same issue in Piwik 3.2.0 version. Even after modifying the files as you mentioned the error persists.

The error log displays the below message: [Tue Feb 20 12:46:52 2018] [error] [client 10.54.21.40] Error in Piwik: There was an error reading the response from the Marketplace: Please try again later., referer: http://piwik-test.swissre.com/piwik/index.php?module=CoreAdminHome&action=home&idSite=1&period=day&date=today


Error getting plugins from marketplace
Error getting plugins from marketplace
(Lukas Winkler) #2

Hi,

You can find the line here:

It means that Matomo tries to access something on plugins.matomo.org and Matomo just got something that can’t be decodes as JSON.

Can you try adding var_dump($response) to see what response you get?


(Sobhika) #3

@Lukas

Thank you for your response.

I have added var_dump($response) in the file and this is what I receive the below response when I access Market place now.

''301 moved Permanently" Please find the error message attached.

When I click on the hyperlink ‘here’ it redirects to - https://plugins.matomo.org/api/2.0/plugins/checkUpdates?plugins=%7B%22plugins%22%3A%5B%7B%22name%22%3A%22IntranetGeoIP%22%2C%22version%22%3A%221.0.2%22%7D%2C%7B%22name%22%3A%22LoginLdap%22%2C%22version%22%3A%224.0.3%22%7D%2C%7B%22name%22%3A%22MaxConcurrent%22%2C%22version%22%3A%220.2.2%22%7D%2C%7B%22name%22%3A%22SearchKeywordsNoResult%22%2C%22version%22%3A%220.1.0%22%7D%2C%7B%22name%22%3A%22SiteMigration%22%2C%22version%22%3A%221.0.8%22%7D%2C%7B%22name%22%3A%22ExampleRssWidget%22%2C%22version%22%3A%221.0%22%7D%2C%7B%22name%22%3A%22IntranetGeoIP_BeforeUpdate02142018%22%2C%22version%22%3A%221.0.2%22%7D%2C%7B%22name%22%3A%22LoginLdap_Backup%22%2C%22version%22%3A%224.0.2%22%7D%2C%7B%22name%22%3A%22LogViewer%22%2C%22version%22%3A%223.0.2%22%7D%2C%7B%22name%22%3A%22PiwikPro%22%2C%22version%22%3A%223.2.0%22%7D%2C%7B%22name%22%3A%22Swissretheme%22%2C%22version%22%3A%220.1.0%22%7D%5D%7D&release_channel=latest_stable&prefer_stable=1&piwik=3.2.0&php=7.0.23&mysql=5.5.55&num_users=78&num_websites=49
and the below message appears: {“error”:“Invalid payload received.”}


(Sobhika) #4

I was able to fix this issue by changing the domain value to $domain = ‘http://plugins.matomo.org/’; in the config file under the below path (Posting an image as I am not allowed two post two links being a new user :smiley:):

image

I believe the redirection from piwik to matomo was not defined which was creating the issue. Is there any other files we will have to make this kind of changes in future?:thinking:

Regards


(Lukas Winkler) #6

Hi,

That’s really odd. Such a modification shouldn’t be necessary as the forward works correctly for everyone else.

Can you describe if you are Windows and which PHP (and PHP curl) versions you are using?