Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 1
Smile

APC cache has been enabled, but the APC or APCu extension is not available

Question

Hi,

While running the TB migrator module we came along the following error when pressing configure:

[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 131 - classes/cache/Cache.php]
    CacheCore::getInstance - [line 175 - modules/psonesixmigrator/psonesixmigrator.php]
    PsOneSixMigrator->getContent - [line 868 - controllers/admin/AdminModulesController.php]
    AdminModulesControllerCore->postProcessCallback - [line 1117 - controllers/admin/AdminModulesController.php]
    AdminModulesControllerCore->postProcess - [line 178 - classes/controller/Controller.php]
    ControllerCore->run - [line 43 - override/classes/controller/Controller.php]
    Controller->run - [line 367 - classes/Dispatcher.php]
    DispatcherCore->dispatch - [line 58 - admin/index.php]

Can I just under WHM -> Module Installers -> install those modules? Without interfering in the current installations?

Or does this error comes from somewhere else? In my mind it did not happen on another installation on the same server (php.ini is not changed)

We are trying the migrator in a test environment.

Capture.JPG

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

You can either install the apcu extension, or modify configuration of your prestashop you are migrating from and change the caching system in /config/settins.inc.php to something else

Share this post


Link to post
Share on other sites
  • 0

Does anybody use APC Cache?

When I try to save a manufacturer in BO, I also get: APCu cache has been enabled, but the APCu extension is not available.

Edit: Probably this was caused, since I changed the php version some time ago...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×