I don't send revise to author on OJS 3.0

Hello,
I didn’t send revise to author.

When i send the revise, the system says, Failed Ajax request or invalid JSON returned.

the error log is below.

mod_fcgid: stderr: ojs2: 404 Not Found, referer: http://www.suhad.org/suhad/index.php/suhad/workflow/index/8/3

mod_fcgid: stderr: PHP Warning: assert(): Assertion failed in /var/www/vhosts/suhad.org/httpdocs/suhad/lib/pkp/classes/core/PKPString.inc.php on line 833, referer: http://www.suhad.org/suhad/index.php/suhad/workflow/index/8/3

What’s the problem ?

Evren.

Hi @evrenykn,

Are you using OJS 3.0.0? If so, I’d first recommend upgrading to OJS 3.0.1. I’m not sure what caused the assertion failure you encountered in the log, but upgrading to 3.0.1 may well solve it – if not, I’d like to investigate further.

It may well be that the assertion is harmless – in which case you may consider disabling assertions, or directing PHP error/warning messages to be logged rather than sent to the browser. Doing either of those would resolve the “invalid JSON” message.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

I’m using 3.0.1 and i’m updating regularly on github.

Some of articles are waiting revising but i haven’t sent.

I hope, you can solve this issue.

Regards,
Evren

Hi @evrenykn,

Is that ojs-stable-3_0_1 on github, or master? (Are you up to date on both the ojs and pkp-lib repositories?)

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,

I’m updating on /ojs folder.

Am I making an error about this update issue ?

Regards,
Evren

Hi @evrenykn,

Could you describe how you’re updating? For example, did you install from git using e.g. the command line, or download a .tar.gz file from the website, or something else?

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,

I’m using github desktop and i cloned the /ojs folder.

When i sync the folder on github desktop, the folder on my computer update, after i install folders and files on ftp.

Regards,
Evren

Hi @evrenykn,

I haven’t used github desktop so can’t comment on it specifically, but let’s try to debug the assertion message you’re getting.

Could you edit lib/pkp/classes/core/PKPString.inc.php and find the following line (should be line number 833):

assert(isset($words[0]) && !empty($words[0]) && strlen(implode('', $words[0])) == strlen($string));

Right above that, try inserting…

if (!(isset($words[0]) && !empty($words[0]) && strlen(implode('', $words[0])) == strlen($string))) {
    error_log('ASSERTION FAILED ON ' . $string);
}

Then try to re-trigger the problem and watch for the “ASSERTION FAILED” message to appear in your PHP error log. Post the full line here.

Regards,
Alec Smecher
Public Knowledge Project Team

Dear @asmecher,

I didn’t solve it and i made downgrade to 2.4.8.

Best Regards,
Evren