Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Error after upgrading to PHP 7.2 - Fatal Error - Fluent.php 1 week 6 days ago #1

  • Johnbob1
  • Johnbob1's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 10
I upgraded Webtrees to 2.0.6, logged in to make sure it was working. Then changed my hosting to use PHP 7.2 and am now getting this error when going to the tree:
Fatal error: Interface 'JsonSerializable' not found in /home1/reunion/public_html/webtree/vendor/illuminate/support/Fluent.php on line 10

Any ideas? Thanks for your help.
John

Please Log in or Create an account to join the conversation.

Error after upgrading to PHP 7.2 - Fatal Error - Fluent.php 1 week 6 days ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13196
> 'JsonSerializable'

This is a standard part of PHP, and is included in builds of PHP by default.

I can only guess that your provider has created a "minimal" or "cut-down" version of PHP.

When you selected your version of PHP, did you have any options to include any PHP modules?
If so, maybe look for one called "json".
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Error after upgrading to PHP 7.2 - Fatal Error - Fluent.php 1 week 6 days ago #3

  • Johnbob1
  • Johnbob1's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 10
That is exactly the case. Great catch!! I have now installed the Services_JSON extension but it is telling me I need to add the include path in my script.
ini_set("include_path", '/home1/reunion/php:' . ini_get("include_path") );

Not sure where exactly to put that. Suggestions?
Appreciate the help!
John

Please Log in or Create an account to join the conversation.

Error after upgrading to PHP 7.2 - Fatal Error - Fluent.php 1 week 6 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13196
> it is telling me I need to add the include path in my script.

That doesn't really sound right. Installing PHP modules normally happens at a system level - not at the application level.

But for testing purposes, you can put this code in the file "index.php", just before the line that starts "require....".
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Error after upgrading to PHP 7.2 - Fatal Error - Fluent.php 1 week 6 days ago #5

  • Johnbob1
  • Johnbob1's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 10
I finally had to reach out to my host to fix this. Changes needed to be made to the .htaccess file to properly point to the JSON module. It was easier just to let them do it than spend hours messing with it. I'm now running PHP 7.3 with no problems.
FYI... PHP 7.2 and up do not include all the modules like older versions. They need to be added on. This is doable within cPanel but the path needs to be defined.
Thanks for pointing me down the right path, fisharebest !!
John

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum