Some links (with parameters) not working

After setting disable_path_info=off the site (front end) working fine but site admin not:
http://mydomain/manager/moveSection?d=d&id=19 (to reoorder sections)
or
http://mydomains/editor/moveIssue?d=d&id=7&issuesPage=1 (reorder issues)
not working at all. (all links with parameters)

If I set disable_path_info=on all working fine but the links are unacceptable (ojs2.4.6). Please give me a suggestion.
Thank you!

Hi @ophi_ro,

What do you get when you go to the URLs that aren’t working?

Are you using any kind of URL rewriting configuration?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec,

Thank you for quick response.

When I try to reorder some items: sections (as manager) or issues (as editor) when I click on up or down arrows nothing happens.

If I use drop-down menu I can rearrange the items but not saved when I refresh page.

We use nginx server with rewriting configuration.

As reader links are ok.

To solve my problem I changed disable_path_info=on then return to off but I’m interested in finding a correct solution.

Thank you for your kindness,

Ophi

Hi @ophi_ro,

I suspect the rewrite rules are what’s causing the problem; these features work in stock OJS 2.4.6 with path_info_disabled set to Off.

Regards,
Alec Smecher
Public Knowledge Project Team

This is my nginx.conf:

root /usr/local/www/mydomain;
index index.php index.html
location ~ /.ht {
deny all;
}

location ~ ^/cache(.*)$ {
deny all;
}

location ~ /index.php$ {
try_files $uri =404;
fastcgi_pass joomla-fssp;
include /usr/local/etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

location ~ ^/index.php {
try_files $uri @ojs;
}

location / {
index index.php;
try_files $uri $uri/ @ojs ;
}

location @ojs {
try_files $uri /index.php$uri;
set $script $uri;
set $path_info “”;
if ($uri ~ “^(.+.php)(/.+)”) {
set $script $1;
set $path_info $2;
}
fastcgi_pass joomla-fssp;
include /usr/local/etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_NAME $script;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $path_info;
}

location ~* .(js|css|xml|txt)$ {
gzip on;
gzip_http_version 1.1;
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_types text/plain application/xhtml+xml text/css application/xml application/xml+rss text/javascript application/javascript application/x-javascript
text/xml;
gzip_proxied any;
gzip_disable “MSIE [1-6].”;
expires max;
log_not_found off;
}

location ~* .(jpg|png|jpeg|gif|ico|pdf)$ {
expires max;
log_not_found off;
}

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
}

Could I have some suggestions. Any help is welcome.

With gratitude,

Ophi

Hi @ophi_ro,

Have you tried without your URL rewriting configuration in place? I’d suggest testing that briefly to see if it isolates the problem. Unfortunately I can’t help debug specific rewriting configurations.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi, I have a similar problem in:

Home > User > Journal Management > Journal Setup
3.1 AUTHOR GUIDELINES

it does not save the information, only the first letter and it is not displayed in About the Journal.

Kind regards

Hi @jhisaza,

That’s a different issue – probably related to an upgrade. Check your journal_settings table for settings named authorGuidelines and ensure that all entries have a value in the locale column.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,
in locale i have en_EN and es_ES. After tryng to save, I got the following error in the page:

https://www.pronatplus.com/nozomisc/nsojs/index.php/rpn/manager/saveSetup/3

Forbidden

You don’t have permission to access /nozomisc/nsojs/index.php/rpn/manager/saveSetup/3 on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

best regards

Hi @jhisaza,

See e.g. this thread: http://forum.pkp.sfu.ca/t/ojs-error-saving-setup-step-3

Regards,
Alec Smecher
Public Knowledge Project Team

Hi,
My problem was overcome by a compromise:

disable_path_info = Off
and
restful_urls = Off

I don,t like the redundant “/index.php/” in the URLs but that is …

My site is also multilingual(en_US, ro_RO, fr_FR) and multijournal(4).
On the other hand some saves were not working too.

Thank you,
Ophi