thexerteproject / xerteonlinetoolkits

Xerte Online Toolkits
www.xerte.org.uk
Apache License 2.0
63 stars 61 forks source link

Import pages shows please login (in develop branch) #953

Open obgeneralao opened 4 years ago

obgeneralao commented 4 years ago

Hi,

Every time I try import pages, it asks me to login and there is nothing to login

torinfo commented 4 years ago

Which authentication method are you using?

obgeneralao commented 4 years ago

Hi, I used Db.

ronm123 commented 7 months ago

@torinfo @FayCross as discussed this morning I get this on one of my installs which is 3.12.27 but not on other installations on the same server and same domain. So all should be identical code base as upgraded at the same time so I can't spot where the difference lies.

ronm123 commented 7 months ago

@torinfo @FayCross have just been exploring this further but still can't spot where the problem lies. I eliminated a few things e.g. not browser specific not user specific not authentication method specific e.g. I switched from db to static and still the same issue not project specific e.g. happens in all projects and all project types nothing useful in the debug log I downloaded a copy of the install directory and database and set that up via xampp and in that copy import pages works without causing the login issue so same code and same database but xampp rather than the online server and import pages works however on the same server most other installs import pages works too so wondered if it was php version related especially as a recent clean install of 3.12.27 on the same subdomain does have the same issue But I tried different php versions and both those install still have the same issue I don't have proper access to the php error log and as the local copy doesn't have the same problem I can't debug locally. @torinfo does any of this help identify where the cause might be? Would be good to resolve this as I need to import pages to a live project on this install but also to progress with our 'closing issues challenge!' ;-)

ronm123 commented 7 months ago

@torinfo this seems like something is causing a session restart or something like that but any ideas where? I've been testing with 3 separate Xerte installations, and actually more, but all 3 of these are on the same subdomain so subject to the same PHP version and settings etc /Install1 long time installation upgraded to 3.12.27 uses db authentication results in please login error after selecting import pages /Install2 recent clean install of 3.12.27 uses db authentication results in please login error after selecting import pages /Install3 long time installation upgraded to 3.12.27 uses moodle authentication import pages works Changing the authentication method on Install1 and/or Install2 doesn't change anything e.g. still get the please login error Don't understand given the above why /Install3 works but the other two don't. Any ideas what to check next and where to look?