• Resolved givemebit

    (@givemebit)


    Old problem, definitely over a year old. appplugins – should be app/plugins

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter givemebit

    (@givemebit)

    Unfortunately I don’t see a referrer to let you know which script is the problem

    Thread Starter givemebit

    (@givemebit)

    This is very strange but the command is: find . -type f -exec grep -iln ‘appplugins’ {} \;
    returned 0 results. Maybe it’s the nginx configuration?

    Thread Starter givemebit

    (@givemebit)

    The directory tree looks correct

    ]# pwd && ls -1
    /var/www/html/wp-content/plugins/matomo
    app
    assets
    classes
    config
    languages

    Thread Starter givemebit

    (@givemebit)

    Delivered report to email does not display pictures, if you copy the link to the country flag image you get:
    https://DOMAIN/wp-content/plugins/matomo/appplugins/Morpheus/icons/dist/flags/ua.png

    Apparently the reason is in the generation of the message and most likely the body of the message is encoded, so grep could not find it.

    • This reply was modified 8 months ago by givemebit.
    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Hi @givemebit, it looks like the PIWIK_DOCUMENT_ROOT constant is not being defined correctly. Specifically, it seems to be missing a terminating /. It’s defined in the app/index.php file, if not defined already. Can you check what it’s set to?

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Actually, this is only happening to assets, so yes, it’s probably in your webserver config. Some path needs to end in a ‘/’.

    Thread Starter givemebit

    (@givemebit)

    PIWIK_DOCUMENT_ROOT not defined ??

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    @givemebit In /path/to/wordpress/wp-content/plugins/matomo/app/index.php, there is a line that starts with define('PIWIK_DOCUMENT_ROOT'.... Can you add something like error_log("document root is " . PIWIK_DOCUMENT_ROOT); after it, then enable WordPress debug logging (by setting the WP_DEBUG/WP_DEBUG_LOG constants in wp-config.php), then load the Matomo dashboard and see what is added to the debug logs?

    Thread Starter givemebit

    (@givemebit)

    [error] 30445#30445: *35301 FastCGI sent in stderr: "PHP message: PIWIK_DOCUMENT_ROOT is: /var/www/html/wp-content/plugins/matomo/app" while reading response header from upstream

    By the way the bug is not permanent, today the email came with the correct paths. I looked at the history of e-mails and noticed that every 2-3 e-mails with wrong paths.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    @givemebit would you be able to share your nginx config? You can post it here or email it to dizzy (at) innocraft (dot) com.

    Plugin Support dizzyatinnocraft

    (@dizzyatinnocraft)

    Given the lack of response I’m marking this as resolved. Feel free to reply or create another issue if you still require assistance.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘appplugins – bad PATH’ is closed to new replies.