[OJS 3.4.0.8] Can't access Workflow Settings (HTTP ERROR 500)

Hi PKP Team, I am new to OJS and currently using OJS 3.4.0.8.
I have encountered an HTTP ERROR 500, once I clicked on Workflow settings.

Error Log:

PHP Fatal error:  Type of PKP\components\forms\FieldPreparedContent::$preparedContent must not be defined (as in class PKP\components\forms\FieldRichTextarea) in /home/ijnaxypt/public_html/lib/pkp/classes/components/forms/FieldPreparedContent.php on line 18


error OJS gif

Your support would be greatly appreciated :raising_hands:

Hi @Gricia_International,

Have you (or someone) modified lib/pkp/classes/components/forms/FieldPreparedContent.php on your server? Glancing at that message, it seems that this file is different from what comes with OJS 3.4.0-8.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher,

No, haven’t modified anything..

Thanks @asmecher

I’m sure I haven’t touched/modified any files.
Today I tried to remove the snippet public array $preparedContent = []; inside FieldPreparedContent.php and it fixed the Workflow settings..

BUT I’m wondering if it will cause any other issues..

Hi @Gricia_International,

Do you see a similar line in lib/pkp/classes/components/forms/FieldRichTextarea.php?

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher
No, only on lib/pkp/classes/components/forms/FieldPreparedContent.php

Hi @Gricia_International,

Hmm… The error message:

PHP Fatal error: Type of PKP\components\forms\FieldPreparedContent::$preparedContent must not be defined (as in class PKP\components\forms\FieldRichTextarea) in /home/ijnaxypt/public_html/lib/pkp/classes/components/forms/FieldPreparedContent.php on line 18

…is saying that there are conflicting definitions of the preparedContent attribute in two places:

  • lib/pkp/classes/components/forms/FieldPreparedContent.php
  • lib/pkp/classes/components/forms/FieldRichTextarea.php

However, in the OJS 3.4.0-8 codebase, there is only a definition in FieldPreparedContent, and not in FieldRichTextArea, so I’m not sure how this message could be appearing without some modification to one or both of the files.

Do you see any mention of preparedContent in lib/pkp/classes/components/forms/FieldRichTextarea.php?

Regards,
Alec Smecher
Public Knowledge Project Team