Fatal error while installation of orocrm - php

I'm getting this error when trying to install orocrm :
Fatal error: Cannot use 'True' as class name as it is reserved in
C:\xampp\htdocs\crm-application\vendor\oro\platform\src\Oro\Component\ConfigExpression\Condition\True.php
on line 10
Any idea what might be the cause of this?

You are using PHP7. For now OroCrm doesn't support PHP7.
You need to downgrade PHP to 5.6 version.

Related

Interface 'JsonSerializable' not found

I am getting Interface 'JsonSerializable' not found error in my site.
I am using Laravel 5.4 and PHP 7.1.13.
JSON module is also enabled in Cpanel.
But still i am getting following error:
PHP Fatal error: Interface 'JsonSerializable' not found in
/******/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 22
PHP Fatal error: Interface 'JsonSerializable' not found in
/******/vendor/laravel/framework/src/Illuminate/Support/Collection.php
on line 17
Thanks in advance!
Check your Php info Settings, Json is Enabled.
PHP Fatal error: Interface 'JsonSerializable' not found - My Php Version is 7.0.17
I have faced the same problem in my Cpanel. When I upgrade the PHP version of my Cpanel MultiPHP Manager, it works fine.
Upgrade PHP version 7.4 to 8.0.
I got the same error on cpanel, I solved it by changing the php version from 7.3 to 7.4 under MultiPHP Manager.
~regards

libsodium "Call to undefined function" error

I have installed libsodium and libsodium-php on ubuntu 16.04 but when I run:
`<?php
var_dump([
\Sodium\library_version_major(),
\Sodium\library_version_minor(),
\Sodium\version_string()
]);`
I get an error saying:
PHP Fatal error: Uncaught Error: Call to undefined function Sodium\library_version_major()
According to phpinfo() Sodium is enabled and the compiled version is 2.0.1 and the library version is 1.0.13. What am I doing wrong?
The PHP API for libsodium has changed in version 2.0.0 of the extension.
Originally, all functions were in a \Sodium\ namespace.
However, following a vote by PHP developers regarding its inclusion in PHP 7.2, it was decided to move everything to the global namespace instead.
So, what used to be \Sodium\library_version_major() is now sodium_library_version_major().
For those who couldnt get the answer working..
thats because it should be:
<?php
var_dump([
SODIUM_LIBRARY_MAJOR_VERSION,
SODIUM_LIBRARY_MINOR_VERSION,
SODIUM_LIBRARY_VERSION
]);
For those who installed Pecl Version of Soidum and Enabled it in php.ini (extension=sodium.so) And Have same error like Call to Undefined ...
After Restarting Apache & nginx and lack of success finally Reboot server get sodium work exteremly.
PHP 7.3 & >7.3 = libsodium 2.1
Hope to be helpful.

when I use composer to install laravel I'm getting error

PHP Fatal error:
Cannot use 'PhpParser\Node\Scalar\String' as class name as it is reserved in /opt/lampp/htdocs/makemykareer/vendor/nikic/php-parser/lib/PhpParser/PrettyPrinter/Standard.php on line 86
I'm using php 7 and ubuntu 16.04
Try upgrading your PHP-Parser library by upgrading your composer version

Class 'DateTimeImmutable' not found

I've just run an update for my CakePHP version (3.1.7). And now I'm unable to run my app, with a fatal error :
Fatal error: Class 'DateTimeImmutable' not found in /opt/lampp/htdocs/my-app/vendor/cakephp/chronos/src/Chronos.php on line 50
I found this issue on Github, where I noticed that
DateTimeImmutable was not present in 5.4
So I install PHP5.6.20 on my PC, but after restarting Xampp, I still get the same error. How can I fix this ?
PHP's installation on the PC is not related to Xampp. So installing PHP doesn't solve the problem. But installing a new version of Xampp with PHP 5.6.
It's a PHP Version Problem make sure You're using PHP > 5.5v

Zend Framework 2 zftool fatal error

When running the zftool.phar I get a fatal error in the terminal.
Fatal error: Class 'Zend\Form\FormAbstractServiceFactory' not found in phar:///Users/peter/Sites/zftool.phar/vendor/zendframework/zend-servicemanager/Zend/ServiceManager/ServiceManager.php on line 2
What am i doing wrong?
Seemed to be an outdated version, downloading the latest version solved the problem.

Categories