There was an error reading the response from the Marketplace: Please try again later

Hello!

Here is our System Summary:
Matomo version: 3.13.0
AWS/Cloud/Windows 2012R2
WAMP64 3.1.0
Apache 2.4.27
PHP version: 7.3.17 (was 7.1.9; just upgraded, thus this support/bug request for help…)
MySQL version: 5.7.22

  1. We recently attempted to upgrade Matomo from 3.13.0 to 3.14.1; however, after what appeared to be a successful upgrade, we received a message/error at the very end of the upgrade, saying:

“You must upgrade your PHP version in order to receive the latest Matomo update.”

Since we were out-of-time in our maintenance window, we restored our environment back to the original 3.13.0 version…

  1. With Matomo still at 3.13.0, we upgraded our PHP from 7.1.9 to 7.3.7. The upgrade appeared to have been successful, until we clicked on the Matomo Administration button, which displayed the top part of the page successfully, then displayed this error twice, then finished the rest of the page (Support Matomo, etc.) successfully:

Error: There was an error reading the response from the Marketplace: Please try again later.

  1. So far (since last night), everything else in Matomo appears to be working fine… If we go to the Plugins page, and click on “installing plugins from the Marketplace”, we get:

An error occurred

There was an error reading the response from the Marketplace: Please try again later.

  1. We/I have found a few similar errors reported in this forum, but they speak to the “$domain” value in the MarketPlace/config.php file, which ours appears to be correct:

     $domain = 'http://plugins.matomo.org';
    
  2. We did not (knowingly) change the Matomo app, so we’re sure there’s something wrong/missing with the PHP upgrade; however, can’t find any errors/problems, other than Matomo cannot display Marketplace plugin “stuff”!?!?

  3. When we get Matomo working successfully with PHP 7.3.17, we’ll upgrade Matomo to 3.14.1, and won’t be expecting an issue with the PHP version this time…

Thank You for any/all help with this!

Hi,

That message is indeed a bit ambigous. What it means is: The PHP version you are using is okay for the Matomo version you are using. But the next major Matomo update (Matomo 4 which will release very soon) will not support this PHP version (it needs 7.2).

This error indicates that Matomo doesn’t get a proper response from the Matomo Marketplace API. Make sure that your server can access https://plugins.matomo.org/api/2.0/plugins and maybe enable the Matomo log to find a more precise error message.

Thank You Lukas!

  • The confusing thing is our AWS/Cloud/Windows/Matomo 3.13.0 environment was working fine yesterday, showing the Marketplace plugins, then we upgraded PHP from 7.1.9 to 7.3.7, and now the Marketplace plugins are broke… We did not (knowingly) change the Matomo app or AWS/Cloud/Windows server/config/proxy/etc., other than PHP???

  • We already had logging turned on, and here’s a fresh set of errors generated when I clicked on the “installing plugins from the Marketplace” link in the Manage Plugins page:

ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] Uncaught exception: D:\wamp64\www\piwik\plugins\Marketplace\Api\Client.php(289): There was an error reading the response from the Marketplace: Please try again later.
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] There was an error reading the response from the Marketplace: Please try again later.
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #0 D:\wamp64\www\piwik\plugins\Marketplace\Api\Client.php(224): Piwik\Plugins\Marketplace\Api\Client->fetch(‘plugins’, Array)
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #1 D:\wamp64\www\piwik\plugins\Marketplace\Plugins.php(109): Piwik\Plugins\Marketplace\Api\Client->searchForPlugins(’’, ‘’, ‘lastupdated’, ‘’)
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #2 D:\wamp64\www\piwik\plugins\Marketplace\Plugins.php(136): Piwik\Plugins\Marketplace\Plugins->searchPlugins(’’, ‘lastupdated’, false, ‘’)
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #3 D:\wamp64\www\piwik\plugins\Marketplace\Controller.php(221): Piwik\Plugins\Marketplace\Plugins->getAllPlugins()
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #4 [internal function]: Piwik\Plugins\Marketplace\Controller->overview()
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #5 D:\wamp64\www\piwik\core\FrontController.php(589): call_user_func_array(Array, Array)
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #6 D:\wamp64\www\piwik\core\FrontController.php(165): Piwik\FrontController->doDispatch(‘Marketplace’, ‘overview’, Array)
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #7 D:\wamp64\www\piwik\core\dispatch.php(34): Piwik\FrontController->dispatch()
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #8 D:\wamp64\www\piwik\index.php(27): require_once(‘D:\wamp64\www\p…’)
ERROR Piwik\ExceptionHandler[2020-11-12 20:31:08 UTC] [7b506] #9 {main}

  • I’m also searching for any info that may point me into the direction of the PHP upgrade messing up our apache settings!?!?

Hi,

As a next step, you might want to add a

var_dump($url);
var_dump($response);
var_dump($result);

here as the next line is the one that fails.

Keep in mind that every php version uses its own php.ini. So if you made a modification to the old one it might be missing now.

How are your apache settings messed up?

Thanks again Lukas!

I put the var_dump lines in the Service.php file, and it started displaying/dumping the info in the top of Matomo app interface, where our 700+ customers can see it!?!? (I was expected the new info in the matomo.log file!?!?)

I did a line by line comparison of the new/php7.3.17/php.ini, to the old php7.1.9/php.ini file, and made sure all of the old/php7.1.9 customizations were carried over.

That I know of, our apache settings are not messed up… What I meant was… I wonder if something I did wrong/incomplete with the PHP upgrade, might have messed up our apache settings, thus affecting Matomo’s ability to get to the https://plugins.matomo.org/api/2.0/plugins page!?!?

Hi,

I’m sorry, I wasn’t clear. I thought you were doing this in a testing environment.
I guess then the best way would be trying to reproduce this issue in a separate environment where you can test, what exactly goes wrong.

We have a TEST environment, but it’s Linux instead of Windows… When I upgraded Matomo in the TEST/Linux environment, we did not get the ambigous PHP message, because the PHP in this env was already 7.3.17…

We plan on moving our AWS/Cloud/Windows/Matomo/PROD environment to an AWS/Cloud/Linux environment, after we get it upgraded to 3.14.1…

If our only problem appears to be the Marketplace plugin capability, do you think it would be ok to go ahead and upgrade our Matomo/PROD environment to 3.14.1?

Thanks again Lukas!

It should be fine, but I am also not sure if it fixes the issue (I can’t remember a related bug that was recently fixed).

Lukas,

We upgraded from 3.13.0 to 3.14.1 and the “Marketplace Plugin” errors are still displaying…

When I simply click on the “Administration” button, the following errors are logged to our “Matomo.log” file: (might this “Help you help me?” :smiley:)

ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] Uncaught exception: D:\wamp64\www\piwik\plugins\Marketplace\Api\Client.php(291): There was an error reading the response from the Marketplace: Please try again later.
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] There was an error reading the response from the Marketplace: Please try again later.
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #0 D:\wamp64\www\piwik\plugins\Marketplace\Api\Client.php(226): Piwik\Plugins\Marketplace\Api\Client->fetch(‘plugins’, Array)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #1 D:\wamp64\www\piwik\plugins\Marketplace\Widgets\GetNewPlugins.php(51): Piwik\Plugins\Marketplace\Api\Client->searchForPlugins(’’, ‘’, ‘lastupdated’, ‘’)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #2 D:\wamp64\www\piwik\plugins\CoreHome\Controller.php(91): Piwik\Plugins\Marketplace\Widgets\GetNewPlugins->render()
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #3 [internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget(Object(Piwik\Plugins\Marketplace\Widgets\GetNewPlugins))
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #4 D:\wamp64\www\piwik\core\FrontController.php(590): call_user_func_array(Array, Array)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #5 D:\wamp64\www\piwik\core\FrontController.php(165): Piwik\FrontController->doDispatch(‘Marketplace’, ‘getNewPlugins’, Array)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #6 D:\wamp64\www\piwik\core\dispatch.php(34): Piwik\FrontController->dispatch()
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #7 D:\wamp64\www\piwik\index.php(27): require_once(‘D:\wamp64\www\p…’)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [3e309] #8 {main}
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] Uncaught exception: D:\wamp64\www\piwik\plugins\Marketplace\Api\Client.php(291): There was an error reading the response from the Marketplace: Please try again later.
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] There was an error reading the response from the Marketplace: Please try again later.
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #0 D:\wamp64\www\piwik\plugins\Marketplace\Api\Client.php(226): Piwik\Plugins\Marketplace\Api\Client->fetch(‘plugins’, Array)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #1 D:\wamp64\www\piwik\plugins\Marketplace\Widgets\GetPremiumFeatures.php(46): Piwik\Plugins\Marketplace\Api\Client->searchForPlugins(’’, ‘’, ‘lastupdated’, ‘paid’)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #2 D:\wamp64\www\piwik\plugins\CoreHome\Controller.php(91): Piwik\Plugins\Marketplace\Widgets\GetPremiumFeatures->render()
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #3 [internal function]: Piwik\Plugins\CoreHome\Controller->renderWidget(Object(Piwik\Plugins\Marketplace\Widgets\GetPremiumFeatures))
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #4 D:\wamp64\www\piwik\core\FrontController.php(590): call_user_func_array(Array, Array)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #5 D:\wamp64\www\piwik\core\FrontController.php(165): Piwik\FrontController->doDispatch(‘Marketplace’, ‘getPremiumFeatu…’, Array)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #6 D:\wamp64\www\piwik\core\dispatch.php(34): Piwik\FrontController->dispatch()
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #7 D:\wamp64\www\piwik\index.php(27): require_once(‘D:\wamp64\www\p…’)
ERROR Piwik\ExceptionHandler[2020-11-16 21:29:54 UTC] [294b1] #8 {main}

Lukas/Anyone,

I found this troubleshooting recommendation at https://matomo.org/faq/troubleshooting/faq_148/

  1. Delete all files in piwik/tmp/*** . After deleting the files and directories, refresh the page. If it still does not work…

Is this something that can be done at anytime, and it will not adversely impact the application/users/customers/data?!?!?

Hi,

All files in tmp/ will be regenerated when they are needed. (which of course takes a bit of CPU power e.g. for the assets, but not more than when you are installing a plugin).

But I doubt this will change anything as the error is caused by the response being empty here:

Maybe check if your webserver can reach the marketplace properly or if there is maybe some proxy interfering.

Thanks again (and again) Lukas!

I checked the proxy on the actual Matomo app server and made sure I could get to/display the plugins.matomo.org info!

I’m assuming the Marketplace/config.php file is returning nothing because something’s messed up with the PHP environment… I’m tweezering through/comparing all the php7.1.9 and php7.3.17 files to see what I missed and/or messed up…

Thank You!

Good Morning Lukas!

In one of the hits I found when searching for this problem, I saw someone was told to download the same version Matomo zip file they were using, and delete/replace all of their installed plugin folders/files from the zip file… Since the errors we’re getting are directly/solely related to “Marketplace plugins”, might there be any merit to this solution?

I didn’t get any more feedback/help on this, but continued researching…

After weeks of trying many suggestions, the following solution not only fixed/corrected this error displayed in the Administration section of the Matomo webapp:

Error: There was an error reading the response from the Marketplace: Please try again later.

but also eliminated these type errors in the php_error.log file:

PHP Warning: PHP Startup: Unable to load dynamic library ‘curl’ (tried: D:/wamp64/bin/php/php7.3.17/ext/curl (The specified module could not be found.), D:/wamp64/bin/php/php7.3.17/ext/php_curl.dll (The specified procedure could not be found.)) in Unknown on line 0.

At this URL: https://stackoverflow.com/questions/50452198/apache-wont-load-php-curl-dll

I found this suggestion:

“In the end I had to simply copy libcrypto-1_1-x64.dll, libssh2.dll, libssl-1_1-x64.dll and nghttp2.dll from the PHP folder into the apache bin folder.”

1 Like