Thomas
Forum Replies Created
-
Actually I’m not able to reproduce it just yet. I’ll have another look.
Hi @saowp
thanks for reporting this. I can reproduce this when async archiving is not supported. I will look into this.
Hi @1001webs
Matomo shouldn’t do anything that impacts this flash as all it does in the frontend is adding a small snippet of JavaScript which will be loaded asynchronous. Does it maybe help to move the tracking code to the footer in
WP Admin Dashboard -> Matomo Analytics -> Settings. You will find a settingJavaScript code position:there and it might be already set toFooter.Any chance you could send us the URL to your website to wordpress@matomo.org and let us know which browser you are seeing this behaviour?
Hi @angiepunkt sorry to hear that happened again. I’ve just installed most of the same plugins you are having (some I couldn’t install because they aren’t on the WordPress plugins directory). I looked if maybe some other plugin would by accident remove that file but couldn’t find anything so far. Do you know if you maybe recently removed or updated some other plugins? I assume this happened in the very same WordPress as before?
It’s almost like some other plugin or something seems to remove that file. “bootstrap.php” is used by quite a few plugins. Or do you know maybe about any deploy process that might remove this file somehow?
We don’t ever remove this file as part of our plugin so it’s not quite clear how this could happen.
Let me know if there’s any issue.
Hi @ofmarconi have you had a chance yet to check my above comment? This should work. Let me know if that’s not the case and I’ll be happy to look into it. Thanks and have a great day.
Thanks for this. We have added a feature to disable this as part of our next major release (approx 2-3 weeks). It’s documented in https://matomo.org/faq/wordpress/how-do-i-fix-the-error-addhandler-not-allowed-here/
Thanks for your help.
> Should I check, if the file exists on other websites I maintain?
@angiepunkt it shouldn’t be needed. We’ve never had such an issue before out of many installs. It must have been some very random glitch.
> And if it doesn’t, can I save the data before reinstalling the plugin?
What you can do is go to
Matomo Analytics -> Settings. Then click on the “Advanced” tab and disable the settingDelete all data on uninstall..If you were to ever run into this issue again, then you could if possible also update the plugin manually eg using FTP (if that’s a possibility) see Option 2 in https://matomo.org/installing-matomo-for-wordpress/ (if there’s an update available for the plugin then also Option 3 would work) so no uninstalling would be needed.
Thanks. I wasn’t sure if you meant it’s also not working when the AddHandler is removed.
Do you mind letting me know how this feature is disabled in your apache config? I’d like to reproduce it so I can see if I can add some
Ifcondition in the apache config depending on that configuration maybe or whether I can maybe somehow detect it automatically.This would be a lot easier then adding an option that changes the content of the .htaccess based on a setting.
Thank you for your help @fuchsws
Great it works now @angiepunkt and thanks for letting us know.
Yes I assume the data would be lost. Sorry about that! We have an issue to eventually add a check to make sure that all files that should exist actually exist.
In this case when WordPress installed the plugin it for some reason failed to write one file. We’re hoping to be able to detect this in the future so such issues will be detected sooner (ideally WordPress was to provide such a feature automatically but it’s not the case unfortunately)
> The Matomo Reporting UI is also affected of this and does not work.
Thanks @fuchsws just to make sure I understand it correctly. When you remove
AddHandlerthe Matomo Reporting UI does not work? If that’s the case, then you’d probably need to configure apache manually somehow to serve HTML files.> We restricted the AddHandler feature globally for security reasons.
Do you mind letting me know how you disabled it? Maybe this way we can somehow detect it or work around it automatically
Thanks for this @tomasrisbergsilentse very appreciated and glad it works when updating manually. Feel free to comment here any time if you run into this issue again and we’ll be happy to follow up. Thanks again and have a great day
@tomasrisbergsilentse any chance you could try to update the plugin using FTP? See https://wordpress.org/support/article/managing-plugins/#manual-plugin-installation for the steps on how to do this.
Basically, you would download the plugin from https://wordpress.org/plugins/matomo/ , extract the files on your computer and then upload these files using FTP on to
$your-wordpress-directory/wp-content/plugins/matomo.After doing some more research I found it may be possible there’s a compatibility problem (for example with another plugin) that causes a glitch. I cannot reproduce this so far though so unfortunately I can’t do anything about it.
It may otherwise help if you could send us the plugins that cannot be downloaded from the WordPress plugins directory to wordpress@matomo.org . I installed the same plugins as you are using but I can only install the ones from the WordPress plugins directory. There may be a problem with one of the other plugins you are using.
Hi @fuchsws
thanks for letting us know about this. Any chance you can edit your apache config?
In case that is so, can you try to add
AllowOverride Allor if there’s anAllowOverridestatement can you addOptionsso it says something likeAllowOverride Options? This might fix the issue.Or does it generally all work when you remove “AddHandler” from this
.htaccessfile? Does the Matomo Reporting UI also still work (click in WP Admin dashboard on Matomo Analytics -> Reporting)? I’d then look if/how we could have an option for it.Great, thanks for confirming.