Problem with logging in to administration panel after upgrade from 3.2.1-4 to 3.3.0-15

Dear All,

I have upgraded OJS from 3.2.1-4 to 3.3.0-15. All looks fine except for the administration panel - when I try to log in as an administrator it is instantly loading and nothing happens.

I already deleted all the cache directly on the server. I have also used 3 different web browsers and cleaned the cookies.

I have also checked the DevTool and see this after clicking the Administration button:

admin:1 GET https://rocznikbezpieczenstwa.pl/ojs_test/index.php/index/admin 500
admin:20 Uncaught SyntaxError: Unexpected token ‘,’ (at admin:20:29)
jquery.min.js?v=3.3.0.15:2 Uncaught Error: Constructor for object “$.pkp.controllers.PageHandler” not found!
at a.pkp.classes.Helper.resolveObjectName (pkp.min.js?v=3.3.0.15:90:210)
at a.pkp.classes.Helper.objectFactory (pkp.min.js?v=3.3.0.15:89:81)
at HTMLDivElement. (pkp.min.js?v=3.3.0.15:392:833)
at Function.each (jquery.min.js?v=3.3.0.15:2:2976)
at S.fn.init.each (jquery.min.js?v=3.3.0.15:2:1454)
at a.fn.pkpHandler (pkp.min.js?v=3.3.0.15:392:774)
at HTMLDocument. (admin:88:34)
at e (jquery.min.js?v=3.3.0.15:2:30005)
at t (jquery.min.js?v=3.3.0.15:2:30307)
a.pkp.classes.Helper.resolveObjectName @ pkp.min.js?v=3.3.0.15:90
a.pkp.classes.Helper.objectFactory @ pkp.min.js?v=3.3.0.15:89
(anonymous) @ pkp.min.js?v=3.3.0.15:392
each @ jquery.min.js?v=3.3.0.15:2
each @ jquery.min.js?v=3.3.0.15:2
a.fn.pkpHandler @ pkp.min.js?v=3.3.0.15:392
(anonymous) @ admin:88
e @ jquery.min.js?v=3.3.0.15:2
t @ jquery.min.js?v=3.3.0.15:2
setTimeout (async)
S.readyException @ jquery.min.js?v=3.3.0.15:2
(anonymous) @ jquery.min.js?v=3.3.0.15:2
e @ jquery.min.js?v=3.3.0.15:2
t @ jquery.min.js?v=3.3.0.15:2
setTimeout (async)
(anonymous) @ jquery.min.js?v=3.3.0.15:2
c @ jquery.min.js?v=3.3.0.15:2
fireWith @ jquery.min.js?v=3.3.0.15:2
fire @ jquery.min.js?v=3.3.0.15:2
c @ jquery.min.js?v=3.3.0.15:2
fireWith @ jquery.min.js?v=3.3.0.15:2
t @ jquery.min.js?v=3.3.0.15:2
setTimeout (async)
(anonymous) @ jquery.min.js?v=3.3.0.15:2
c @ jquery.min.js?v=3.3.0.15:2
fireWith @ jquery.min.js?v=3.3.0.15:2
fire @ jquery.min.js?v=3.3.0.15:2
c @ jquery.min.js?v=3.3.0.15:2
fireWith @ jquery.min.js?v=3.3.0.15:2
ready @ jquery.min.js?v=3.3.0.15:2
B @ jquery.min.js?v=3.3.0.15:2
jquery.min.js?v=3.3.0.15:2 GET https://rocznikbezpieczenstwa.pl/ojs_test/index.php/index/$$$call$$$/page/page/user-nav-backend 404

Any idea what went wrong?
All other components of the OJS work fine.

Best regards
Dorota

Hi @doridek
What version of PHP are you using?

Hi @dagosalas,
My PHP is 7.3.33
Best regards
Dorota

Hi,
did any of other users have the same problem? I also returned to 3.2.1-4 version and tried to upgrade to 3.3.0-14 and have the same issue.

I also noticed that in the previous version the administration panel was available under this kind of URL: ojs/index.php/index/admin/index
but in the 3.3.0-15 it is trying to get to: ojs_test/index.php**/index/admin**
is that the correct address?

I have checked the access logs:
185.122.144.166 - - [31/Jul/2023:23:55:12 +0200] “GET /ojs_test/index.php/index/admin HTTP/2” 500 2821 “https://insted-tce.pl/ojs_test/index.php/tce/submissions” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36”
185.122.144.166 - - [31/Jul/2023:23:55:13 +0200] “GET /ojs_test/index.php/index/$$$call$$$/page/page/user-nav-backend HTTP/2” 404 26 “https://insted-tce.pl/ojs_test/index.php/index/admin” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36”

end error logs:
2023-07-31 23:55:13.257104 [NOTICE] [291956] [T0] [185.122.144.166:61420:HTTP2-23#APVH_www.insted-tce.pl:443] [STDERR] ojs2: 404 Not Found\n

I have 2 journals to upgrade and in both cases I have the same problem.

Best regards
Dorota

I have mamaged the problem.
It appears that the probelm eas a directory tamplates/admin that was there after the 3.1.2.1 version of ojs.
When I changed the name of the file tamplates/admin/index.html I could see the administration panel but still in some “old” interface. The problem disappeared when I have changed the name of the directory ‘admin’.

Do you think that I can delete this folder?

Best regards
Dorota

1 Like