Page 1 of 2

Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 10:00 pm
by ameem
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7 Stack trace: #0 /home/edengears/storage2/modification/system/library/db.php(35): DB\MySQLi->_construct('localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #1 /home/edengears/public_html/system/framework.php(80): DB->_construct('mysqli', 'localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #2 /home/edengears/public_html/system/startup.php(104): require_once('/home/edengears...') #3 /home/edengears/public_html/admin/index.php(19): start('admin') #4 {main} thrown in /home/edengears/public_html/system/library/db/mysqli.php on line 7

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 10:41 pm
by straightlight
Identified as 3306 in the logs but the current version seem to be about 3.3.0.3.

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 10:46 pm
by ameem
straightlight wrote:
Tue Aug 24, 2021 10:41 pm
OC version. Identified as 3306 in the logs but the current version is not provided.
Sorry, I forgot to mention that as I am so stressed with the problem.
It's OC: 3.0.3.3

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 10:50 pm
by straightlight
ameem wrote:
Tue Aug 24, 2021 10:46 pm
straightlight wrote:
Tue Aug 24, 2021 10:41 pm
OC version. Identified as 3306 in the logs but the current version is not provided.
Sorry, I forgot to mention that as I am so stressed with the problem.
It's OC: 3.0.3.3
Are you using any cron jobs on your domain right now? See this post about it: viewtopic.php?t=222219#p812365 .

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 11:07 pm
by Gergely
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7 Stack trace: #0 /home/edengears/storage2/modification/system/library/db.php(35): DB\MySQLi->_construct('localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #1 /home/edengears/public_html/system/framework.php(80): DB->_construct('mysqli', 'localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #2 /home/edengears/public_html/system/startup.php(104): require_once('/home/edengears...') #3 /home/edengears/public_html/admin/index.php(19): start('admin') #4 {main} thrown in /home/edengears/public_html/system/library/db/mysqli.php on line 7
Hi ameem,

The problem is caused by a modification you have installed. From your other posts I've gathered you're using Journal, this could be an issue, and you might need to get in touch with their support. You could also try to identify which modification is causing the issue. A potential route to debugging this could be as follows:
  1. Make a backup of your oc_modification table, then truncate it
  2. Make a backup of your modification folder (/home/edengears/storage2/modification) then empty it (perhaps rename the original and create an empty directory called 'modification' at the same route)
  3. Go to your admin dashboard and log in
  4. Go to System->Settings->Server and set Maintenance mode to 'Yes'
  5. Add your extensions and modifications back one by one to determine which is the one causing the issue, then get in touch with the developers
I know this sounds daunting, you can wait to get a second opinion on this if you want, as my post counters are not very high as of yet.

I hope this is helpful,
Gergely

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 11:08 pm
by straightlight
Gergely wrote:
Tue Aug 24, 2021 11:07 pm
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7 Stack trace: #0 /home/edengears/storage2/modification/system/library/db.php(35): DB\MySQLi->_construct('localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #1 /home/edengears/public_html/system/framework.php(80): DB->_construct('mysqli', 'localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #2 /home/edengears/public_html/system/startup.php(104): require_once('/home/edengears...') #3 /home/edengears/public_html/admin/index.php(19): start('admin') #4 {main} thrown in /home/edengears/public_html/system/library/db/mysqli.php on line 7
Hi ameem,

The problem is caused by a modification you have installed. From your other posts I've gathered you're using Journal, this could be an issue, and you might need to get in touch with their support. You could also try to identify which modification is causing the issue. A potential route to debugging this could be as follows:
  1. Make a backup of your oc_modification table, then truncate it
  2. Make a backup of your modification folder (/home/edengears/storage2/modification) then empty it (perhaps rename the original and create an empty directory called 'modification' at the same route)
  3. Go to your admin dashboard and log in
  4. Go to System->Settings->Server and set Maintenance mode to 'Yes'
  5. Add your extensions and modifications back one by one to determine which is the one causing the issue, then get in touch with the developers
I know this sounds daunting, you can wait to get a second opinion on this if you want, as my post counters are not very high as of yet.

I hope this is helpful,
Gergely
What other post?

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 11:12 pm
by Gergely
What other post?
OP's previous activity on the forums: viewtopic.php?f=125&t=221223&p=806525

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 11:39 pm
by ameem
straightlight wrote:
Tue Aug 24, 2021 10:50 pm
ameem wrote:
Tue Aug 24, 2021 10:46 pm
straightlight wrote:
Tue Aug 24, 2021 10:41 pm
OC version. Identified as 3306 in the logs but the current version is not provided.
Sorry, I forgot to mention that as I am so stressed with the problem.
It's OC: 3.0.3.3
Are you using any cron jobs on your domain right now? See this post about it: viewtopic.php?t=222219#p812365 .
No, and it is a simple Online Shopping Store. And my Website was smooth and was working perfectly, somedays before, Webhosters updated the server, but I get the following picture error, but it was temporary, as I used to update PHP from CPANEL, it used to get resolved. But today, I have got a very different error and it hasn't resolved yet like permanent :'( :'( :'(

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 11:54 pm
by ameem
Gergely wrote:
Tue Aug 24, 2021 11:07 pm
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7 Stack trace: #0 /home/edengears/storage2/modification/system/library/db.php(35): DB\MySQLi->_construct('localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #1 /home/edengears/public_html/system/framework.php(80): DB->_construct('mysqli', 'localhost', 'db_name', 'db_password', 'edengear_openca...', '3306') #2 /home/edengears/public_html/system/startup.php(104): require_once('/home/edengears...') #3 /home/edengears/public_html/admin/index.php(19): start('admin') #4 {main} thrown in /home/edengears/public_html/system/library/db/mysqli.php on line 7
Hi ameem,

The problem is caused by a modification you have installed. From your other posts I've gathered you're using Journal, this could be an issue, and you might need to get in touch with their support. You could also try to identify which modification is causing the issue. A potential route to debugging this could be as follows:
  1. Make a backup of your oc_modification table, then truncate it
  2. Make a backup of your modification folder (/home/edengears/storage2/modification) then empty it (perhaps rename the original and create an empty directory called 'modification' at the same route)
  3. Go to your admin dashboard and log in
  4. Go to System->Settings->Server and set Maintenance mode to 'Yes'
  5. Add your extensions and modifications back one by one to determine which is the one causing the issue, then get in touch with the developers
I know this sounds daunting, you can wait to get a second opinion on this if you want, as my post counters are not very high as of yet.

I hope this is helpful,
Gergely
Hi GERGELY,
I am very thankful to you that you gave me some of your time to solve my problem.
Some important points:
1) My other posts are very old ones when I was creating my Website.
2) And for the past year, my website was working smoothly till 13 of August 2021, when Web-Hosters updated the server. Some days ago, it was some SCSS.ini problem, which was used to resolve by updating the PHP version from CPANEL. but today I got a very different error and has stuck like permanent :'( :'( :'(
3) Not a single modification took place from the year.
Hope, I have cleared your doubts.

Re: Uncaught Error: Class 'mysqli' not found

Posted: Tue Aug 24, 2021 11:55 pm
by straightlight
ameem wrote:
Tue Aug 24, 2021 11:39 pm
straightlight wrote:
Tue Aug 24, 2021 10:50 pm
ameem wrote:
Tue Aug 24, 2021 10:46 pm

Sorry, I forgot to mention that as I am so stressed with the problem.
It's OC: 3.0.3.3
Are you using any cron jobs on your domain right now? See this post about it: viewtopic.php?t=222219#p812365 .
No, and it is a simple Online Shopping Store. And my Website was smooth and was working perfectly, somedays before, Webhosters updated the server, but I get the following picture error, but it was temporary, as I used to update PHP from CPANEL, it used to get resolved. But today, I have got a very different error and it hasn't resolved yet like permanent :'( :'( :'(
Use an external editor such as Notepad++ (free) with UTF-8 without BOM encoding to update your PHP, JS and TWIG files by FTP. Do not use online editors. Your host may have done upgrade changes to the server where no effects would be taken on them but only reflected on their clients. For every changes, clear your OC caches from the admin dashboard and from your extensions modification page.

Alternatively, you could restore your backup from your previous point prior to your last files modification.

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 12:10 am
by ADD Creative
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7
Your PHP doesn't have the mysqli extension enabled. You may be able to enable it in your hosting control panel, if not ask your host.

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 12:32 am
by ameem
straightlight wrote:
Tue Aug 24, 2021 11:55 pm
ameem wrote:
Tue Aug 24, 2021 11:39 pm
straightlight wrote:
Tue Aug 24, 2021 10:50 pm


Are you using any cron jobs on your domain right now? See this post about it: viewtopic.php?t=222219#p812365 .
No, and it is a simple Online Shopping Store. And my Website was smooth and was working perfectly, somedays before, Webhosters updated the server, but I get the following picture error, but it was temporary, as I used to update PHP from CPANEL, it used to get resolved. But today, I have got a very different error and it hasn't resolved yet like permanent :'( :'( :'(
Use an external editor such as Notepad++ (free) with UTF-8 without BOM encoding to update your PHP, JS and TWIG files by FTP. Do not use online editors. Your host may have done upgrade changes to the server where no effects would be taken on them but only reflected on their clients. For every changes, clear your OC caches from the admin dashboard and from your extensions modification page.

Alternatively, you could restore your backup from your previous point prior to your last files modification.
OPENCART Admin panel has the same error. Neither frontend nor backend.

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 12:32 am
by ameem
ameem wrote:
Wed Aug 25, 2021 12:32 am
straightlight wrote:
Tue Aug 24, 2021 11:55 pm
ameem wrote:
Tue Aug 24, 2021 11:39 pm

No, and it is a simple Online Shopping Store. And my Website was smooth and was working perfectly, somedays before, Webhosters updated the server, but I get the following picture error, but it was temporary, as I used to update PHP from CPANEL, it used to get resolved. But today, I have got a very different error and it hasn't resolved yet like permanent :'( :'( :'(
Use an external editor such as Notepad++ (free) with UTF-8 without BOM encoding to update your PHP, JS and TWIG files by FTP. Do not use online editors. Your host may have done upgrade changes to the server where no effects would be taken on them but only reflected on their clients. For every changes, clear your OC caches from the admin dashboard and from your extensions modification page.

Alternatively, you could restore your backup from your previous point prior to your last files modification.
OPENCART Admin panel has the same error. Nothing is opening, neither frontend nor backend.

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 12:49 am
by straightlight

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 2:09 am
by ameem
ADD Creative wrote:
Wed Aug 25, 2021 12:10 am
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7
Your PHP doesn't have the mysqli extension enabled. You may be able to enable it in your hosting control panel, if not ask your host.
Okay. I have asked my Hosting provider, let what he say, whether it has to be enabled or it is already enabled... :'(
Appreciate that man...

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 4:09 am
by ameem
ADD Creative wrote:
Wed Aug 25, 2021 12:10 am
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7
Your PHP doesn't have the mysqli extension enabled. You may be able to enable it in your hosting control panel, if not ask your host.
The Hosting guys is saying, it could not be happen, if it would be the reason, then the other users would face the same problems (I have a shared hosting. Not dedicated).

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 4:23 am
by by mona
You also managed to omit to mention your theme.

https://stackoverflow.com/questions/398 ... -not-found
https://unix.stackexchange.com/question ... r-www-html
https://shareablecode.com/snippets/easy ... -VBWV-9GDE

At this point may I suggest you reach back out to your service provider, your theme developer or request assistance here :
viewforum.php?f=88

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 5:06 am
by straightlight
ameem wrote:
Wed Aug 25, 2021 4:09 am
ADD Creative wrote:
Wed Aug 25, 2021 12:10 am
ameem wrote:
Tue Aug 24, 2021 10:00 pm
Opencart Version: 3.0.3.3
It was all fine yesterday and in the morning as well. and I didn't do anything, didn't touch anything, but when I refreshed it to make the login, this error came up. The Webhoster is telling me, they are only responsible if CPanel, phpMyAdmin, is not working. He is telling me that it is some kind of my Opencart libraries' problem. Please help me and guide me to solve this:

Fatal error: Uncaught Error: Class 'mysqli' not found in /home/edengears/public_html/system/library/db/mysqli.php:7
Your PHP doesn't have the mysqli extension enabled. You may be able to enable it in your hosting control panel, if not ask your host.
The Hosting guys is saying, it could not be happen, if it would be the reason, then the other users would face the same problems (I have a shared hosting. Not dedicated).
What other users?

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 5:54 am
by ADD Creative
ameem wrote:
Wed Aug 25, 2021 4:09 am
The Hosting guys is saying, it could not be happen, if it would be the reason, then the other users would face the same problems (I have a shared hosting. Not dedicated).
Use phpinfo and look for mysqli section.

Put the following in a .php file on your hosting public_html folder and go to it in a web browser. Remember to delete it afterwards.

Code: Select all

<?php

phpinfo();

?>
Also what PHP version are you using?

Re: Uncaught Error: Class 'mysqli' not found

Posted: Wed Aug 25, 2021 2:48 pm
by ameem
ADD Creative wrote:
Wed Aug 25, 2021 5:54 am
ameem wrote:
Wed Aug 25, 2021 4:09 am
The Hosting guys is saying, it could not be happen, if it would be the reason, then the other users would face the same problems (I have a shared hosting. Not dedicated).
Use phpinfo and look for mysqli section.

Put the following in a .php file on your hosting public_html folder and go to it in a web browser. Remember to delete it afterwards.

Code: Select all

<?php

phpinfo();

?>
Also what PHP version are you using?
PHP Version - 7.3.28
MySQL driver for PDO - George Schlossnagle, Wez Furlong, Ilia Alshanetsky, Johannes Schlueter.
MySQLi - Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel.
MySQLnd - Andrey Hristov, Ulf Wendel, Georg Richter, Johannes Schlüter