Post by ameem » 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

Attachments

front-end.png

front-end.png (95.03 KiB) Viewed 3661 times

opencart-admin.png

opencart-admin.png (99.83 KiB) Viewed 3661 times

Last edited by ameem on Tue Aug 24, 2021 10:44 pm, edited 1 time in total.

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by straightlight » Tue Aug 24, 2021 10:41 pm

Identified as 3306 in the logs but the current version seem to be about 3.3.0.3.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ameem » 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

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by straightlight » 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 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Gergely » 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

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by straightlight » Tue Aug 24, 2021 11:08 pm

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?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Gergely » Tue Aug 24, 2021 11:12 pm

What other post?
OP's previous activity on the forums: viewtopic.php?f=125&t=221223&p=806525

Active Member

Posts

Joined
Wed Sep 30, 2020 7:58 pm

Post by ameem » 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
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 :'( :'( :'(

Attachments

WhatsApp Image 2021-08-24 at 8.38.42 PM.jpeg

WhatsApp Image 2021-08-24 at 8.38.42 PM.jpeg (194.68 KiB) Viewed 3557 times


New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by ameem » Tue Aug 24, 2021 11:54 pm

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.

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by straightlight » 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
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.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ADD Creative » 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.

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by ameem » 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
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.

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by ameem » Wed Aug 25, 2021 12:32 am

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.

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by straightlight » Wed Aug 25, 2021 12:49 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ameem » Wed Aug 25, 2021 2: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.
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...

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by ameem » 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).

New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm

Post by by mona » Wed Aug 25, 2021 4:23 am

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

Attachments

Screen-Shot-2021-08-24-at-21.15.14.png

Screen-Shot-2021-08-24-at-21.15.14.png (431.5 KiB) Viewed 3430 times


DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by straightlight » Wed Aug 25, 2021 5:06 am

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?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by ADD Creative » 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?

www.add-creative.co.uk


Guru Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by ameem » Wed Aug 25, 2021 2:48 pm

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

Attachments

Screenshot 2021-08-25 114632.png

Screenshot 2021-08-25 114632.png (23.12 KiB) Viewed 3360 times


New member

Posts

Joined
Wed Sep 11, 2019 4:37 pm
Who is online

Users browsing this forum: ocmod.space and 47 guests