The page was not displayed because the request entity is too large
Using Joomla, when I was trying to update some pages on my site, I got this error message: "The page was not displayed because the request entity is too large."
Indeed, the pages I was trying to edit where significantly large, when lots of links and pictures on them, but this is the way I like it: a good read like this one: https://www.nazaudy.com/index.php/profile/54-why-are-we-here
I had a look at the logs of the server, and the "php_error.log" file was giving this nasty error message every single time I tried to upload a large file:
[31-Jan-2021 **:**:**UTC] PHP Warning: is_dir(): open_basedir restriction in effect. File(/plugins/system/nrframework/language) is not within the allowed path(s): D:/****/nazaudy.com\;C:\*****\) in D:\******\nazaudy.com\httpdocs\plugins\system\nrframework\NRFramework\Functions.php on line 383
I open the "user.ini" file on the root of httpdocs, and it was poitingn to C:\windows\temp...hmmmmm, will I have access to write there?
[PHP] open_basedir="D:/domains/nazaudy.com\;C:\WINDOWS\Temp\" error_reporting=22519 error_log="D:\domains\nazaudy.com\logs\php_errors\nazaudy.com\php_error.log"
So I change it to match the temp folder of Joomla, configured under Global >> Server
[PHP] open_basedir="D:/domains/nazaudy.com\;D:\domains\nazaudy.com\httpdocs/tmp\" error_reporting=22519 error_log="D:\domains\nazaudy.com\logs\php_errors\nazaudy.com\php_error.log"
But that did not make any difference, so I put back pointing to the Windows >> temp folder
Then I visited Joomla > Global Server and took note of the "Path to Temp Folder": D:\domains\nazaudy.com\httpdocs/tmp
The page was not displayed because the request entity is too large https://blog.webnersolutions.com/the-page-was-not-displayed-because-the-request-entity-is-too-large/
A website hosted in Plesk is not accessible: open_basedir restriction in effect https://support.plesk.com/hc/en-us/articles/115000278993-A-website-hosted-in-Plesk-is-not-accessible-open-basedir-restriction-in-effect
Open_basedir restriction in effect. File(X) is not within the allowed path(s): Y https://www.templatemonster.com/help/open_basedir-restriction-in-effect-filex-is-not-within-the-allowed-paths-y.html