I
I
Igor Kudryash2017-03-12 12:27:01
Laravel
Igor Kudryash, 2017-03-12 12:27:01

How to fix error in laravel?

The problem is that after uploading to the server, it gives a 500 error. There is this thing in the logs:
PHP Fatal error: Interface 'JsonSerializable' not found in /vendor/laravel/framework/src/Illuminate/Database/Eloquent/Model.php on line 1
PHP Fatal error: Interface 'JsonSerializable' not found in / vendor/laravel/framework/src/Illuminate/Support/Collection.php on line 1
Help fix please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2017-03-12
@miraage

The JsonSerializable interface
(PHP 5 >= 5.4.0, PHP 7)
Check the PHP version. Or they might have forgotten to put the extension to work with json.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question