Error OHS 2.3.2 PKPLocale.inc.php line 138

Hello
I have installed the latest OHS version 2.3.2, but I always presents this
error in the log / s:

harvester2 has produced an error\n Message: WARNING: Invalid argument
supplied for foreach()\n In file:
/var/www/html/ohs/lib/pkp/classes/i18n/PKPLocale.inc.php\n At line: 138

I have also blank page with Reading Tools (rtadmin) and not recorded in the
log

I am installing the ohs on centos 7 there will be a problem?

Hi @answar,

There’s a patch for this in the following bug entry:
http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8423

Regards,
Alec Smecher
Public Knowledge Project Team

The URL shows a 404 forbiden page. :frowning:

@answar Did you correct the problem?

Hi,
Any ideas why the error below occurred? And how to fix it? I was setting up email via the config.inc.php when the errors start to happen. But I didn’t touched the localization settings, or at least I assumed so.
OJS 2.4.8.1

I appreciate your help, thank you.

PS: I am a complete newbie on this, just an archaeologist trying to run a journal, please be clear and simple with your instructions.

[08-Feb-2018 17:56:40 Asia/Jakarta] ojs2 has produced an error
Message: WARNING: filemtime(): stat failed for registry/locales.xml
In file: /home/lbjcrrea/public_html/lib/pkp/classes/i18n/PKPLocale.inc.php
At line: 605
Stacktrace:
Server info:
OS: Linux
PHP Version: 5.6.33
Apache Version: N/A
DB Driver: mysql
DB server version: 5.5.58-cll

;;;;;;;;;;;;;;;;;;;;;;;;;
; Localization Settings ;
;;;;;;;;;;;;;;;;;;;;;;;;;

[i18n]

; Default locale
locale = en_US

; Client output/input character set
client_charset = utf-8

; Database connection character set
; Must be set to “Off” if not supported by the database server
; If enabled, must be the same character set as “client_charset”
; (although the actual name may differ slightly depending on the server)
connection_charset = Off

; Database storage character set
; Must be set to “Off” if not supported by the database server
database_charset = Off

; Enable character normalization to utf-8
; If disabled, strings will be passed through in their native encoding
; Note that client_charset and database collation must be set
; to “utf-8” for this to work, as characters are stored in utf-8
; (Note that this is generally no longer needed, as UTF8 adoption is good.)
charset_normalization = Off

;;;;;;;;;;;;;;;;;;
; Email Settings ;
;;;;;;;;;;;;;;;;;;

[email]

; Use SMTP for sending mail instead of mail()
smtp = On

; SMTP server settings
smtp_server = ssl://smtp.gmail.com
smtp_port = 465

; Force the default envelope sender (if present)
; This is useful if setting up a site-wide noreply address
; The reply-to field will be set with the reply-to or from address.
force_default_envelope_sender = On

; Enable SMTP authentication
; Supported mechanisms: PLAIN, LOGIN, CRAM-MD5, and DIGEST-MD5
smtp_auth = PLAIN
smtp_username = ====@gmail.com
smtp_password = ====

; Allow envelope sender to be specified
; (may not be possible with some server configurations)
allow_envelope_sender = On

; Default envelope sender to use if none is specified elsewhere
default_envelope_sender = no-reply@berkalaarkeologi.kemdikbud.go.id

; Enable attachments in the various “Send Email” pages.
; (Disabling here will not disable attachments on features that
; require them, e.g. attachment-based reviews)
enable_attachments = On

; Amount of time required between attempts to send non-editorial emails
; in seconds. This can be used to help prevent email relaying via OJS.
time_between_emails = 3600

; Maximum number of recipients that can be included in a single email
; (either as To:, Cc:, or Bcc: addresses) for a non-priveleged user
max_recipients = 10

; If enabled, email addresses must be validated before login is possible.
require_validation = Off

; Maximum number of days before an unvalidated account expires and is deleted
validation_timeout = 14