• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Blank after enabling APC

LPH

Well-known member
#1
Ah - the adventure continues -

Pages are blank after adding the following to php.ini then restarting apache2:

Code:
extension = apc.so
apc.shm_size = 128
apc.stat = 0
http://tuxreports.com/apc.php

Shows caching fine for front of site (WordPress).

In /library/config.php

Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'apc_';

$config['cache']['cacheSessions'] = true;

ini_set('display_errors', true);

$config['cache']['frontendOptions'] = array(
  'caching'  => true,
  'automatic_serialization'  => true,
  'lifetime'  => 10800
);
$config['cache']['backend'] = 'Apc';
Any suggestions on what to do to get the site to render properly now?

Update: Error logs:

Code:
PHP Fatal error:  require_once(): Failed opening required '' (include_path='/path/to/community/library:.:.:/
usr/share/php:/usr/share/pear') in /path/to/community/library/Zend/Filter.php on line 209
Update 2: Yes, I rebooted the server ;)
 
Last edited:

Tracy Perry

Well-known member
#2
Ah - the adventure continues -
$config['cache']['cacheSessions'] = true;
If I'm not mistaken (and I frequently am) it was recommended NOT to cache the sessions if you use APC. But that shouldn't have anything to do with your problem.
 

LPH

Well-known member
#3
Thank you for the reply.

I finally figured out the little bugger (a few moments ago).

The issue was an errant php.ini file /etc/php5/fpm/php.ini and /etc/php5/apache2/php.ini .. .. one had apc.stat=0 ...