Contentify: error artisan

Created on 23 Oct 2018  路  12Comments  路  Source: Contentify/Contentify

Hello
I have an error when I make the command " php artisan "

PHP Fatal error: Interface 'JsonSerializable' not found in /datas/vol4/yulpa165653/var/www/spm-corp.fr/site/vendor/laravel/framework/src/Illuminate/Database/Eloquent/M odel.php on line 22

PHP Fatal error: Interface 'JsonSerializable' not found in /datas/vol4/yulpa165653/var/www/spm-corp.fr/site/vendor/laravel/framework/src/Illuminate/Support/Collection. php on line 18

bug

All 12 comments

Hello,

please take a look into the contentify directory. Does it have a sub directory called vendor that again has a bunch of sub directories? If it does not then I'd assume you have to run php composer.phar install.

in the folder ~/contentify/Vendor I have a single file MySqlDump.php

when I do " php composer.phar " install in the root folder he tells me

PHP Fatal error: Uncaught Error: Class 'Phar' not found in /site/composer.phar:23
Stack trace:
#0 {main}
thrown in /site/composer.phar on line 23

diagnostic https://hastebin.com/ofubaruheb.cpp

Ahhh ok thanks. This means that you do have the vendor stuff. :)

My assumption is that the PHP JSON extension is missing on your system.

To verify my assumption, please go to the admin backend -> settings -> click on the "PHP Info" button. Then use your browser to search for "json" on the page. You should find a section looking similar to this:
json

If you do not find this (which I assume will happen), you need to install the PHP JSON extension. You might try sudo apt-get install php7.2-json but this is just a guess, it depends on your operating system, of course.

hi
it's enabled with version 1.6.0
site 2

I am not yet convinced! ;)

Please try this via console(! _not_ via web browser!): php public/install.php This will show you some information. What is it displaying after "PHP Json Extension:"?

screenshot 2018-10-25 01 06 27

Could your server have more than one php.ini file?

Hi, @roachy yes that might be true.

According to the screenshot of phpinfo() the web php.ini is located in /etc/phpini/php72/spm-corp.fr.ini.
To find out where the console php.ini is located you might use this command: php --ini

Closing this. Please create a new issue ticket if this problem is still relevant.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kamohy picture kamohy  路  6Comments

niclasreich picture niclasreich  路  4Comments

khalifaone picture khalifaone  路  3Comments

kamohy picture kamohy  路  5Comments

Devilcraft1407 picture Devilcraft1407  路  3Comments