UndefinedFunctionException - Attempted to call function apc_fetch from namespace Doctrine\Common\Cache
apc_fetch() is a function in the now deprecated apc module.
To use it with apcu on php7, use pecl to install the apcu_bc package.
http://pecl.php.net/package/apcu_bc
Additionally, add the line
extension=apc.so
to your php.ini (or your apcu.ini).
This will provide backward compatibility with the apc module.
Symfony / PHP7 APC - APCu
This answer is obsolet. The correct answer is the one from François Breton.
In PHP 7 you have to add an additional module to your PHP setup: apc.so
This is a module that enables backward compability to apc for apcu.
This is kind of confusing...
See http://php.net/manual/de/apcu.installation.php for more info.
If you are using packages from https://deb.sury.org/ (ondrej ppa), you can install it via apt-get install php-apcu-bc
.
Call to undefined function apc_clear_cache()
Ok the solution was to rename all the apc_* functions to apcu_* ... I guess the apcu_bc isn't working as it should.
Related Topics
Using the Browser Prompt to Download a File
Colon After Method Declaration
Userland Multipart/Form-Data Handler
Replace Add to Cart Button with a Read More Linked to Product Page on Shop Pages in Woocommerce 3
How to Merge Array and Preserve Keys
Move an Array Element to a New Index in PHP
How to Get the Byte Values of a String in PHP
How to Send Email from Local Wamp Server Using PHP
Codeigniter Echoing [::1] Instead of Localhost
Session_Start() Takes Very Long Time
Root Path Doesn't Work with PHP Include
Get Only Filename from Url in PHP Without Any Variable Values Which Exist in the Url
Skip Checkout in Magento for a Downloadable Product
Change Woocommerce Default Password Security Level
Change Array Key Without Changing Order
How to Use PHPunit to Test a Function If That Function Is Supposed to Kill PHP