I saw that error in a repeatable manner on my site.
I had attempted to access a sub-page which did not exist.
I had created a page called pi.html, but accessing it through the emoncms re-write URL woud not work for obvious reasons.
i.e.
/pi.html is correct
/emoncms/pi.html gives exactly the same error.
So, unfortunately all I can suggest is trying to remove back to the /emoncms/ and work through the links again. It is possible that the software has updated to present a slightly different URL to that when the links were created.
The issue is that I am seeing this error on sites that people have posted links to here on the forum that used to work but now do not. I do not think it is me inputting the incorrect URL since I am just clicking on their link, something has broken it would seem.
There is a warning message hidden from the viewer when accessing the site listed:
Warning: file_exists(): open_basedir restriction in effect. File(/var/log/emoncms.log) is not within the allowed path(s): (/tmp:/var/services/tmp:/var/services/web:/var/services/homes) in /volume1/web/emoncms/Lib/EmonLogger.php on line 33
Warning: is_writable(): open_basedir restriction in effect. File(/var/log/emoncms.log) is not within the allowed path(s): (/tmp:/var/services/tmp:/var/services/web:/var/services/homes) in /volume1/web/emoncms/Lib/EmonLogger.php on line 38
Looking at the two lines of code, if you fancy testing, try setting $log_enabled=false in default.settings.php
If it works, then we need to work out what change has caused this to happen.
Ultimately, it looks like the php files here (extrapolating from EmonLogger.php path shown) are not within the paths shown so it is unlikely that will fix it, but it might move you on one error forwards
Hi Richard, No idea what is causing it, but I get the same error when trying to access that dashboard you just linked to, so it’s not you
There is also a message that appears at the top of the page - I guess this is coming from the remote server, and not from my Firefox browser as I am using Windows and wouldn’t expect to see some of these directory names ?
(/tmp:/var/services/tmp:/var/services/web:/var/services/homes) in /volume1/web/emoncms/Lib/EmonLogger.php on line 38
I also noticed that @smitt1979 that posted that dashboard is registered on this new forum, so hopefully by tagging him he will join this thread and the two of you can compare ideas
Try adding the root of your PHP files (I would guess at /var/www/html/emoncms perhaps) to the variable open_basedir in /etc/php/php.ini or /etc/php.ini depending on what you have in use.
It should be colon : seperated