ryugold Posted September 17, 2019 Posted September 17, 2019 (edited) Always I try to access my login.php shows the message: the path is: http://rpgmakergold2003.heliohost.org/php/ckeditor/samples/login.php Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator at webmaster@rpgmakergold2003.heliohost.org to inform them of the time this error occurred, and the actions you performed just before this error.More information about this error may be available in the server error log.Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. please help me with this! Edited September 17, 2019 by ryugold
Flaze Posted September 17, 2019 Posted September 17, 2019 http://rpgmakergold2003.heliohost.org/ - This needs to be fixed first. Here's the code for classe-db.php: <?php if(!class_exists('DB')){ class DB { public function __construct(){ $mysqli = new mysqli('localhost', 'ryugold', '[redacted]', 'ryugold_cms'); if($mysqli->connect_errno){ printf("Conexão falhou %s\n", $mysqli->connect_error); exit(); } $this->connection = $mysqli; } public function insert($query){ $result = $this->connection->query($query); return $result; } public function select($query){ $result = $this->connection->query($query); while($obj = $result->fetch_object()){ // This is what initially caused the error $results[] = $obj; } return $results; } } } $db = new DB; ?>I tried to help this person through Discord but it turned out that I was too rarted and here we are.
ryugold Posted September 17, 2019 Author Posted September 17, 2019 (edited) the login system use another database and don't use this file(classe-db) to connect to database!it was fixed! this error appears because there's no news posted in database! it seaches for the news, if it does not find, return this error! Edited September 17, 2019 by ryugold
Flaze Posted September 18, 2019 Posted September 18, 2019 No. This belongs to Website Management and Coding.
Flaze Posted September 19, 2019 Posted September 19, 2019 At this point, you won't be getting much response. I would recommend using newer software as I think that your software is outdated.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now