collectiveaccess / pawtucket

Public access front-end for Providence
GNU General Public License v3.0
23 stars 29 forks source link

in php7 class Error is used internally #13

Open hodgett opened 7 years ago

hodgett commented 7 years ago

I am trying to use pawtucket but am not getting much success because I am getting the following error in the log; 2017/02/17 20:54:32 [error] 5635#5635: *1755 FastCGI sent in stderr: "PHP message: PHP Fatal error: Cannot declare class Error, because the name is already in use in /opt/pawtucket-1.4/app/lib/core/Error.php on line 46" while reading response header from upstream, client: 192.168.0.7, server: blah.com, request: "GET /pwt/ HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "blah.com"

A look around and I find this nugget;

If after PHP upgrade you're getting error "PHP Fatal error: Cannot declare class error, because the name is already in use ...", you will have to rename your "error" class. Since PHP 7 classname "Error" is predefined and used internally.

collectiveaccess commented 7 years ago

The Pawtucket master branch is not compatible with php7 at the moment. Try using Pawtucket2, or if you must use this older Pawtucket try the "develop" branch.