Cannot select any valid SQL engine.
at line 302 in file classes/db/Db.php
297. } elseif (extension_loaded('mysqli')) {
298. $class = 'DbMySQLi';
299. }
300.
301. if (empty($class)) {
302. throw new PrestaShopException('Cannot select any valid SQL engine.');
303. }
304.
305. return $class;
306. }
307.
231. ++$id;
232. $id_server = ($total_servers > 2 && ($id % $total_servers) != 0) ? $id % $total_servers : 1;
233. }
234.
235. if (!isset(self::$instance[$id_server])) {
236. $class = Db::getClass();
237. self::$instance[$id_server] = new $class(
238. self::$_servers[$id_server]['server'],
239. self::$_servers[$id_server]['user'],
240. self::$_servers[$id_server]['password'],
241. self::$_servers[$id_server]['database']
42. * @param bool $htmlOK Does data contain HTML code ? (optional)
43. * @return string Sanitized data
44. */
45. function pSQL($string, $htmlOK = false)
46. {
47. return Db::getInstance()->escape($string, $htmlOK);
48. }
49.
50. function bqSQL($string)
51. {
52. return str_replace('`', '\`', pSQL($string));
335. $request_uri = rawurldecode($_SERVER['REQUEST_URI']);
336.
337. $sql = 'SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
338. FROM ' . _DB_PREFIX_ . 'shop_url su
339. LEFT JOIN ' . _DB_PREFIX_ . 'shop s ON (s.id_shop = su.id_shop)
340. WHERE (su.domain = \'' . pSQL($host) . '\' OR su.domain_ssl = \'' . pSQL($host) . '\')
341. AND s.active = 1
342. AND s.deleted = 0
343. ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC';
344.
345. $result = Db::getInstance()->executeS($sql);
114.
115. $context = Context::getContext();
116.
117. /* Initialize the current Shop */
118. try {
119. $context->shop = Shop::initialize();
120. } catch (PrestaShopException $e) {
121. $e->displayMessage();
122. }
123. define('_THEME_NAME_', $context->shop->theme->getName());
124. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
22. * @copyright 2007-2019 PrestaShop SA and Contributors
23. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();
Argument [0] /home/adminnmc/public_html/hanaf.com/config/config.inc.php