PHP Error on fresh Drupal 7 install with 7.x-3.10 of Views module installed

2015/03/30 19:17:50 [error] 10141#0: *13601 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot redeclare class view in /var/www/[redacted]/sites/all/modules/views/includes/view.inc on line 19" while reading response header from upstream, client: 208.91.114.4, server: [redacted], request: "GET /admin/structure/block HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "[redacted]", referrer: "[redacted]"

Comments

sealionking’s picture

i ecountered this error too.
mine is cased by the xcache.
after disable it
drupal works

RedactedProfile’s picture

Status: Active » Closed (fixed)

Turned out it was a problem regarding opcaching

I use PHP5-FPM with Nginx, so by enabling: opcache.enable=0 in the php.ini and restarting the php-fpm daemon, everything worked fine after that.

Anonymous’s picture

If I disable opchache in my php.in I cannot run Dupal 8 in parrallel with Drupal 7 - opcache is required for Drupal 8.
(env. ubuntu 14.04, apache2.4, php.5.5.9, drupal 7.40, drupal 8.rc1, postgresql 9.4)

triple5’s picture

Is there any update, now after Jessie became stable and I still have running lots of drupal 7 sites on the server that I also want to feed with drupal 8 sites now, it would be good to have them both available parallel...

oriol_e9g’s picture

calbasi’s picture

If you have some websites mixed in the same server, like me, you should probably set:

opcache.enable=0

at php.ini just for your d7 websites.

In my case, IspConfig let add custom php.ini settings for each website hosted ;-)

Another option is use php7 and php5.6 in the same server... IspConfig let set which php version a website is using, if more then one are installed.