appplugins – bad PATH
-

Old problem, definitely over a year old. appplugins – should be app/plugins
-
Unfortunately I don’t see a referrer to let you know which script is the problem
This is very strange but the command is: find . -type f -exec grep -iln ‘appplugins’ {} \;
returned 0 results. Maybe it’s the nginx configuration?The directory tree looks correct
]# pwd && ls -1
/var/www/html/wp-content/plugins/matomo
app
assets
classes
config
languagesDelivered 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.pngApparently 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 1 year, 10 months ago by
givemebit.
Hi @givemebit, it looks like the
PIWIK_DOCUMENT_ROOTconstant 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?Actually, this is only happening to assets, so yes, it’s probably in your webserver config. Some path needs to end in a ‘/’.
PIWIK_DOCUMENT_ROOTnot defined π@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 likeerror_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?[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 upstreamBy 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.
@givemebit would you be able to share your nginx config? You can post it here or email it to dizzy (at) innocraft (dot) com.
Given the lack of response I’m marking this as resolved. Feel free to reply or create another issue if you still require assistance.
-
This reply was modified 1 year, 10 months ago by
The topic ‘appplugins – bad PATH’ is closed to new replies.