Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Install Ver 2.2.4 Problem #189

Open
banderson407 opened this issue Dec 13, 2020 · 11 comments
Open

New Install Ver 2.2.4 Problem #189

banderson407 opened this issue Dec 13, 2020 · 11 comments

Comments

@banderson407
Copy link

Trying to do a fresh install of version 2.2.4 but can't get past the point where it keeps telling me the database is not in UTF8 (see attachement)
But the database is in the correct format (see attachement).

Any ideas how to get past this point?

Brad
Screen Shot 2020-12-12 at 8 01 47 PM
Screen Shot 2020-12-12 at 8 05 09 PM

@gregrgay
Copy link
Collaborator

Perhaps its the connection that's not utf-8. Try running the provided query, if you have not already. and see https://dev.mysql.com/doc/refman/8.0/en/charset-connection.html

@banderson407
Copy link
Author

I had wondered about that.
This what I noticed when I was in PhpMyadmin

If that is the case, how would I change it?
connection

@gregrgay
Copy link
Collaborator

There's a few ways to do it, described at the link provided.

@banderson407
Copy link
Author

I can change it on PhpMyadmin but the change is only for that session.

We use a Grid server that is a shared server so sometimes we can't make some changes, I'll have to check with them.
Is this something new for the newer versions of Atutor, I don't remember it being an issue with the older ones or perhaps changes by my hosting company?

Is this current connection type ,if it can't be changed, going to cause problems going forward with my current installs?

Sorry to bother
Brad

@gregrgay
Copy link
Collaborator

Somethings probably changed on the server side.
Uncomment the utf-8 line(s) //$db->query("SET NAMES 'utf8'"); in:

//$db->query("SET NAMES 'utf8'");

@banderson407
Copy link
Author

Thanks Greg, I don't know how you keep it all straight in your head.
I'll try that this evening.

I tried one of the queries and it looks like because it's shared I might not be able to change it.
Hopefully this will get me around it and complete the install.

Probably have to look at changing my hosting plan to containers or dedicated pretty soon.

Thanks again
Brad
Screen Shot 2020-12-13 at 11 34 32 AM

@banderson407
Copy link
Author

Uncommented the two lines in the routine.
Lines 19 and 23 but still can't get past the error.
Double checked to make sure the database was still in the right format and it is.

Screen Shot 2020-12-13 at 4 06 37 PM

@gregrgay
Copy link
Collaborator

It's going to take some analysis to figure this out, which I'll have to leave to you. Start by using the debug() function to output variable values etc, after enabling debugging in the include/vitals.inc.php file with "define('AT_DEVEL', 1);" near the top of the file. (also be sure the php/mysql versions are compatible with the system requirements)

start here

/* Check if the database that existed is in UTF-8, if not, ask for retry */

@banderson407
Copy link
Author

Greg,
Thanks for a starting point.
Pretty sure the current versions are okay but let me know if you see an issue:
Php Ver. 7.3.11
MySql Ver. 5.6.32-78.0

Thanks
Brad

@banderson407
Copy link
Author

Greg,

Not sure if you are still active on this or not but worth a try.
We were attempting to move a copy of the production ATutor instance to another server.
I compressed and moved the code base and dumped the database and imported it but when I tried to access it just a blank screen...just hangs.
Figured I would try a fresh install of 2.2.4 and after putting in the database connection info and selecting 'next', same thing...blank screen and hangs.
Does this sound familiar to you?
Do you know a good place to start looking ?
We are running :
Ubuntu 22.04
Apache 2.4
PhP 7.3
MySql 5.6.51

Thanks in advance,
Brad

@atutor
Copy link
Owner

atutor commented Feb 7, 2023

Hey Brad, Sorry for the delayed reply, I'm not really paying much attention to ATutor these days. I'm not sure I can advise much beyond enabling debug in the include/vitals.inc.php file and doing some debugging. It been a few years since I've looked at ATutor, and I've not been keeping up on changes to PHP/Mysql etc. that might have an effect if there are new settings etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants