Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
sealionking CreditAttribution: sealionking commentedi ecountered this error too.
mine is cased by the xcache.
after disable it
drupal works
Comment #2
RedactedProfile CreditAttribution: RedactedProfile commentedTurned 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.Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedIf 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)
Comment #4
triple5 CreditAttribution: triple5 commentedIs 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...
Comment #5
oriol_e9gTry this: https://www.drupal.org/node/2066561#comment-11793191
Comment #6
calbasiIf 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.