Jump to content

Edit History

max

max

Hi,

Suddenly i had this error in my shop:

[PrestaShopException]

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.     /**

    CacheApcCore->__construct - [line 184 - classes/cache/Cache.php]
    CacheCore::getInstance - [line 595 - classes/db/Db.php]
    DbCore->executeS - [line 1350 - classes/shop/Shop.php] - [1 Arguments]
    ShopCore::findShopByHost - [line 341 - classes/shop/Shop.php] - [1 Arguments]
    ShopCore::initialize - [line 128 - config/config.inc.php]
    require - [line 27 - index.php] - [1 Arguments]

 

Then i tried to clear cache manually by deleting var/cache/ prod and dev files but nothing changed. Then i edited the parameters.php file and disabled cache by changing ps_cache_enable from true to false. And my shop started working again, but now i can't access BO.

When i click on log in i get this:

imagen.png.6a8134d40e235542541a0588e023cd88.png

Input fields vanishes and nothing happens, can someone help me ?

PS 1.7.8.8 PHP 7.3

Thanks

max

max


added parameters.php file config

Hi,

Suddenly i had this error in my shop:

[PrestaShopException]

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.     /**

    CacheApcCore->__construct - [line 184 - classes/cache/Cache.php]
    CacheCore::getInstance - [line 595 - classes/db/Db.php]
    DbCore->executeS - [line 1350 - classes/shop/Shop.php] - [1 Arguments]
    ShopCore::findShopByHost - [line 341 - classes/shop/Shop.php] - [1 Arguments]
    ShopCore::initialize - [line 128 - config/config.inc.php]
    require - [line 27 - index.php] - [1 Arguments]

 

Then i tried to clear cache manually by deleting var/cache/ prod and dev files but nothing changed. Then i edited the parameters.php file and disabled cache by changing ps_cache_enable from true to false. And my shop started working again, but now i can't access BO.

This is my parameters.php file:

<?php return array (
  'parameters' => 
  array (
    'database_host' => '127.0.0.1',
    'database_port' => '',
    'database_name' => 'xxx',
    'database_user' => 'xxxx',
    'database_password' => 'xxxx',
    'database_prefix' => 'ps_',
    'database_engine' => 'InnoDB',
    'mailer_transport' => 'smtp',
    'mailer_host' => '127.0.0.1',
    'mailer_user' => NULL,
    'mailer_password' => NULL,
    'secret' => 'weDbCc4hOrVScxTad0fD8140xvwCjO6ssas9AMORvXSEZk4WuA2ApWCEDNwniVo2',
    'ps_caching' => 'CacheApc',
    'ps_cache_enable' => false,
    'ps_creation_date' => '2022-09-12',
    'locale' => 'es-ES',
    'use_debug_toolbar' => true,
    'cookie_key' => 'uPumIQ57KIBK8A7rAMwSxHbSEL5t74b1zVZPYqqpptThT48vILcIu4VtV4MLArk4',
    'cookie_iv' => '1NX9VcmmeEObrfiVS6TLZQXz44Z0QK66',
    'new_cookie_key' => 'def00000d27a27d5905dbde4b4b1d00b6ac393df541682ce62b7c25e71a59be2a0292a20a42d5646fbbcec26004f0cb77c661cf2178433eac7447f058fc750ddb6f1b515',
  ),
);

When i click on log in i get this:

imagen.png.6a8134d40e235542541a0588e023cd88.png

Input fields vanishes and nothing happens, can someone help me ?

PS 1.7.8.8 PHP 7.3

Thanks

max

max

Hi,

Suddenly i had this error in my shop:

[PrestaShopException]

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.     /**

    CacheApcCore->__construct - [line 184 - classes/cache/Cache.php]
    CacheCore::getInstance - [line 595 - classes/db/Db.php]
    DbCore->executeS - [line 1350 - classes/shop/Shop.php] - [1 Arguments]
    ShopCore::findShopByHost - [line 341 - classes/shop/Shop.php] - [1 Arguments]
    ShopCore::initialize - [line 128 - config/config.inc.php]
    require - [line 27 - index.php] - [1 Arguments]

 

Then i tried to clear cache manually by deleting var/cache/ prod and dev files but nothing changed. Then i edited the parameters.php file and disabled cache by changing ps_cache_enable from true to false. And my shop started working again, but now i can't access BO.

When i click on log in i get this:

imagen.png.6a8134d40e235542541a0588e023cd88.png

Input fields vanishes and nothing happens, can someone help me ?

PS 1.7.8.8 PHP 7.3

Thanks

×
×
  • Create New...