404 error as editors, reviewers or authors sends email

Hello all

If i send e-mail as an Journal Managers everything is ok, if i try send email as editors e-mail is send but redirect site is wrong:
404 Not FoundStack Trace:
File: /home/www/organizacja/zz/public_html/lib/pkp/classes/core/PKPPageRouter.inc.php line 184
Function: Dispatcher->handle404()
File: /home/www/organizacja/zz/public_html/lib/pkp/classes/core/Dispatcher.inc.php line 134
Function: PKPPageRouter->route(Object(Request))
File: /home/www/organizacja/zz/public_html/lib/pkp/classes/core/PKPApplication.inc.php line 178
Function: Dispatcher->dispatch(Object(Request))
File: /home/www/organizacja/zz/public_html/index.php line 67
Function: PKPApplication->execute()

Version OJS 2.4.7.1
PHP version 5.4.45
Apache/2.2.15 (CentOS)
Database driver mysql
Database server version 5.1.73
In OJS systems is 3 journals with separate domains

My test .htaccess` Options +FollowSymLinks
RewriteEngine On
RewriteBase /

RewriteCond %{SERVER_NAME} ^zz1.uek.krakow.pl
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/zz1/$1 [L]

RewriteCond %{SERVER_NAME} ^zz2.uek.krakow.pl
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/zz2/$1 [L]

RewriteCond %{SERVER_NAME} ^zz3.uek.krakow.pl
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/zz3/$1 [L]

RewriteCond %{SERVER_NAME} ^zz.uek.krakow.pl
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/index/$1 [L]`

What is the URL that is generating the 404?

Just click Send e-mail for authors.

When you click that link, what URL appears in the browsers’ address bar?

https://zz2.uek.krakow.pl/zz2/sectionEditor/submissionReview/301

I assume from that page you click on the “Notify Author” mail link. That link should look like “https:// zz2.uek.krakow.pl /zz2/sectionEditor/emailEditorDecisionComment?articleId=301”

Does the address bar reflect that URL on the next page? I assume that next page is where you see the 404 error.

Helo ctgraham
Next page is fine. Only redirect is broken.

Can you clarify the workflow you are seeing? For example,

I’m on “#6015 Review” (/index.php/journal/editor/submissionReview/6015). I click on the “Notify Author” email link (/index.php/journal/editor/emailEditorDecisionComment?articleId=6015).

I fill out the “Send Email” screen (/index.php/journal/editor/emailEditorDecisionComment?articleId=6015) and click “Send” (POST /index.php/journal/editor/emailEditorDecisionComment/send)

The form post successfully sends the email and initiates a redirect to (/index.php/journal/editor/submissionReview/6015).

Where I actually end up is “#6015 Review” again (/index.php/journal/editor/submissionReview/6015).

Where precisely is the breakdown for you, and what URL appears in the address bar when you see the 404?

Helo

Im on https://zz2.uek.krakow.pl/editor/submissionReview/852 then click “Send Emial” i redircted to: https://zz2.uek.krakow.pl/user/email?redirectUrl=http%3A%2F%2Fzz2.uek.krakow.pl%2Fzz2%2Feditor%2FsubmissionReview%2F852&to[]=“Lucjan%20Wiśniewski”%20<wisniewl%40uek.krakow.pl>&subject=testowy%20na%20ZZ%203%20dok&articleId=852

Everything is ok. I click sent (email is correctly send) but i redirect to:
https://zz2.uek.krakow.pl/zz2/editor/submissionReview/852
not to
https://zz2.uek.krakow.pl/editor/submissionReview/852

OJS add in address
zz2.uek.krakow.pl/zz2/
not
zz2.uek.krakow.pl/

before: editor/submissionReview/852
Regards,

It looks like the problem is being introduced in the redirectUrl parameter for “/user/email”. This is generated from $currentUrl in:

I don’t see a more context specific override for this, so it is probably still the default set from:

That function is defined here:

Are you familiar with PHP? Are you comfortable debugging this function to identify what might be causing the error?

Im no good i php :frowning:
I suspect that the error is not in the php code only. same thing happens because the .htacces.
I have 3 differnt journals in OJS, home domain OJS, for example
zz.uek.krakow.pl
and for 3 journals:
zz1.uek.krakow.pl
zz2.uek.krakow.pl
zz3.uek.krakow.pl

My htaccess file is above

In homesite OJS (zz.uek.krakow.pl) all link is fine.
But if I’m on pages zz1.uek.krakow.pl
Link HOME redirect to index site zz.uek.krakow.pl not to home site zz1.uek.krakow.pl
Without .htaccess redirect link HOME for domain zz1.uek.krakow.pl look like:
zz.uek.krakow.pl/index.php/zz1

After login user “USER HOME” redirect to: https://zz.uek.krakow.pl/user
no to:
https://zz1.uek.krakow.pl/user

These are my test sites where you can check their operation.

No worries on not being a PHP guru.

What are your base_url and base_url[] entries from config.inc.php?

There is a different thread on the USER HOME issue. You might also be interested in that.

Thank you very much thread come in handy I changed the lines
13 and 17 in templates/common/navbar.tpl
13 - <li id="home"><a href="{url page=" "}">{translate key="navigation.home"}</a></li>
17 - <li id="userHome"><a href="{url page="user"}">{translate key="navigation.userHome"}</a></li>
solved the problem for me.

base_url = “http://zz.uek.krakow.pl

base_url[index] = http://zz.uek.krakow.pl
base_url[zz1] = http://zz1.uek.krakow.pl
base_url[zz2] = http://zz2.uek.krakow.pl
base_url[zz3] = http://zz3.uek.krakow.pl
base_url[zz4] = http://zz4.uek.krakow.pl

Regards