Post by chameleon121 » Sun Jan 16, 2022 7:16 am

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.

Newbie

Posts

Joined
Mon Jan 19, 2015 4:04 am

Post by ADD Creative » Sun Jan 16, 2022 8:21 am

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.

www.add-creative.co.uk


Expert Member

Posts

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

Post by by mona » Sun Jan 16, 2022 8:23 am

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.

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 chameleon121 » Sun Jan 16, 2022 12:22 pm

Thanks, yes it was this installatron from godaddy that messed up the update somehow. I used it's backup and everything is working again.

Newbie

Posts

Joined
Mon Jan 19, 2015 4:04 am

Post by xxvirusxx » Sun Jan 16, 2022 3:16 pm

chameleon121 wrote:
Sun Jan 16, 2022 12:22 pm
Thanks, yes it was this installatron.
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


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 112 guests