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
Related
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
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.
I had a problem with zend library. I am using php 5.2.4 and xampp 1.6.4. I am getting the error below. Here I am using windows 8.
Fatal error: Class 'Zend_View_Helper_Placeholder_Container_Abstract' not found
in C:\xampp\php\PEAR\Zend\View\Helper\Placeholder\Container.php on line 34.
Is there any thing that I need to set. I have tried with latest version zend also. But same error.
When I work with windows 7. It is fine.
I am trying to install MongoDb on windows platform. I'm using PHP with WampServer.
But while executing the PHP program it gives the following error:
Fatal error: Class 'Mongo' not found in C:\wamp\www\test\index.php on line 19
So is there any way to check whether MongoDB is running with PHP or not ?
Please check php loaded extensions using phpinfo() function whether mongoDB extension is loaded or not.
Do check these as well.
Fatal Error - 'Mongo' class not found
Fatal error: Class 'Mongo' not found in xampp
Add the following line to your php.ini file:
extension=php_mongo.dll
Docs Link: http://php.net/manual/en/mongo.installation.php
Check this possible solution
Copy c:\wamp\bin\php\php-5.3.x\ext\
Edit c:\wamp\bin\apache\Apache2.2.xx\bin\php.ini and add the line where the extensions are loaded.
Why run WAMP on 32bit Windows 7 64bit?
The Mongo PHP driver does not have a 64bit binary win32, if you are running the 64bit version of WAMP, PHP will refuse to load the 32-bit version of php_mongo.dll.
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.