eltrino / diamantedesk-application

DiamanteDesk
http://diamantedesk.com/
Other
118 stars 42 forks source link

Fatal error: Cannot use 'True' as class name as it is reserved in /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Component/ConfigExpression/Condition/True.php on line 10 while running $ php app/console diamante:install #44

Open roman-1983 opened 7 years ago

roman-1983 commented 7 years ago
$ php app/console diamante:install

PHP Fatal error:  Cannot use 'True' as class name as it is reserved in /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Component/ConfigExpression/Condition/True.php on line 10
PHP Stack trace:
PHP   1. {main}() /var/www/diamantedesk.local/app/console:0
PHP   2. JMS\JobQueueBundle\Console\Application->__construct() /var/www/diamantedesk.local/app/console:22
PHP   3. Oro\Bundle\DistributionBundle\OroKernel->boot() /var/www/diamantedesk.local/vendor/jms/job-queue-bundle/JMS/JobQueueBundle/Console/Application.php:33
PHP   4. Symfony\Component\HttpKernel\Kernel->boot() /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Bundle/DistributionBundle/OroKernel.php:248
PHP   5. Oro\Bundle\DistributionBundle\OroKernel->initializeContainer() /var/www/diamantedesk.local/app/bootstrap.php.cache:2411
PHP   6. Symfony\Component\HttpKernel\Kernel->initializeContainer() /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Bundle/DistributionBundle/OroKernel.php:282
PHP   7. Symfony\Component\DependencyInjection\ContainerBuilder->compile() /var/www/diamantedesk.local/app/bootstrap.php.cache:2633
PHP   8. Symfony\Component\DependencyInjection\Compiler\Compiler->compile() /var/www/diamantedesk.local/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php:570
PHP   9. Oro\Bundle\WorkflowBundle\DependencyInjection\Compiler\AddConditionAndActionCompilerPass->process() /var/www/diamantedesk.local/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php:107
PHP  10. Oro\Bundle\WorkflowBundle\DependencyInjection\Compiler\AddConditionAndActionCompilerPass->injectEntityTypesByTag() /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Bundle/WorkflowBundle/DependencyInjection/Compiler/AddConditionAndActionCompilerPass.php:24
PHP  11. ReflectionClass->__construct() /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Bundle/WorkflowBundle/DependencyInjection/Compiler/AddConditionAndActionCompilerPass.php:42
PHP  12. spl_autoload_call() /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Bundle/WorkflowBundle/DependencyInjection/Compiler/AddConditionAndActionCompilerPass.php:42
PHP  13. Composer\Autoload\ClassLoader->loadClass() /var/www/diamantedesk.local/vendor/oro/platform/src/Oro/Bundle/WorkflowBundle/DependencyInjection/Compiler/AddConditionAndActionCompilerPass.php:42
PHP  14. Composer\Autoload\includeFile() /var/www/diamantedesk.local/vendor/composer/ClassLoader.php:322

PHP-Version

$ php -v
PHP 7.0.13 (cli) (built: Dec  3 2016 11:38:10) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.9, Copyright (c) 2002-2016, by ionCube Ltd.
    with Xdebug v2.5.1, Copyright (c) 2002-2017, by Derick Rethans
northdakota commented 7 years ago

Hi Roman-1983!

At the moment we do not support php-7, but we working on this. If you have more questions, please.

Thanks!

sreekuttan-m-achari commented 7 years ago

Hi All..

I found this script online which solved the compatibility issue for my installation

cd vendor/oro find . -type f -exec sed -i 's/Condition\False()/Condition\FalseCompatible()/g' {} + find . -type f -exec sed -i 's/Condition\True()/Condition\TrueCompatible()/g' {} + find . -type f -exec sed -i 's/Condition\False$/Condition\FalseCompatible/g' {} + find . -type f -exec sed -i 's/Condition\True$/Condition\TrueCompatible/g' {} + mv platform/src/Oro/Component/ConfigExpression/Condition/True.php platform/src/Oro/Component/ConfigExpression/Condition/TrueCompatible.php mv platform/src/Oro/Component/ConfigExpression/Condition/False.php platform/src/Oro/Component/ConfigExpression/Condition/FalseCompatible.php sed -i 's/class True/class TrueCompatible/g' platform/src/Oro/Component/ConfigExpression/Condition/TrueCompatible.php sed -i 's/class False/class FalseCompatible/g' platform/src/Oro/Component/ConfigExpression/Condition/FalseCompatible.php

santialsur commented 6 years ago

Hi!

There is no way to install diamantedesk right now, if i try version 1.0:

composer create-project diamante/desk-application=1.0 . Installing diamante/desk-application (1.0.0)

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

And with version 2.0:

Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets PHP Fatal error: Cannot use 'True' as class name as it is reserved in /home/alsurmedia/domains/alsurmedia.com/public_html/soporte/vendor/oro/platform/src/Oro/Component/ConfigExpression/Condition/True.php on line 10 Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets handling the post-install-cmd event terminated with an exception

[RuntimeException]
An error occurred when executing the "'assets:install --symlink '\''web'\'''" command.

Is there an actual official way to use this application?!

PS: Tried @sreekuttan-m-achari suggestion without any luck

Thanks

odi-um commented 6 years ago

@santialsur you should use last available stable 2.0.4. also, you should install it on PHP lower than 7.x, bc it is unsupported by DiamnteDesk ver 2.x

To use PHP 7 and above you will need to use master branch but currently, it is unstable and have bugs.