Nazaudy, a spark in your curious mind

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."

 

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:

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

 

Troubleshooting:

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

 

References