[OJS 3.2.0.3] Error on Submission Page

Unfortunately, I was happy a little early. Now, when I try do update the DOI records using Crossref plugin, I get Unrecognized DAO PublishedArticleDAO! on a white page .There are some other people having the same error;

So, I will go on watching the forum.
Regards,

Hi @KBodarwe,
How many journals exist on your OJS 3 installation?
Besides error in Crossref plugin, the ordinary users (authors or reviewers etc) also get such an error when they are logged in, or when clicked on submissions each time.(screenshot)
This typically occurs when there are multiple journals on a domain, and occur in the second, and third journals. I think, the path of the first journal is added to all other journals too. For example the path of the first journal atb exist in the second journal api links (citymedicaljournal.com).
For ex; such a configuration gives the error

RewriteEngine On
RewriteBase /

# Bugfix for OJS 3.2.0-3: submissions API doesnt work with shortened URLs
RewriteRule ^api/v1(.*)$ index.php/atb/api/v1$1 [R,L]

RewriteCond %{SERVER_NAME} ^www.adlitipbulteni.com
RewriteCond %{REQUEST_URI} !/atb/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/atb/$1 [L]

RewriteCond %{SERVER_NAME} ^www.citymedicaljournal.com
RewriteCond %{REQUEST_URI} !/cmj/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/cmj/$1 [L]

The github issue seems have been closed, but I hope it will be reopened for a better fix.
Dou you have any suggestions?
Best regards,

Screen Shot 2020-07-04 at 09.57.04

Hello @drugurkocak,
all my installations are single-journal, for various reasons. So I can’t help you with that. The API probably has to be redirected seperately for both journal api (add the RewriteCond with SERVER_NAME to the api rewrite), but that’s just speculation on my side.

So yes I should clarify, that my solution only works for single journal installations.

1 Like

Another update.
I have found out that the upload of files within the page is hindered by this.
I have since changed the .htaccess to:

RewriteEngine On
RewriteBase /

# Bugfix for OJS 3.2.0-3: submissions API doesnt work with shortened URLs
RewriteRule ^api/v1(.*)$ index.php/journal/api/v1$1 [L,R=307]

# Rewrite URL to look cleaner
RewriteCond %{SERVER_NAME} ^www.server.com
RewriteCond %{REQUEST_URI} !/journal/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/journal/$1 [L]

which seems to fix the problem regarding POST data.

4 Likes