oat-sa/package-tao

Finalize Installation fails with TAO git under 18.04 / PHP 7.2

Opened this issue · 9 comments

I have just tried again to get TAO git ( this repo eg https://github.com/oat-sa/package-tao.git ) to install under Ubuntu Server 18.04 with the default PHP 7.2.5. Everything checks out with composer fine, I run the install wizard and I get as far as the final screen but then when I click 'Install' a message briefly appears saying 'Deploying' but then nothing happens. If I try clicking on 'Install' again, the same happens - deploying, then nothing.

Apache prints something like the following to the error log each time I push the Install button:

[Wed Jul 04 13:01:29.752401 2018] [php7:error] [pid 959] [client 192.168.122.1:50782] PHP Fatal error:  Cannot use oat\\taoQtiItem\\model\\qti\\Object as Object because 'Object' is a special class name in /var/www/html/taoQtiItem/model/qti/ParserFactory.php on line 54, referer: http://192.168.122.128/tao/install/

I have attached the install.log file
install.log.gz

I have also tried running taoInstall.php from the server cli as documented in the README for this repo but that fails in pretty much the same way ie many

PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /var/www/html/tao/helpers/translation/class.POUtils.php on line 84

Warnings followed by:

PHP Fatal error:  Cannot use oat\taoQtiItem\model\qti\Object as Object because 'Object' is a special class name in /var/www/html/taoQtiItem/model/qti/ParserFactory.php on line 54

After updating to 18.04 and PHP 7.2, I get the same errors in the logs. Did you find a solution?

54m1r commented

@jeppebundsgaard did you find a solution?

Yes, I found out that TAO doesn't work with PHP7.2, so I had to downgrade to 7.0... I have tried to find where I read that, but all I can find right now, is this: https://userguide.taotesting.com/3.2/introduction/installing-tao.html - which just says that TAO works with PHP 5.5 or higher...

54m1r commented

Ok. On my server it works with php7.2.

@PremiumWindel So you don't get stuck on Finalize Installation like everyon else with PHP 7.2? Maybe the cause is different then.

@jeppebundsgaard Did it have to be 7.0? What about 7.1?

sodok commented

I had the same errors when using PHP7.2 instead of PHP7.4

I tried to run the installation on the command line and it still has a lot of issues, mostly with SQL. And when I get past this, it says "Access denied Please renew your authentication", so I'm stuck with the same as with PHP7.4

Having this exact issue, almost exactly two years later. Tried setting module mode to development, no dice.