agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 524 forks source link

Compatibility with php 8 #1479

Open jbeuria opened 2 years ago

jbeuria commented 2 years ago

Hello, i tried to install on php 8.1, but not able to proceed

for file permissions, I used

chmod 755 $(find cockpit -type d) chmod 644 $(find cockpit -type f)

which is fair enough i guess.

Screenshot attached

image

patrickuhlmann commented 2 years ago

Actually I am running it on PHP 8 and it works fine. I don't think that the deprecated warnings are a problem. They just indicate that a function might be removed in the future but the function should still work currently. You could suppress the warnings like described here: https://manuals.gfi.com/en/helpdesk/admin/content/advance-configuration/41.handling-php-deprecated-function-errors-while-on-kayako.htm.

The only problem I had was with the 2FA addon (see here: https://github.com/agentejo/2FA/issues/3). Are you running this or other addons too?

But I think somewhere you should find a "real" error or fatal that indicates the actual reason why your installation doesn't work.