Smile Posted January 24, 2019 Share Posted January 24, 2019 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. Link to comment Share on other sites More sharing options...
0 datakick Posted January 24, 2019 Share Posted January 24, 2019 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 Link to comment Share on other sites More sharing options...
0 Smile Posted January 24, 2019 Author Share Posted January 24, 2019 Great thanks! Link to comment Share on other sites More sharing options...
0 wakabayashi Posted April 23, 2019 Share Posted April 23, 2019 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... Link to comment Share on other sites More sharing options...
0 CoffeeGuy Posted December 16, 2020 Share Posted December 16, 2020 On 4/23/2019 at 8:15 AM, wakabayashi said: 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... That's exactly when I get this! When I save a manufacturer. How is this fixed? I can't add any manufactures now, and I am starting to get more clients. Please assist asap. 😞 Link to comment Share on other sites More sharing options...
0 datakick Posted December 17, 2020 Share Posted December 17, 2020 if (!extension_loaded('apcu')) { throw new PrestaShopException('APCu cache has been enabled, but the APCu extension is not available'); } This exception is thrown because apcu php extension is not loaded. You need to configure your server. How to do this exactly depends on your hosting provider, on platform you are using, etc. For inspiration: https://serverpilot.io/docs/how-to-install-the-php-apcu-extension/ 1 Link to comment Share on other sites More sharing options...
0 CoffeeGuy Posted December 17, 2020 Share Posted December 17, 2020 I will check that out and try it. Thanks. if I need help, I will come to you. Link to comment Share on other sites More sharing options...
0 Traumflug Posted December 18, 2020 Share Posted December 18, 2020 On 12/17/2020 at 8:02 AM, datakick said: You need to configure your server. This, or simply not use APCu. Link to comment Share on other sites More sharing options...
0 the.rampage.rado Posted December 18, 2020 Share Posted December 18, 2020 No issues for me when using apcu Link to comment Share on other sites More sharing options...
Question
Smile
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.
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now