Upgrading OMP from 1.1.1.1 to 1.2.0.0 - Some problens in new version

Hello!

recently I did the upgrate to version OMP 1.2.0.0.
But, now I have some problems.


1: My language (Brazilian Portuguese) has some accented letters, but they are not displayed correctly even with the following settings:

178 ;;;;;;;;;;;;;;;;;;;;;;;;;
179 ; Localization Settings ;
180 ;;;;;;;;;;;;;;;;;;;;;;;;;
181
182 [i18n]
183
184 ; Default locale
185 locale = pt_BR
186
187 ; Client output/input character set
188 client_charset = utf-8
189
190 ; Database connection character set
191 ; Must be set to “Off” if not supported by the database server
192 ; If enabled, must be the same character set as “client_charset”
193 ; (although the actual name may differ slightly depending on the server)
194 connection_charset = utf-8
195
196 ; Database storage character set
197 ; Must be set to “Off” if not supported by the database server
198 database_charset = utf-8
199
200 ; Enable character normalization to utf-8 (recommended)
201 ; If disabled, strings will be passed through in their native encoding
202 charset_normalization = On
203

2: Broken import link: http://localhost/omp/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_ptbr.js
This file does not existe, the right file is http://localhost/omp/lib/pkp/js/lib/jquery/plugins/validate/localization/messages_pt_BR.js I guess.

3: Some ajax requisitions does not work properly.

Help please?

Best regards.

Hi @Tarcisio_Pereira,

Two quick things to check:

  • The database_charset setting should be utf8, not utf-8.
  • When you run into an AJAX request that fails, it’s often because there’s a PHP error message thrown into it. Can you check your PHP error log to see if something appears there?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher

After change database_charset to utf8 it’s work ok. Done.
But, no error printed after ajax request, just in browser:

Maybe .htaccess?

RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,L]

Best regards.

Hi @Tarcisio_Pereira,

Are you sure you’re checking the right log for PHP error messages? Alternately, try inspecting the response to see if something is included there. You can use a tool like Firebug to do this; other browsers like Chrome have such tools built in.

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher

Yeah! I double checked and I’m sure.
Inside log:

[Tue Apr 19 08:31:20.497166 2016] [:error] [pid 4611] [client 127.0.0.1:53688] omp: 404 Not Found, referer: http://localhost/omp/portaldelivrosUSP/management/settings/website
[Tue Apr 19 08:31:20.511119 2016] [:error] [pid 4615] [client 127.0.0.1:53694] omp: 404 Not Found, referer: http://localhost/omp/portaldelivrosUSP/management/settings/website

But this two 404 is related with 2 js:

If I undestanded FireBug, no response:

From chrome:


It’s weird.

Best regards,
Tarcisio Pereira

Hi @Tarcisio_Pereira,

Would it be possible for you to make this installation temporarily available to me? If so, please PM me the details.

Regards,
Alec Smecher
Public Knowledge Project Team