Can't update web site setting (resolved)

Hi.
I can’t update my website setting in OJS 3.2.1 (updated from 2.4.8). Just opening the setting page, console browser shows this error:

WEBSITE.COM/public/site/? 403 (Forbidden)

Apache logs:

CODE 404 GET /public/site/? HTTP/1.0
AH01276: Cannot serve directory /var/www/vhosts/WEBSITE-FOLDER/public/site/: > No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive, referer: http://WEBSITE.com/index.php/index/admin/settings

I don’t have ModSecurity installed on server and don’t have the same problems modifing the journal’s settings (/public/journals is accessible ). I have the same permissions and proprietary/group name for /public/journals and /public/site folders.

If I modify my setting data and click save, nothing happens (just a circle rounding).
This is my browser console:

POST http://test-WEBSITE.com/index.php/index/$$$call$$$/tab/settings/admin-settings-tab/save-form-data?tab=siteSetup 500 (Internal Server Error)

and between Apache logs:

CODE 500 POST /index.php/index/$$$call$$$/tab/settings/admin-settings-tab/save-form-data?tab=siteSetup HTTP/1.0
mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined method SiteSetupForm::getFormLocale() in /var/www/vhosts/WEBSITE-FOLDER/lib/pkp/classes/admin/form/PKPSiteSettingsForm.inc.php:135, referer: http://WEBSITE.com/index.php/index/admin/settings

This is for main webstite setting, the journals’s setting page instead is OK.

Thank you

Hi @Enzo

you are probably running into this issue here: OMP 3.1.2 Call to undefined method SiteSetupForm::getFormLocale() · Issue #4571 · pkp/pkp-lib · GitHub

You may need to apply this patch to your installation: pkp/pkp-lib#4571 use getDefaultFormLocale by ajnyga · Pull Request #4586 · pkp/pkp-lib · GitHub

Cheers,
Jason

1 Like

That’s right. Thank you

1 Like

Hello, can I continue this topic?

I also experienced the same thing, for the new OJS installation version 3.1.2. I have done the steps above, adding the code in lib / pkp / classes / admin / form / PKPSiteSettingsForm.inc.php but this step does not work for me.
I just can’t save the Theme & Sidebar management in Site Settings
is there any solution?

*I have disabled modsecuritythe%20server%20responded%20with%20a%20status%20of%20500
Thank you

Hi @rudy,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello asmecher

I tried to install OJS 3.2.0.0. However, when We were setting up or choosing the SIde Bar component (e.g. Web Feed Plugins, Information Block, etc) on “Website Settings-Appearance-Setup” it was crash.

Hi @Andri_Pranolo,

See OJS 3.2.0 Sidebar Management. Page not responding problem - #10.

Regards,
Alec Smecher
Public Knowledge Project Team