Skip to content
This repository has been archived by the owner on May 1, 2022. It is now read-only.

SQLSTATE[HY000] [2002] No such file or directory #233

Open
sin9yt opened this issue Sep 29, 2016 · 4 comments
Open

SQLSTATE[HY000] [2002] No such file or directory #233

sin9yt opened this issue Sep 29, 2016 · 4 comments

Comments

@sin9yt
Copy link

sin9yt commented Sep 29, 2016

Error accessing the hackedmic site after installing

It shows me this error : SQLSTATE[HY000] [2002] No such file or directory

I tried accessing using 127.0.0.1 but it shows the same error

@northdpole
Copy link
Collaborator

Some questions to help debug this issue:
Does the hackademic directory have a config.inc.php file?
Otherwise what's in your apache error log?
There werent's any errors during installation?
Can you please check if your database contains the tables:

  • challenges
  • users
  • classes
  • articles
  • challenge_attempts
  • class_challenges
  • class_memberships
  • scoring_rule
  • user_has_challenge_token
  • user_score

@sin9yt
Copy link
Author

sin9yt commented Sep 30, 2016

The hackademic directory does contain config.inc.php file.

The error log contains the following.

[Fri Sep 30 17:17:37.747726 2016] [mpm_prefork:notice] [pid 3088] AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Sep 30 17:17:37.747746 2016] [core:notice] [pid 3088] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 30 23:36:53.143721 2016] [:error] [pid 4471] [client 127.0.0.1:51058] PHP Fatal error: Call to a member function setAttribute() on null in /var/www/html/hackademic/model/common/class.HackademicDB.php on line 48

There were no errors during installation not during database creation.

@northdpole
Copy link
Collaborator

seems like a bug, good catch!
which branch are you installing so i can fix it?

On 30/09/16 20:08, Sindhoor Tilak wrote:

The hackademic directory does contain config.inc.php file.

The error log contains the following.

[Fri Sep 30 17:17:37.747726 2016] [mpm_prefork:notice] [pid 3088]
AH00163: Apache/2.4.18 (Ubuntu) configured -- resuming normal operations
[Fri Sep 30 17:17:37.747746 2016] [core:notice] [pid 3088] AH00094:
Command line: '/usr/sbin/apache2'
[Fri Sep 30 23:36:53.143721 2016] [:error] [pid 4471] [client
127.0.0.1:51058] PHP Fatal error: Call to a member function
setAttribute() on null in
/var/www/html/hackademic/model/common/class.HackademicDB.php on line 48

There were no errors during installation not during database creation.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#233 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABgonkOF7hexzIOL7biXnfkT10zAwPbjks5qvVAlgaJpZM4KKNMJ.

@sin9yt
Copy link
Author

sin9yt commented Oct 3, 2016

next branch.

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

No branches or pull requests

2 participants