mysqli object is not fully initialized Topic is solved

Need help upgrading your Joomla! website or converting to Joomla! 4.x?

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
Masterpiece01
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Thu Feb 23, 2023 3:37 pm

mysqli object is not fully initialized

Post by Masterpiece01 » Wed Mar 01, 2023 6:40 pm

Screenshot_20230301-193111_Chrome.jpg
I was upgrading my joomla 3x version to
version 4.1 and I was using my phone to upgrade the version but the installation didn't finish and it gave this error

Please what do I do now?

mysqli object is not fully initialized

Exceptions 2Stack Traces 2

Error

in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php (line 388)

in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/vendor/joomla/database/src/Mysqli/MysqliDriver.php -> real_escape_string (line 388)

in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/vendor/joomla/database/src/DatabaseDriver.php -> escape (line 1550)

DatabaseDriver->quote('template')in /customers/4/f/b/aifl-institute.com/httpd.www/administrator/components/com_templates/src/Model/StyleModel.php (line 713)

            ->select($db->quoteName(['s.template', 's.params', 's.inheritable', 's.parent']))            ->from($db->quoteName('#__template_styles', 's'))            ->join(                'LEFT',                $db->quoteName('#__extensions', 'e'),                $db->quoteName('e.type') . ' = ' . $db->quote('template')                    . ' AND ' . $db->quoteName('e.element') . ' = ' . $db->quoteName('s.template')                    . ' AND ' . $db->quoteName('e.client_id') . ' = ' . $db->quoteName('s.client_id')            )            ->where(                [

StyleModel->getAdminTemplate(0)in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/src/Application/AdministratorApplication.php (line 230)

AdministratorApplication->getTemplate(true)in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/src/Error/Renderer/HtmlRenderer.php (line 50)

HtmlRenderer->render(object(ConnectionFailureException))in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/src/Exception/ExceptionHandler.php (line 121)

ExceptionHandler::render(object(ConnectionFailureException))in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/src/Exception/ExceptionHandler.php (line 72)

ExceptionHandler::handleException(object(ConnectionFailureException))in /customers/4/f/b/aifl-institute.com/httpd.www/libraries/src/Application/CMSApplication.php (line 323)

CMSApplication->execute()in /customers/4/f/b/aifl-institute.com/httpd.www/administrator/includes/app.php (line 61)

require_once('/customers/4/f/b/aifl-institute.com/httpd.www/administrator/includes/app.php')in /customers/4/f/b/aifl-institute.com/httpd.www/administrator/index.php (line 32)

Joomla\Database\Exception\ConnectionFailureException

Could not connect to database: Access denied for user 'aifl_institute_com'@'10.27.49.9' (using password: YES)
You do not have the required permissions to view the files attached to this post.

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: mysqli object is not fully initialized

Post by sozzled » Wed Mar 01, 2023 7:56 pm

Image

erick-b
Joomla! Explorer
Joomla! Explorer
Posts: 285
Joined: Tue Feb 17, 2015 10:25 am

Re: mysqli object is not fully initialized

Post by erick-b » Wed Jul 19, 2023 11:58 am

I got exactly the same error with Joomla 4.3.3 on MAMP localhost

in configuration.php , you have to change the variable $host it fixes the problem

ForTheCinema34
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Sep 19, 2023 8:29 pm

Re: mysqli object is not fully initialized

Post by ForTheCinema34 » Tue Sep 19, 2023 8:35 pm

erick-b wrote:
Wed Jul 19, 2023 11:58 am
I got exactly the same error with Joomla 4.3.3 on MAMP localhost

in configuration.php , you have to change the variable $host it fixes the problem
Hi Erik, I've the same error.
Could you please inform what should I change the variable $host with?
Thank you very much

erick-b
Joomla! Explorer
Joomla! Explorer
Posts: 285
Joined: Tue Feb 17, 2015 10:25 am

Re: mysqli object is not fully initialized

Post by erick-b » Wed Sep 20, 2023 4:09 am

public $host = 'localhost';

ForTheCinema34
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Sep 19, 2023 8:29 pm

Re: mysqli object is not fully initialized

Post by ForTheCinema34 » Sat Sep 23, 2023 11:56 am

erick-b wrote:
Wed Sep 20, 2023 4:09 am
public $host = 'localhost';
Hi Erik,
thank you for the information, but in Configuration.php the parameter is already set like "Localhost".

I hope to find another solution.

User avatar
toivo
Joomla! Master
Joomla! Master
Posts: 16905
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: mysqli object is not fully initialized

Post by toivo » Sat Sep 23, 2023 2:02 pm

@ForTheCinema34, it is not a good idea to post to other topics, which will confuse the issues and make understanding the circumstances more difficult. That is why the forum rules do not allow cross posting.

The Original Poster (OP) of this topic decided to restore the Joomla 3 version. The website is up and running and I have now marked also this topic as resolved.
Toivo Talikka, Global Moderator


Post Reply

Return to “Migrating and Upgrading to Joomla! 4.x”