• Resolved Niels Pilon

    (@nielspilon)


    Hi,

    I’m getting a 500 Error when visiting the reporting, tag-manager of Matomo admin page.

    The error indicates that an e-mail with more details has been sent to the site admin however I’m not receiving any mails… Other notifications are sent just fine.

    I’ve checked the error logs but I’m not seeing any Matomo related errors so I’m quite clueless why this happens.

    Already downgraded the plugin to 4.04 and 4.1 but the issue remains. Using WordPress 5.6 and start to wonder if it might be related to 5.6

    Could this be the issue or should I check something else?

    Thanks in advance,
    Niels

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Thomas

    (@tsteur)

    Hi @nielspilon sorry about all that. WordPress should be sending you an email. Any chance you can check what admin email is configured? I would assume it goes to that email. And it might be also good to check your spam folder just in case.

    Do you maybe remember if you previously upgraded from a 1.X version? It’s possible that in that case the plugin become incompatible with some other plugin of yours. Any chance you could send us your system report see https://matomo.org/faq/wordpress/how-do-i-find-and-copy-the-system-report-in-matomo-for-wordpress/

    The system report would also include information from which version you upgraded and it should be automatically anonymised.If the system report doesn’t even work you could follow the step on the page that mentions defining define( 'MATOMO_SAFE_MODE', true ); maybe.

    Plugin Author Thomas

    (@tsteur)

    Hi @nielspilon have you had a chance to look at my previous comment maybe?

    Thread Starter Niels Pilon

    (@nielspilon)

    Hi Thomas,

    Thanks for your reminder and sorry for not getting back to you sooner. Completely forgot the issue…

    I just tried to send a system report and it generated a fatal error as well. However this time I got the notification with debugging info and it mentioned an issue with the WPML plugin:

    Een fout van het type E_COMPILE_ERROR werd veroorzaakt op regelnummer 331 van het bestand /home/locatus/public_html/wp-content/plugins/matomo/app/vendor/twig/twig/src/Extension/CoreExtension.php. Foutmelding: Cannot redeclare twig_cycle() (previously declared in /home/locatus/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/twig/twig/lib/Twig/Extension/Core.php:288

    WPML has an update available so I will update WPML first to see it that solves the 500 errors when accessing Matomo reports.

    Plugin Author Thomas

    (@tsteur)

    Hi @nielspilon

    thanks for your reply. It seems there is a conflict with the “sitepress-multilingual-cms” where they are using a same piece of code that we are using too but they are using a much older version.

    I’m running here the latest version of the plugin and I don’t have any problem. Be great indeed to give the update a try as well to see if it resolves the issue.

    Hello,
    I get a 500 error too. The plugin version is 4.1.3 and WordPress 5.6.1. When I check the apache logs I see :
    /var/www/wordpress/wp-content/uploads/matomo/.htaccess: Require not allowed in <Files> context, referer

    Bellow the .htaccess concerned :

    <Files ~ "(\.mmdb)$">
    <IfModule mod_version.c>
            <IfVersion < 2.4>
                    Order Deny,Allow
                    Deny from All
            </IfVersion>
            <IfVersion >= 2.4>
                    Require all denied
            </IfVersion>
    </IfModule>
    <IfModule !mod_version.c>
            <IfModule !mod_authz_core.c>
                    Order Deny,Allow
                    Deny from All
            </IfModule>
            <IfModule mod_authz_core.c>
                    Require all denied
            </IfModule>
    </IfModule>
    </Files>
    <Files ~ "(\.js)$">
    <IfModule mod_version.c>
            <IfVersion < 2.4>
                    Order Allow,Deny
                    Allow from All
            </IfVersion>
            <IfVersion >= 2.4>
                    Require all granted
            </IfVersion>
    </IfModule>
    <IfModule !mod_version.c>
            <IfModule !mod_authz_core.c>
                    Order Allow,Deny
                    Allow from All
            </IfModule>
            <IfModule mod_authz_core.c>
                    Require all granted
            </IfModule>
    </IfModule>

    thank you.

    • This reply was modified 4 years, 1 month ago by denisit71.
    • This reply was modified 4 years, 1 month ago by denisit71.
    Plugin Author Thomas

    (@tsteur)

    Hi @denisit71 I just search for this error message and I found https://stackoverflow.com/a/53320836 where it suggests that your Apache webserver might need a configuration change. Are you familiar with Apache or do you know someone that could make such a change? Or maybe your hoster would be able to make such a change?

    It seems AuthConfig options needs to be added to the AllowOverride apache option.

    Thread Starter Niels Pilon

    (@nielspilon)

    Hi Thomas,

    FYI: I updated WPML to the latest version a couple days ago and the Matomo tag-manager and admin pages are all fine now.

    Kind regards,
    Niels

    Hi thomas,
    Maybe you can help me about the apache configuration. I use a VPS so I can configure everything. I don’t see this parameter in apache2.conf or others conf files. I suppose I have to add in the wordpress conf with directory path but I’m not sure. Can you share your configuration (just the part about matomo) for reference please ?

    • This reply was modified 4 years, 1 month ago by denisit71.

    Hi Thomas,
    I realize that I get this error message in apache log whatever the page. The error 500 doesn’t come from there.

    Sorry, matomo was configured to track pages even being admin. Could you share me your conf please ?

    Finally, I add these directory paremeters to the wordpress configuration apache site and it’s work :

    
    <Directory /var/www/wordpress/wp-content/plugins/matomo>
                AllowOverride FileInfo AuthConfig
            </Directory>

    thank you for your work.

    Plugin Author Thomas

    (@tsteur)

    Great to hear it’s now working @denisit71 and @nielspilon Thanks for all your help

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘500 Error when visting reporting, tag-manager and admin pages’ is closed to new replies.