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

Error with PHP 7.2 #28

Closed
dunglas opened this issue Mar 26, 2018 · 4 comments
Closed

Error with PHP 7.2 #28

dunglas opened this issue Mar 26, 2018 · 4 comments

Comments

@dunglas
Copy link
Contributor

dunglas commented Mar 26, 2018

Hello,

There is a bug when using HydraConsole with PHP 7.2:

Fatal error: Cannot use stdClass as Object because 'Object' is a special class name in /Users/dunglas/workspace/hydra-console/vendor/ml/json-ld/ML/JsonLD/JsonLD.php on line 12

It looks related to the new object return type introduced in this version.

@DougHayward
Copy link

DougHayward commented Mar 27, 2018

I can confirm this error is also present for me.

[Tue Mar 27 10:23:06 2018] PHP Fatal error: Cannot use stdClass as Object because 'Object' is a special class name in /hydra-test/vendor/ml/json-ld/ML/JsonLD/JsonLD.php on line 12
[Tue Mar 27 10:23:06 2018] ::1:33402 [500]: /proxy.php?debug=true&url={url-here} - Cannot use stdClass as Object because 'Object' is a special class name in /hydra-test/vendor/ml/json-ld/ML/JsonLD/JsonLD.php on line 12

PHP 7.2.2 (cli) (built: Jan 30 2018 10:33:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies  with Zend OPcache v7.2.2, Copyright (c) 1999-2018, by Zend Technologies

@dunglas Looks like it's been covered by this pull request lanthaler/JsonLD#79 but is yet to be merged.

@gustavodemorais
Copy link

Probably not the best place to comment on this but I think the online version here http://www.markus-lanthaler.com/hydra/console/ is not working for the same reason.

image

lanthaler added a commit to lanthaler/JsonLD that referenced this issue Mar 25, 2019
@lanthaler
Copy link
Owner

Thanks for the bug report. The issue has been fixed and the Hydra console on my page has been updated and works again.

@gustavodemorais
Copy link

Thanks for fixing it fast, it's a nice tool for the community

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