judsonmitchell / ClinicCases

ClinicCases is a web-based case management system designed specifically for law school clinics
http://www.cliniccases.com
Other
55 stars 62 forks source link

broken install #13

Open test2a opened 3 years ago

test2a commented 3 years ago

hi.. i just tried to install CC on a webhost but it crashes, many pages refuse to load and multiple times the pages say ``

the webhost is running on php 7.4 so my assumption is that is where the problem lies, old code on new php.

i can give you the url as well as the hosting credentials.

cases tab shows this error in console https://cases.ferdous.in/lib/php/data/cases_load.php?_=1634789913353 `Uncaught TypeError: data is null jQuery 12 _fnGetObjectDataFn _fnInitialise success handleSuccess onreadystatechange ajax fnServerData _fnInitialise dataTable each each dataTable success Cases.js:33 jQuery 3

Cases.js:23 jQuery 9 jquery.dataTables.js:6770:6 ` users tab shows but new user button says the following error `Uncaught Invalid JSON:
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/caseferd/domains/cases.website.website/public_html/lib/php/users/new_user.php on line 40
{"id":"9"} jquery-1.4.4.min.js:31:217 ` same for boards add new post `Uncaught TypeError: this._element is undefined FileUploader fileuploader.js:527 Board.js:26 jQuery 4 Board.js:18 jQuery 5 Board.js:12 jQuery 9 fileuploader.js:527:5 `
test2a commented 3 years ago

@ninahorne hey. you pushed an update recently, maybe you have some insights?

ninahorne commented 3 years ago

Hi. I actually updated the version 8 branch which is not ready for production. You should be using the master branch for your install. Is that what you’re doing?

test2a commented 3 years ago

@ninahorne oh yes. i am using the master branch and even my own fork that solved some problems when installing locally on a raspberry pi. this is different. https://github.com/test2a/ClinicCases i have now tried to do clean installs on my own fork as well as master branch but everytime the same thing happens

test2a commented 3 years ago

this fork solves two issues because of old code and i would suggest implementing them in the master including this https://github.com/judsonmitchell/ClinicCases/issues/9#issuecomment-845665719

but my current installation on a webhost is failing regardless

test2a commented 3 years ago

@ninahorne are you up for some feature requests or you are just doing pre decided updates? I would really like to suggest few things

ninahorne commented 3 years ago

@test2a At the moment, I'm working on pre-defined UI/UX updates. As far as new features, I'll have to leave that up to @judsonmitchell to decide if/when to prioritize those.

test2a commented 3 years ago

@ninahorne that answers my questions. thanks. do you have an actual instance working because as i said earlier, i have been unable to get it working on a fresh server so i would have liked to run it and give you ux bugs and all

judsonmitchell commented 3 years ago

@test2a , I'm not quite sure what errors you are having. As I understand it, the issues you reported above are from the CC 8 pre-alpha branch. The latest version is 7.3.3. If you are having install issues with that version, please let us see the relevant errors from the server logs.

Please feel free to request features on Github and we will see what we can do.

test2a commented 3 years ago

@judsonmitchell thanks for replying. can you give me your email address. i would like to give you my setup url, login credentials as well as server credentials and also logs

test2a commented 3 years ago

OK. Good news. I did a clean wipe and set php to 5.3. Then installed it and then manually set the strict mysql. I did that and the software just works.

So, my question now is, can we make it compatible with more newer php versions? I hope V8 would do that.

judsonmitchell commented 2 years ago

Glad to hear it. I am unaware of any backward compatibility problems with PHP. I have an install of ClinicCases (v 7.3.3) running fine on PHP 8. If you encounter any specific PHP errors, please let us know and we'll fix it in 8.

test2a commented 2 years ago

Cookie “PHPSESSID” will be soon treated as cross-site cookie against “https://cases.website/lib/php/utilities/messages_check.php” because the scheme does not match. messages_check.php Cookie “cc_user” will be soon treated as cross-site cookie against “https://cases.website/lib/php/utilities/messages_check.php” because the scheme does not match. messages_check.php

DataTables warning: JSON data from server could not be parsed. This is caused by a JSON formatting error.

some cookies are misusing the recommended “SameSite“ attribute 2 Cookie “SpryMedia_DataTables_table_cases_index.php” will be soon rejected because it has the “SameSite” attribute set to “None” or an invalid value, without the “secure” attribute. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite jquery.dataTables.js:6403:3

this is on php 8. there are datatables warning popup, the red cannot connect to server notificaitons.

had to go back to 5.3 because it kept failing. i will try to investigate although the first two errors are same in 5.3 so i don't know about this but on 8, there are certainly more connection errors and that datatables error