Unable to create Discussion / Upload Files in ojs 3.1.2.0

Hi there,
I am currently facing a weird problem in ojs 3.1.2.0 (actually 2 problems)

  1. Whenever I click on Add discussion, I get Ajax related error (invalid json format etc)
  2. I am unable to upload files in discussion or review area… it gets stuck on second stage (review) and it stays there…
    Weirdly and strangely I have got nothing in my error logs, I am using PHP 7.3 on IIS and running our journal portal for 5 years…
    These errors have stopped our working as our Editors and reviewers are unable to perform their tasks and the work is piling up… Kindly help me in this regard on ASAP basis. I shall be really grateful…

Kind Regards,
Farhan Abbasfile%20upload%20error failed%20ajax%20request

Hi @Farhan_Abbas,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Checked multiple times but nothing there… that is weird I know but it is what I get…
Nothing is being logged…no Error no Warning

Hi @Farhan_Abbas,

In that case, I’d suggest using your browser’s developer tools to investigate the response that’s coming back from the server that corresponds with the pop-up error.

Regards,
Alec Smecher
Public Knowledge Project Team

I do not know much about investigating the response through browser, can you please elaborate more on this?
Moreover, I turned on display_errors and show stack trace settings on in config.inc.php and I am getting these warnings and notices on the page
image

in PHP error log file there are only warnings:
[16-Apr-2020 12:51:54 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 12:53:43 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 12:59:52 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:24:09 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:33:10 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:33:19 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:39:09 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:40:17 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:40:17 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:40:17 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:40:17 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:45:46 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:45:56 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0
[16-Apr-2020 13:46:04 Asia/Yekaterinburg] PHP Deprecated: Directive ‘track_errors’ is deprecated in Unknown on line 0

Also remember to check that you do not have any addblocker software enabled that might have rules which are blocking OJS scripts from being executed. I have seen this happening before.

1 Like

I am using No AdBlockers. I have tried different browsers but the same result…
on clicking inspect element, under console there is just a warning message
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ jquery.js:9488

Is it possible that I setup a new database with ojs 3.2.0-2 and copy my data from existing database to new database? I am badly stuck here…

Hi @Farhan_Abbas,

Here are some general instructions on how to use the browser’s web developer tools to inspect requests and responses. You’ll want to look at the response that is sent when you try to create a discussion, sent to the server right before the error message pops up.

Regards,
Alec Smecher
Public Knowledge Project Team