Hi everyone,
We’re encountering an “action_err_ns” error when attempting to save a PHP script on our MODX installation. We can save PHP files with fewer lines without any issues, but the number of lines that trigger the error seems to be random.
Currently, our script has 1900 lines. Sometimes it saves fine, but other times we get the “action_err_ns” error. The error log shows the following message:
PHP Warning: PHP Request Startup: POST data can't be buffered; all data discarded in Unknown on line 0, referer: https://www.example.com/manager/?a=system/file/edit&file=bobby%2Fcore%2Fcomponents%2Fbobby%2Fsrc%2FModel%2FBobby.php&wctx=mgr&source=1
Our setup is as follows:
- MODX version: 3.0.5
- PHP version: 8.2.16
We’ve already tried adjusting the following PHP settings:
output_buffering
to 8192memory_limit
to 512Mpost_max_size
to 128M
Despite these changes, the issue persists. Has anyone else experienced this problem or have any suggestions on how to resolve it?
Thanks in advance for your help!