Describe the issue or problem
I have downloaded and installl OJS 3.5.0 from this link https://pkp.sfu.ca/software/ojs/download/
Steps I took leading up to the issue
For example:
- Go to ‘management’
missing text view profile and logout text
missing button text
missing /api/v1/_i18n/ui.js?hash=7177d8c1b03f1ca173d74c68156e494debafe3c4
What application are you using?
OJS 3.5.0-0
this issue only occur when i used nginx server and turn on restful_urls = On
Best config for nginx server work with ojs 3.5.0
Change yourdomain.com
server {
listen 80;
listen [::]:80;
listen 443 ssl http2;
listen [::]:443 ssl http2;
listen 443 quic;
listen [::]:443 quic;
http3 off;
{{ssl_certificate_key}}
{{ssl_certificate}}
server_name yourdomain.com www1.yourdomain.com;
{{root}}
{{nginx_access_log}}
{{nginx_error_log}}
# Force HTTPS
if ($scheme != "https") {
return 301 https://$server_name$request_uri;
}
# Basic settings
index index.php index.html;
# OJS specific settings
location / {
try_files $uri $uri/ /index.php$request_uri;
}
# PHP handler
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_pass 127.0.0.1:{{php_fpm_port}};
fastcgi_index index.php;
fastcgi_read_timeout 300;
fastcgi_param HTTPS on;
}
# Static files
location ~* \.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map|mjs)$ {
try_files $uri /index.php$request_uri;
expires max;
add_header Cache-Control "public, no-transform";
add_header Access-Control-Allow-Origin "*";
log_not_found off;
access_log off;
}
# Deny access to hidden files
location ~ /\. {
deny all;
}
# Allow Let's Encrypt validation
location ^~ /.well-known/ {
allow all;
}
{{settings}}
}
2 Likes
Hi,
I also have this problem with ojs 3.5. Changing restful_urls to On or Off doesn’t make any difference.
The problem I have is that I can’t make changes on the nginx server. Did you find anything which can be changed on the web server self?
Thanks.
Hi,
I just edit nginx and its working fine.
Another problems with PDFjs viewer on 3.5.0 nginx server is
"[Expected a JavaScript module script but the server responded with a MIME type of “application/octet-stream”
is you need add the line
application/x-javascript mjs;
in the file /etc/nginx/mime.types
for work 
1 Like
rcgillis
Closed
6
This topic was automatically closed after 6 days. New replies are no longer allowed.