Can't view submissions list after upgrade to v 3.1

I get a pop up with this error message: “An unexpected error has occurred. Please reload the page and try again.” Reloading does nothing, and the message won’t go away until I’ve tried closing it at least 3 times. I can see the submissions page, but it won’t load any of the lists. Submissions can be viewed from the task menu though if they’re new.

I get these errors when looking at Chrome’s developer tools:

jquery.min.js:4 GET https://ijpds.org/index.php/ijpds/api/v1/submissions?status=1&searchPhrase=&count=20&offset=0&=1512650130227 404 (Not Found)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at Le.ajaxErrorCallback (build.js:1)
at Le.n [as ajaxErrorCallback] (build.js:1)
at Object.error (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
error @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
jquery.min.js:4 GET https://ijpds.org/index.php/ijpds/api/v1/submissions?status=1&assignedTo=-1&searchPhrase=&count=20&offset=0&=1512650130226 404 (Not Found)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at Le.ajaxErrorCallback (build.js:1)
at Le.n [as ajaxErrorCallback] (build.js:1)
at Object.error (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
error @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
jquery.min.js:4 GET https://ijpds.org/index.php/ijpds/api/v1/submissions?status%5B%5D=4&status%5B%5D=3&searchPhrase=&count=20&offset=0&=1512650130228 404 (Not Found)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
pkp.min.js:317 Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at Le.ajaxErrorCallback (build.js:1)
at Le.n [as ajaxErrorCallback] (build.js:1)
at Object.error (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
error @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
3pkp.min.js:317 Uncaught TypeError: Cannot read property ‘addClass’ of undefined
at pkp.min.js:317
(anonymous) @ pkp.min.js:317
setTimeout (async)
a.pkp.controllers.modal.ModalHandler.modalOpen @ pkp.min.js:317
ajaxErrorCallback @ build.js:1
n @ build.js:1
error @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
x @ jquery.min.js:4
b @ jquery.min.js:4
XMLHttpRequest.send (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
get @ build.js:1
n @ build.js:1
(anonymous) @ build.js:1
j @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
K @ jquery.min.js:2
3pkp.min.js:317 Uncaught TypeError: Cannot read property ‘focus’ of undefined
at pkp.min.js:317

Any ideas?

Hi @mickbale,

Please check your PHP error log for details.

Best,
Amanda Stevens
Public Knowledge Project Team

Hi @astevens I get this error:
pkp.min.js:117 Uncaught Error: Constructor for object “$.pkp.controllers.tab.settings.managementSettings.UsersAndRolesTabHandler” not found!
at Function.a.pkp.classes.Helper.resolveObjectName (pkp.min.js:117)
at Function.a.pkp.classes.Helper.objectFactory (pkp.min.js:116)
at HTMLDivElement. (pkp.min.js:443)
at Function.each (jquery.min.js:2)
at n.fn.init.each (jquery.min.js:2)
at n.fn.init.a.fn.pkpHandler (pkp.min.js:443)
at HTMLDocument. (access:132)
at j (jquery.min.js:2)
at Object.fireWith [as resolveWith] (jquery.min.js:2)
at Function.ready (jquery.min.js:2)

I wouldn’t have removed anything, so I don’t know why it says it can’t find something. Any ideas?

After trying this edit (pkp/pkp-lib#2163 event router by NateWr · Pull Request #1299 · pkp/ojs · GitHub - which fixed my issue with Users and Roles) I now get this:

Uncaught TypeError: Cannot read property ‘trigger’ of undefined
at a.pkp.controllers.modal.ModalHandler.modalOpen (pkp.min.js:317)
at Le.ajaxErrorCallback (build.js:1)
at Le.n [as ajaxErrorCallback] (build.js:1)
at Object.error (build.js:1)
at j (jquery.min.js:2)
at Object.fireWith [as rejectWith] (jquery.min.js:2)
at x (jquery.min.js:4)
at XMLHttpRequest.b (jquery.min.js:4)

Hi @mickbale

After applying that fix did you clear your template cache ? If not, could you perform such action and check if error still remains?

In such case, please check your php error log in your webserver and message is output when you attempt load this option.

Regards,
Israel Cefrin
Public Knowledge Project Team

Would that be things that are in cache/t_cache?

Yes, but you can choose Administration menu item and click "Clear Template Cache " as well.

Regards,
Israel Cefrin
Public Knowledge Project Team

Ok - the folder didn’t have anything in it, but I cleared it through the UI anyway and nothing’s changed. Where can I access the error log?

Thanks for your help

Found the error log. I get these two types of errors:

ojs2: 404 Not Found (never used OJS 2)
and
Missing argument 1 for Issue::getCoverImage(), called in /var/www/html/cache/t_compile/848732f29c33e03602e7b02bd392634c9ec5c88b^%%E3^E34^E345B504%%indexJournal.tpl.php on line 289 and defined in /var/www/html/classes/issue/Issue.inc.php on line 360
This one is repeated for the alt text twice and the article cover image twice.

This error is related to a missing cover Image. But is your submission list still not visible?

Regards,
Israel Cefrin
Public Knowledge Project Team

I can see my assigned submissions, but the error modal still pops up first and the other three tabs won’t load anything - it just has the loading spinner. I can understand why the modal is popping up because of the JS errors, but I don’t know what’s causing that to begin with.

I assume I have to close the modal 3 times because there’s an error for each of the three lists that aren’t loading.

Could you please post a screenshot of what you are seeing?

Regards,
Israel Cefrin
Public Knowledge Project Team

image

image

image

Hi @mickbale

I can tell that your journal URL is
https://ijpds.org/

But you are attempting load resources from:
https://ijpds.org/index.php/ijpds

In somehow you remove /index.php/ijpds from your OJS running install. Please consider using it back or double check how this suffix was removed from your URL.

Regards,
Israel Cefrin
Public Knowledge Project Team

Ah of course, that makes sense. How do I stop it from trying to load resources through that path? My config file is set up like this:

base_url[index] = https://ijpds.org/index
base_url[ijpds] = https://ijpds.org

Would that need to change?

Hi @mickbale

If you want use a base_url without /index.php you need set restful_urls = On and adjust your Apache .htaccess file to reflect such change and handling with that (what I presume you already did).

Please, double check Apache is redirecting request to right path either.

See here some more infos about it:

Regards,
Israel Cefrin
Public Knowledge Project Team

Yeah restful urls are on. This is the redirect we’ve set up:

RewriteEngine on

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^/index/(.*)$ /index.php/index/$1 [L]

    RewriteRule "^\/$" "/index.php/ijpds/" [PT]
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    # Rewrite non-file, non-directory URLs to OJS's index.php
    RewriteRule ^(.*)$ /index.php/ijpds/$1 [QSA,L]