Title: appplugins &#8211; bad PATH
Last modified: July 25, 2024

---

# appplugins – bad PATH

 *  Resolved [givemebit](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/)
 * ![](https://i0.wp.com/i.ibb.co/4Y8CqJp/matomo-badpath.png?ssl=1)
 * Old problem, definitely over a year old. appplugins – should be app/plugins

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Thread Starter [givemebit](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17911607)
 * Unfortunately I don’t see a referrer to let you know which script is the problem
 *  Thread Starter [givemebit](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17911637)
 * 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](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17911641)
 * The directory tree looks correct
 * ]# pwd && ls -1
   /var/www/html/wp-content/plugins/matomoappassetsclassesconfiglanguages
 *  Thread Starter [givemebit](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17911651)
 * 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](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.
 * ![](https://i0.wp.com/i.ibb.co/4JYgYj1/country-error.png?ssl=1)
    -  This reply was modified 1 year, 10 months ago by [givemebit](https://wordpress.org/support/users/givemebit/).
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17911706)
 * Hi [@givemebit](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17913322)
 * 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](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17913422)
 * `PIWIK_DOCUMENT_ROOT` not defined 🙁
 *  Plugin Support [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17913431)
 * [@givemebit](https://wordpress.org/support/users/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](https://wordpress.org/support/users/givemebit/)
 * (@givemebit)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17914061)
 *     ```wp-block-code
       [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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17916927)
 * [@givemebit](https://wordpress.org/support/users/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](https://wordpress.org/support/users/dizzyatinnocraft/)
 * (@dizzyatinnocraft)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17932841)
 * 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.

 * ![](https://ps.w.org/matomo/assets/icon-256x256.png?rev=3531741)
 * [Matomo Analytics - Powerful, Privacy-First Insights for WordPress](https://wordpress.org/plugins/matomo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/matomo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/matomo/)
 * [Active Topics](https://wordpress.org/support/plugin/matomo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/matomo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/matomo/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [dizzyatinnocraft](https://wordpress.org/support/users/dizzyatinnocraft/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/appplugins-bad-path/#post-17932841)
 * Status: resolved