Jump to content

Problem with code in php! It works on another server!


Recommended Posts

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
Link to comment
Share on other sites

http://rpgmakergold2003.heliohost.org/ - This needs to be fixed first.


Here's the code for classe-db.php:


		class DB {
			public function __construct(){
				$mysqli = new mysqli('localhost', 'ryugold', '[redacted]', 'ryugold_cms');
					printf("Conexão falhou %s\n", $mysqli->connect_error);
				$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.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By infinit5

      i'm using Johnny Heliohost remote mysql and codeigniter 4 for development. After a few requests from the frontend, I'm seeing this error on mysql that user has more than max_user_connections (code 1203). While connecting db from backend, codeigniter seems to automatically close db connections. Even when I'm checking through workbench show processlist shows only 1 sleeping process. But then, suddenly max_user_connections exceeds the limit for the same request which was working a moment before.

      So, my asks are jotted below:
      - Can the mysql wait_timeout parameter be redued to 180 secs?
      - From mysql documentation it seems the max_user_connections are set to 150 and another for super user, is there any additional limit from heliohost's end?

      If there's any better way of dealing with this problem I'm all ears.

    • By zwerggwi
      Hey everybody,
      I'm quite new to this. I signed up yesterday to Johnny and started to send some data to a MySQL database. That worked quite good but since 3.5 hours the server seems not accessible and in the cpanel I get a message that the server is down.
      The MySQL server is currently offline.
      Error while connecting to MySQL: (XID 8f868x) The system failed to connect to the “MySQL” database “mysql” because of an error: CR_CONNECTION_ERROR (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)) Error while connecting to MySQL: (XID 8f868x) The system failed to connect to the “MySQL” database “mysql” because of an error: CR_CONNECTION_ERROR (Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)) at /usr/local/cpanel/Cpanel/Mysql/Basic.pm line 391, <STDIN> line 1.  
      Is there something wrong in my application posting the data or is the server really down?
      I'm quite confused...
    • By bielsilvah
      I installed a php script on my site but this was not found so I can install this"GD functions are needed to process images, please ensure your PHP install is compiled with GD enabled.Freetype (in GD) is required to use ttf fonts within images. " 
      Any solution?
      email: bielsilva1cba@gmail.com
    • By abdoudzg
      Hello can you please enable intl extension on php 7.3 ?
  • Create New...