Issue saving long text in OJS

Describe the issue or problem
Hi, I’m having an issue saving long text in OJS. I pasted 4,000+ words into the Editorial Team section and clicked Save, but it keeps loading and nothing happens. There is also no error shown on the server. I would appreciate your assistance. Thank you.

What application are you using?
OJS 3.3.0-22

Server Information:

OS platform WINNT
PHP version 7.4.22
Apache version Microsoft-IIS/8.0
Database driver mysql
Database server version 8.0.25
max_execution_time 0
max_file_uploads 20
max_input_nesting_level 64
max_input_time 60
max_input_vars 10000
memory_limit 1000M

No ModSecurity Module installed

Hi @Emi_Naza,

Check your browser’s web developer tools to see what response OJS is getting back when you POST the form to the server.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher ,

The response as follow:

POST https://zulfaqarjdset.upnm.edu.my/index.php/zjdset/api/v1/contexts/1 400 (Bad Request)
send @ jquery.min.js?v=3.3.0.22:2
ajax @ jquery.min.js?v=3.3.0.22:2
submit @ build.js?v=3.3.0.22:157
nextPage @ build.js?v=3.3.0.22:157
it @ build.js?v=3.3.0.22:213
n @ build.js?v=3.3.0.22:213
it @ build.js?v=3.3.0.22:213
(anonymous) @ build.js?v=3.3.0.22:213
submit @ build.js?v=3.3.0.22:157
it @ build.js?v=3.3.0.22:213
n @ build.js?v=3.3.0.22:213
it @ build.js?v=3.3.0.22:213
(anonymous) @ build.js?v=3.3.0.22:213
click @ build.js?v=3.3.0.22:157
it @ build.js?v=3.3.0.22:213
n @ build.js?v=3.3.0.22:213
(anonymous) @ build.js?v=3.3.0.22:213
build.js?v=3.3.0.22:157 Uncaught TypeError: Cannot convert undefined or null to object
at Object.keys ()
at o.error (build.js?v=3.3.0.22:157:121059)
at c (jquery.min.js?v=3.3.0.22:2:25304)
at Object.fireWith [as rejectWith] (jquery.min.js?v=3.3.0.22:2:26053)
at l (jquery.min.js?v=3.3.0.22:2:77807)
at XMLHttpRequest. (jquery.min.js?v=3.3.0.22:2:80265)
error @ build.js?v=3.3.0.22:157
c @ jquery.min.js?v=3.3.0.22:2
fireWith @ jquery.min.js?v=3.3.0.22:2
l @ jquery.min.js?v=3.3.0.22:2
(anonymous) @ jquery.min.js?v=3.3.0.22:2
XMLHttpRequest.send
send @ jquery.min.js?v=3.3.0.22:2
ajax @ jquery.min.js?v=3.3.0.22:2
submit @ build.js?v=3.3.0.22:157
nextPage @ build.js?v=3.3.0.22:157
it @ build.js?v=3.3.0.22:213
n @ build.js?v=3.3.0.22:213
it @ build.js?v=3.3.0.22:213
(anonymous) @ build.js?v=3.3.0.22:213
submit @ build.js?v=3.3.0.22:157
it @ build.js?v=3.3.0.22:213
n @ build.js?v=3.3.0.22:213
it @ build.js?v=3.3.0.22:213
(anonymous) @ build.js?v=3.3.0.22:213
click @ build.js?v=3.3.0.22:157
it @ build.js?v=3.3.0.22:213
n @ build.js?v=3.3.0.22:213
(anonymous) @ build.js?v=3.3.0.22:213

Hi @Emi_Naza,

OJS itself doesn’t respond with a 400 Bad Request in situations like this, so it’s something else in your server stack that is causing the problem. I can think of 3 “usual suspects”…

  • PHP configuration: check your max post size
  • Apache/web server configuration: again, check max post size
  • mod_security or equivalent: Check to see if a security rule is being triggered

Regards,
Alec Smecher
Public Knowledge Project Team