APC cache has been enabled, but the APC or APCu extension is not available
at line 43 in file classes/cache/CacheApc.php
38. * CacheApcCore constructor.
39. */
40. public function __construct()
41. {
42. if (!extension_loaded('apc') && !extension_loaded('apcu')) {
43. throw new PrestaShopException('APC cache has been enabled, but the APC or APCu extension is not available');
44. }
45. $this->apcu = extension_loaded('apcu');
46. }
47.
48. /**
179. */
180. public static function getInstance()
181. {
182. if (!self::$instance) {
183. $caching_system = _PS_CACHING_SYSTEM_;
184. self::$instance = new $caching_system();
185. }
186.
187. return self::$instance;
188. }
189.
590.
591. $this->result = false;
592. $this->last_query = $sql;
593.
594. if ($use_cache && $this->is_cache_enabled && $array) {
595. $this->last_query_hash = Cache::getInstance()->getQueryHash($sql);
596. if (($result = Cache::getInstance()->get($this->last_query_hash)) !== false) {
597. Cache::getInstance()->incrementQueryCounter($sql);
598. $this->last_cached = true;
599.
600. return $result;
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);
346.
347. $through = false;
348. foreach ($result as $row) {
349. // An URL matching current shop was found
350. if (preg_match('#^' . preg_quote($row['uri'], '#') . '#i', $request_uri)) {
Argument [0]
SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
FROM ps_shop_url su
LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop)
WHERE (su.domain = 'www.teqball-romania.ro' OR su.domain_ssl = 'www.teqball-romania.ro')
AND s.active = 1
AND s.deleted = 0
ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
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/cvdtqbro/public_html/config/config.inc.php