Our journal has recently been accepted to be indexed by DOAJ. So, I decided to use DOAJ export plugin to transfer metadata. I requested an api key, and got one.
For now, I don’t want to use XML files. Instead, I prefer to try for online transfer via plugin.
After saving api key and selecting an article to be submitted via the plugin, I click register button and I get the following error message.
Deposit was not successful! The DOAJ API returned an error: '1 -
301 Moved Permanently
When I look at the php log, I can not see any fatal errors, but some warning messages exist.
[09-Jul-2017 23:30:21 Europe/Istanbul] PHP Warning: array_merge(): Argument #2 is not an array in /home/ugukoc/adlitipbulteni.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
[09-Jul-2017 23:30:21 Europe/Istanbul] PHP Warning: Invalid argument supplied for foreach() in /home/ugukoc/adlitipbulteni.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
[09-Jul-2017 23:30:21 Europe/Istanbul] PHP Warning: Cannot use a scalar value as an array in /home/ugukoc/adlitipbulteni.com/lib/pkp/classes/core/DataObject.inc.php on line 133
[09-Jul-2017 23:30:35 Europe/Istanbul] PHP Warning: array_merge(): Argument #2 is not an array in /home/ugukoc/adlitipbulteni.com/lib/pkp/classes/core/PKPApplication.inc.php on line 578
[09-Jul-2017 23:30:35 Europe/Istanbul] PHP Warning: Invalid argument supplied for foreach() in /home/ugukoc/adlitipbulteni.com/plugins/generic/recommendByAuthor/RecommendByAuthorPlugin.inc.php on line 114
Hope, we can solve this issue and become able to transfer article metadata to doaj.
Hmmm… That “301 Moved Permanently” error is very strange – I do not understand it I will try to ask someone from DOAJ.
In the mean time: you could just export the XML file and try to upload it via the DOAJ portal.
For the warning you get and see in the error log files, you would need to apply this change/patch: pkp/pkp-lib#2552 fix array type warning · pkp/ojs@b9ea328 · GitHub
Concerning the “301 Moved Permanently” error: do you have this changes/fix in your installation: http://forum.pkp.sfu.ca/t/ojs-2-and-ojs-3-on-the-same-linux-server/ ?
I.e. https should be used instead of http
I’ve experienced the same error “301 moved permanently”, and noticed strange thing in 184.108.40.206. version we are using. If I generate XML, it uses utf-8. So if there are non-latin characters, like čćšđ etc, it gets an error, and if I creeate xml file from error report, it gets stuck while uploading on DOAJ site.
However, if I manually change “utf-8” to “UTF-16” in the xml heading (mind the capital letters), it passes and all articles are on DOAJ correctly. Wonder if that is related to 301 error…
Cheers to ya all
Ah, my link above is wrong, it should be this one: Change DOAJ API protocol to https · pkp/ojs@ada5d88 · GitHub.
Thus, do you have that change? – The plugin should use https instead of http.
I do not exactly understand the other issue
How do you create that XML file? - it is important that the editor you are using supports and uses UTF-8.
I do not understand from where do you take the XML and what error occurs?
Another point that I noticed after previous message, all the articles of last issue that I published yesterday seem as registered. The metadata of some of them needs to be updated, because their page numbers etc changed. I don’t know how to do it.
Hmmm… That “bad_request” error seems similar to the problem here: reload scheduled tasks function for the acron plugin · Issue #2543 · pkp/pkp-lib · GitHub. The problem was that DOAJ accepts only 6 keywords via API and this was the fix: pkp/pkp-lib#2543 fix automatic DOAJ deposit · bozana/ojs@5997194 · GitHub. That fix should be in the OJS 3.1 release. Do you have that code?
Else, I am not sure, but maybe if you re-register the updated articles, maybe the DOAJ metadata will be updated too – could you try that, maybe first with only one article?
In my last update from 3.0.2 to 3.1.0, I hit the error discussed in that topic
I got a blank page at the attempts via web interface, then I tried the command line. I applied the upgrade as in docs.
php tools/upgrade.php upgrade
Now, I have ojs 3.1.0 code, but I notice that database was not updated properly. When I try to upgrade to 220.127.116.11 I got duplicate key errors pointing a previously failed upgrade attempt. I have several poblems that I should write elsewhere. I checked doaj fix, and all are already done. I will wait and read other topics,
I am now dealing with the same error: 301 Moved Permanently (Deposit was not successful! The DOAJ API returned an error: '1 - nginx/1.4.6 (Ubuntu).
Was it in some solved or not?
What OJS version are you using?
We had that problem, but it was solved long time ago… Hmmm…
Does your file plugins/importexport/doaj/DOAJExportPlugin.inc.php contains “https” in these lines: ojs/DOAJExportPlugin.inc.php at ojs-3_1_1-4 · pkp/ojs · GitHub ?
Hi @bozana ,
Thank you very much. After opening the file we found the problem, corrected it and now it seems to be working.
Thank you very much!!!