Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON-THROW-ON-ERROR #32

Closed
benetel opened this issue Sep 5, 2021 · 3 comments
Closed

JSON-THROW-ON-ERROR #32

benetel opened this issue Sep 5, 2021 · 3 comments

Comments

@benetel
Copy link

benetel commented Sep 5, 2021

Hi,
I use Webtrees 2.0.16
As I activate the the pedigree chart custom module (v 1.2.5) and try to display it on my webtrees pages, the resuls is an error message :

"use of undefined constant JSON-THROW-ON-ERROR,
as shown in the image

image

@06Games
Copy link
Contributor

06Games commented Sep 5, 2021

It seems that this error is due to a version of PHP lower than 7.3. I advise you to update your PHP installation in order to fix this problem.
https://www.php.net/manual/en/json.constants.php

@ddrury
Copy link
Contributor

ddrury commented Sep 6, 2021

Nevertheless, it's best practice to declare constants as well as classes, eg

use const JSON_THROW_ON_ERROR;

@magicsunday
Copy link
Owner

I created a new release for PHP 7.1 to remove this dependency. Nevertheless you should upgrade your PHP version as 7.1 is outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants