mysqli object is not fully initialized - Joomla
Posted by: seiya (---.as13285.net)
Date: September 10, 2024 10:39PM

Hello,

I am experiencing an issue after installing WAMP and trying to use Joomla on the localhost. I use awardspace as a hosting service. I have started a website and downloaded all the files from awardspace and placed them in www folder within the WAMP folder.
When clicking on the project I get

'mysqli object is not fully initialized'

    Error
    in C:\wamp64\www\datagrab.onlinewebshop.net\libraries\vendor\joomla\database\src\Mysqli\MysqliStatement.php (line 138)
        $this->connection   = $connection;        
        $this->query        = $query;        
        $query = $this->prepareParameterKeyMapping($query);        
        $this->statement  = $connection->prepare($query);        
        if (!$this->statement) {            throw new PrepareStatementFailureException($this->connection->error, $this->connection->errno);        }    }

and

    mysqli_sql_exception
    php_network_getaddresses: getaddrinfo for *****.runhosting.com failed: No such host is known.

    in C:\wamp64\www\datagrab.onlinewebshop.net\libraries\vendor\joomla\database\src\Mysqli\MysqliDriver.php (line 285)
               $this->options['ssl']['cipher']            );        }        
                // Attempt to connect to the server, use error suppression to silence warnings and allow us to throw an Exception separately.        
                $connected = @$this->connection->real_connect(            
                $this->options['host'],            
                $this->options['user'],            
                $this->options['password'],            null,            
                $this->options['port'],

I am not an expert in sql but seems like some connection error due to permission but no idea how to fix it.
I ll appreciate any help thank you

Options: ReplyQuote
Re: mysqli object is not fully initialized - Joomla
Posted by: Otomatic (Moderator)
Date: September 11, 2024 08:41AM

Hi,

Locally, Joomla (or any other CMS or WEB application) must be installed in a VirtualHost just as it is at awardspace.

The site name - ServerName - cannot be the same locally as it is at awardspace, so site configuration files must take this into account.

And the database username and password must be created in local MySQL.

Transferring a site between a hosting provider and a local site is more than just copying files.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.