GOaddy just updated my opencart to 3.0.3.7 and I dont know what is was before. The website was working great prior to the update, now I get this error:
Fatal error: Uncaught TypeError: mysqli::real_escape_string(): Argument #1 ($string) must be of type string, array given in /home/hkau7n6ampsp/public_html/system/library/db/mysqli.php:53 Stack trace: #0 /home/hkau7n6ampsp/public_html/system/library/db/mysqli.php(53): mysqli->real_escape_string() #1 /home/hkau7n6ampsp/public_html/system/storage3tg3xqfewcqc/modification/system/library/db.php(86): DB\MySQLi->escape() #2 /home/hkau7n6ampsp/public_html/catalog/model/design/translation.php(6): DB->escape() #3 /home/hkau7n6ampsp/public_html/system/storage3tg3xqfewcqc/modification/system/engine/loader.php(272): ModelDesignTranslation->getTranslations() #4 /home/hkau7n6ampsp/public_html/system/engine/proxy.php(47): Loader->{closure}() #5 /home/hkau7n6ampsp/public_html/catalog/controller/event/translation.php(6): Proxy->__call() #6 /home/hkau7n6ampsp/public_html/system/storage3tg3xqfewcqc/modification/system/engine/action.php(81): ControllerEventTranslation->index() #7 /home/hkau7n6ampsp/public_html/system/storage3tg3xqfewcqc/modification/system/engine/event.php(67): Action->execute() #8 /home/hkau7n6ampsp/public_html/system/storage3tg3xqfewcqc/modification/system/engine/loader.php(221): Event->trigger() #9 /home/hkau7n6ampsp/public_html/system/framework.php(140): Loader->language() #10 /home/hkau7n6ampsp/public_html/system/startup.php(104): require_once('/home/hkau7n6am...') #11 /home/hkau7n6ampsp/public_html/index.php(19): start() #12 {main} thrown in /home/hkau7n6ampsp/public_html/system/library/db/mysqli.php on line 53
I have tried changing the mysql driver and still similar error.
Looks like the error is caused by a modification. Try disabling them until you find which one or try to restore a backup of your site.
Opencart should be installed via the official download page. viewtopic.php?t=223773
Another person had the same issue this week with installtron. viewtopic.php?f=202&t=226962
The best thing to do would be to request from your host to put it back using a back up.
Another person had the same issue this week with installtron. viewtopic.php?f=202&t=226962
The best thing to do would be to request from your host to put it back using a back up.
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
Thanks, yes it was this installatron from godaddy that messed up the update somehow. I used it's backup and everything is working again.
You can disable auto update...
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Who is online
Users browsing this forum: timstudio and 176 guests