My site doesn't work well

Website URL: (http://acervodigitalfatec.infinityfreeapp.com/login.php)

The PHP part of my code isn’t working. It’s should do a login check, but when the code reaches this part, a white screen appears. The same thing happens with the registration page page (Cadastrar).

Sorry for the bad english, I’m brazilian.

Welcome!

Since you see a white screen, you probably have an error 500 which is when your PHP code crashes:

8 Likes

Thanks! I follow the instructions and it came back:

Fatal error: Uncaught mysqli_sql_exception: No such file or directory in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php:8 Stack trace: #0 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php(8): mysqli->__construct(‘Localhost’, ‘root’, Object(SensitiveParameterValue), ‘cadastro_acervo’) #1 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/testeLogin.php(8): include_once(‘/home/vol18_2/i…’) #2 {main} thrown in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php on line 8

How can I fix it?

You still use “localhost” as your server and “root” as your username. Go to the Client Area, copy the MySQL server and the username, and change your code.

6 Likes

Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘if0_37633528’@‘192.168.0.48’ (using password: NO) in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php:8 Stack trace: #0 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php(8): mysqli->__construct(‘sql300.infinity…’, ‘if0_37633528’, Object(SensitiveParameterValue), ‘if0_37633528_us…’) #1 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/testeLogin.php(8): include_once(‘/home/vol18_2/i…’) #2 {main} thrown in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php on line 8

I think I’m forgetting something

Did you also copy and change the password in your code, or did you leave it blank? Because if it was an incorrect password it should say “using password: YES”. Check your code again.

7 Likes

I put my password, but nothing has changed

Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘if0_37633528’@‘192.168.0.48’ (using password: NO) in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php:8 Stack trace: #0 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php(8): mysqli->__construct(‘sql300.infinity…’, ‘if0_37633528’, Object(SensitiveParameterValue), ‘if0_37633528_us…’) #1 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/testeLogin.php(8): include_once(‘/home/vol18_2/i…’) #2 {main} thrown in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php on line 8

Did you make sure the variable that contains the password is updated properly on your variable that initialises an object of type mysqli as well, also checking line 8?

6 Likes

image

I disable Auto-Save and tried save manually, and this appears

You might also need to close the File Manager tab, reopen the File Manager and go to the file you were modifying earlier if it doesn’t work first try because it disconnected before.

4 Likes

The password worked, but the error stil here

Fatal error: Uncaught mysqli_sql_exception: Access denied for user ‘if0_37633528’@‘192.168.0.48’ (using password: YES) in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php:8 Stack trace: #0 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php(8): mysqli->__construct(‘sql300.infinity…’, ‘if0_37633528’, Object(SensitiveParameterValue), ‘if0_37633528_us…’) #1 /home/vol18_2/infinityfree.com/if0_37633528/htdocs/testeLogin.php(8): include_once(‘/home/vol18_2/i…’) #2 {main} thrown in /home/vol18_2/infinityfree.com/if0_37633528/htdocs/config.php on line 8

Did you make sure you used your hosting account password as your database password and not the Client Area password, as those two passwords are different? If you used the Client Area password here are the steps to get the hosting account password:

Also, make sure you don’t have any spaces or any other invisible character before or after the password.

7 Likes

It worked! :star_struck: , thank you @JxstErg1 and @YT_Xaos . Sorry for the trouble and the bad english.

1 Like

So, after the previous problem, I now have another one: A multiple database entry. Basically, when I make a registration, 4 identically registers are made.

http://acervodigitalfatec.infinityfreeapp.com/cadastro.php

Please share your PHP code and hide your password.

Also, Google has flagged your website as abusive

5 Likes

The forum system isn’t allow me post more than 2 links or make file upload :frowning:

I don’t understand how I remove the abusive Google’s flag

Copy the code into a code block by surrounding it by ~~~

Read the article I shared for more information about the warning

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.