Jump to content

Recommended Posts

Posted (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 Error

The 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 by ryugold
Posted

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.
Posted (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 by ryugold
Posted

At this point, you won't be getting much response. I would recommend using newer software as I think that your software is outdated.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...