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

How to setup? #9

Closed
OoLunar opened this issue May 3, 2019 · 6 comments
Closed

How to setup? #9

OoLunar opened this issue May 3, 2019 · 6 comments

Comments

@OoLunar
Copy link

OoLunar commented May 3, 2019

Hey!
I probably missed the instructions somewhere, or I've messed something up. Exactly how do I install this? It looks incredible (sounds like it too), but I have no clue how to get this working. With no errors in the error console, and nothing to see for a blind eye, I'm completely lost. I did notice that you have us using the "test" database on MySQL, but I accidentally deleted it, and I have no knowledge with MySQL. Can you give me step-by-step instructions on how to get everything up and working please?

@mihai-vlc
Copy link
Owner

The installation happens automatically if you pass the auto_install flag (default true).
https://github.com/ionutvmi/master-comments-system/blob/master/comments.class.php#L65

Before calling this code you need to ensure that the database exists. It doesn't have to be named test.

@OoLunar
Copy link
Author

OoLunar commented May 4, 2019

image

Alright. The flag is enabled, I've cleared my root password, and I haven't touched any other file. There's no error in the Chrome Dev Tools, and yet my comment section is still playing hide and seek with me. Any other clues of what to do?
Edit: Using MySQL version 5.7, if that's a problem.

@mihai-vlc
Copy link
Owner

Try to debug it and see if it gets to the install method.
You should validate that the DB credentials are correct and the permissions for your mysql user.

@OoLunar
Copy link
Author

OoLunar commented May 4, 2019

I have given ALL permissions to my user, and I am 100% positive that my DB cred are correct. Just found the error:
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in <path>/media/music/requests/comments.class.php:54 Stack trace: #0 <path>/media/music/requests/index.php(81): Comments_System->__construct(Array) #1 {main} thrown in <path>media/music/requests/comments.class.php on line 54

@OoLunar
Copy link
Author

OoLunar commented May 4, 2019

Just installed php7.0-mysql, still having the same error

@OoLunar
Copy link
Author

OoLunar commented May 4, 2019

GOT IT! I had to download the php extension of mysql, then enable it in my php.ini Thanks for all the support!

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

2 participants