PHP 7.2 support

Having trouble installing Group-Office? No worries. Help is on the way.

Moderator: Developers

Bastien
Posts: 18
Joined: Mon Mar 30, 2009 5:13 pm

PHP 7.2 support

Postby Bastien » Wed Dec 20, 2017 6:13 pm

Is PHP 7.2 supported yet? Because I'm running in some problems. But maybe it's a server problem.

When I enable PHP 7.2 I got a blank page in my browser. The apache error log shows:

Code: Select all

[Wed Dec 20 19:04:08.762346 2017] [php7:error] [pid 22688] [client x.x.x.x:62508] PHP Fatal error:  Cannot use 'Object' as class name as it is reserved in /usr/share/groupoffice/go/base/Object.php on line 36
When I run the test script, it says that module mcrypt is missing. But this module is deprecated in PHP 7.2 so that's correct. All the other tests are running fine (not the Pro modules but I'm not using the Pro version). I'm using the Debian package.
mschering
Site Admin
Site Admin
Posts: 8200
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: PHP 7.2 support

Postby mschering » Mon Jan 01, 2018 12:53 pm

Yes but you have to download an alternative version. You can set an alternative source for debian apt or downlaod another package from sourceforge
Best regards,

Merijn Schering
Intermesh
Bastien
Posts: 18
Joined: Mon Mar 30, 2009 5:13 pm

Re: PHP 7.2 support

Postby Bastien » Mon Jan 01, 2018 1:11 pm

Thanks for your reply. I'm using version 6.2.75 which is the latest version. But if there is another version, can you please give a direction to the right package?

Otherwise I'll try to test again later this week, maybe PHP 7.2 is missing some modules or so.
mschering
Site Admin
Site Admin
Posts: 8200
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: PHP 7.2 support

Postby mschering » Tue Jan 02, 2018 9:51 am

Hi,

That's the latest. But make sure you use the right repository.
Best regards,

Merijn Schering
Intermesh
Bastien
Posts: 18
Joined: Mon Mar 30, 2009 5:13 pm

Re: PHP 7.2 support

Postby Bastien » Fri Jan 05, 2018 5:27 pm

I didn't realise that there was a PHP 7.1 repository, I was using the standard sixtwo repository. I've enabled the PHP 7.1 repository in my sources list and did an upgrade. The output was:
The following packages will be upgraded:
groupoffice-com
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 26.4 MB of archives.
After this operation, 90.1 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://repos.groupoffice.eu/ sixtwo-php-7.1/main groupoffice-com all 6.2.75 [26.4 MB]
Fetched 26.4 MB in 0s (45.4 MB/s)
Preconfiguring packages ...
(Reading database ... 73276 files and directories currently installed.)
Preparing to unpack .../groupoffice-com_6.2.75_all.deb ...
Unpacking groupoffice-com (6.2.75) over (6.2.75) ...
Setting up groupoffice-com (6.2.75) ...
dbconfig-common: writing config to /etc/dbconfig-common/groupoffice-com.conf
Replacing config file /etc/groupoffice/config-db.php with new version
dbconfig-common: flushing administrative password
Configuring Group-Office
Setting cache permissions

Automatic installation of Group-Office aborted because database is not empty

Group-Office CLI - Copyright Intermesh BV.

PHP Fatal error: Cannot use 'Object' as class name as it is reserved in /usr/share/groupoffice/go/base/Object.php on line 36

Fatal error: Cannot use 'Object' as class name as it is reserved in /usr/share/groupoffice/go/base/Object.php on line 36
PHP Fatal error: Uncaught Error: Class 'GO\Base\Model\User' not found in /usr/share/groupoffice/go/base/Session.php:225
Stack trace:
#0 /usr/share/groupoffice/go/GO.php(346): GO\Base\Session->user()
#1 /usr/share/groupoffice/go/base/Session.php(148): GO::user()
#2 /usr/share/groupoffice/go/GO.php(753): GO\Base\Session->clearUserTempFiles(false)
#3 [internal function]: GO::shutdown()
#4 {main}
thrown in /usr/share/groupoffice/go/base/Session.php on line 225

Fatal error: Uncaught Error: Class 'GO\Base\Model\User' not found in /usr/share/groupoffice/go/base/Session.php:225
Stack trace:
#0 /usr/share/groupoffice/go/GO.php(346): GO\Base\Session->user()
#1 /usr/share/groupoffice/go/base/Session.php(148): GO::user()
#2 /usr/share/groupoffice/go/GO.php(753): GO\Base\Session->clearUserTempFiles(false)
#3 [internal function]: GO::shutdown()
#4 {main}
thrown in /usr/share/groupoffice/go/base/Session.php on line 225
ln: failed to create symbolic link â/var/www/html/publicâ: File exists
Done!
The Apache error log:
[Fri Jan 05 17:48:40.156394 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP Fatal error: Class 'GO\\Base\\Object' not found in /usr/share/groupoffice/go/base/Model.php on line 36
[Fri Jan 05 17:48:40.156419 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP Stack trace:
[Fri Jan 05 17:48:40.156425 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 1. {main}() /usr/share/groupoffice/index.php:0
[Fri Jan 05 17:48:40.156429 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 2. require_once() /usr/share/groupoffice/index.php:18
[Fri Jan 05 17:48:40.156433 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 3. GO::init() /usr/share/groupoffice/GO.php:6
[Fri Jan 05 17:48:40.156437 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 4. GO::user() /usr/share/groupoffice/go/GO.php:628
[Fri Jan 05 17:48:40.156440 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 5. GO\\Base\\Session->user() /usr/share/groupoffice/go/GO.php:346
[Fri Jan 05 17:48:40.156444 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 6. spl_autoload_call() /usr/share/groupoffice/go/base/Session.php:225
[Fri Jan 05 17:48:40.156535 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 7. GO::autoload() /usr/share/groupoffice/go/base/Session.php:225
[Fri Jan 05 17:48:40.156557 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 8. require() /usr/share/groupoffice/go/GO.php:579
[Fri Jan 05 17:48:40.156561 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 9. spl_autoload_call() /usr/share/groupoffice/go/base/model/User.php:74
[Fri Jan 05 17:48:40.156564 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 10. GO::autoload() /usr/share/groupoffice/go/base/model/User.php:74
[Fri Jan 05 17:48:40.156568 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 11. require() /usr/share/groupoffice/go/GO.php:505
[Fri Jan 05 17:48:40.156582 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 12. spl_autoload_call() /usr/share/groupoffice/go/base/db/ActiveRecord.php:48
[Fri Jan 05 17:48:40.156585 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 13. GO::autoload() /usr/share/groupoffice/go/base/db/ActiveRecord.php:48
[Fri Jan 05 17:48:40.156604 2018] [php7:notice] [pid 19416] [client x.x.x.x:56124] PHP 14. require() /usr/share/groupoffice/go/GO.php:505
But after this upgrade it's still not working with PHP 7.2.

When I disable PHP 7.2 and enable PHP 7.1 GO is working fine. With PHP 7.2 the page is blank and the page source empty. And the PHP Fatal error from above is shown in the Apache error log.

I will using PHP 7.1 for now, no problem with that. I was just testing PHP 7.2. Maybe it's still a problem on my server, I don't know. Can't find a problem and other scripts that I'm using on this server are working fine. That's why I was asking here.
mschering
Site Admin
Site Admin
Posts: 8200
Joined: Tue Apr 20, 2004 1:06 pm
Location: The Netherlands - Den Bosch
Contact:

Re: PHP 7.2 support

Postby mschering » Mon Jan 08, 2018 8:47 am

Ok, I think we need to look at php 7.2 then. It seems that we need to change the Object class name.
Best regards,

Merijn Schering
Intermesh
mcharvat
Posts: 73
Joined: Thu Jul 03, 2014 10:36 pm
Contact:

Re: PHP 7.2 support

Postby mcharvat » Tue Jan 30, 2018 5:23 pm

http://php.net/manual/en/reserved.other-reserved-words.php
IT Analyst, Independent seasoned Group-Office developer, Educator of web applications

Who is online

Users browsing this forum: No registered users and 2 guests

cron