Support the ongoing development of Laravel.io →
posted 9 years ago
Cache
Last updated 2 years ago.
0

Found out this error only appears on live-server. On my dev-Server everything works fine. So it should be a server-misconfiguration.

But I checked everything. The module is enabled and the function "apc_fetch" is defined on the live-server....

And a short-test (explained on php.net) also works fine

$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));
Last updated 9 years ago.
0

run php -m on your terminal and see if the php apc module is loaded. If yes check the above function exists in that version.

0

Ok, that's weird. If i test the snippet from above, it works. If I test with "function_exists", the function seems to be defined.

If I run php -m from terminal apc does not exist in the list.

0

also there are two php.ini files. one for cli and one which loads for apache. http://stackoverflow.com/questions/3871768/2-php-ini-files

0

Sign in to participate in this thread!

Eventy

Your banner here too?

vanderb vanderb Joined 17 Mar 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.