Publisher does not support the Fluid field type. Please do not contact asking when support will be available.
If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.
Ticket: json_encode() error in Wyvern Video
Status | Resolved |
Add-on / Version | Reel |
Severity | Blocker |
EE Version | 17 |
Wojtek Dziejma
Oct 02, 2012Hello
I’m getting a PHP error
Fatal error: Call to undefined function json_encode() in /—-/system/expressionengine/third_party/wyvern_video/upd.wyvern_video.php on line 96
when I try to install Wyvern Video. Afterwards the Modules page shows it as installed correctly.
Trying to add any field to channels now throws
Fatal error: Call to undefined function json_decode() in /—-/system/expressionengine/third_party/wyvern_video/helper.wyvern_video.php on line 315
Tried installing and reinstalling, retransferring files through FTP. Any ideas? Under time pressure to get the video field working!
I prefer not to give CP access, unless it’s strictly necessary - but let me know if you need it, I’ll set up a user.
BoldMinded (Brian)
Oct 02, 2012
what version of php is running on your server?
Wojtek Dziejma
Oct 02, 2012
Right, I think I understand. I’m on 5.1.6 and json_decode() is 5.2 or above?
http://php.net/manual/en/function.json-decode.php
Anything I can do?
BoldMinded (Brian)
Oct 02, 2012
I’ll have to distribute a json wrapper apparently. Will try to get you a build later today. I don’t have PHP 5.1.x available anywhere, so I won’t be able to fully test it.
BoldMinded (Brian)
Oct 02, 2012
Note to self: http://www.boutell.com/scripts/jsonwrapper.html
BoldMinded (Brian)
Oct 02, 2012
New build emailed.
Chip Lay
Oct 02, 2012
Similar issue with EE 2.5.3 on both the edit entry page and channel field creation page:
A PHP Error was encountered
Severity: Warning
Message: json_decode() expects parameter 1 to be string, array given
Filename: wyvern_video/helper.wyvern_video.php
Line Number: 315
Not getting this error on a different build with EE 2.5.1
The server that’s running the 2.5.3 build and getting the error is running PHP 5.3.5
Thanks in advance for the help!
Chip Lay
Oct 02, 2012
False alarm - just had to set and save module settings first.
Chip Lay
Oct 02, 2012
Ok… new error. This time on the frontend, its site 2 on a MSM site:
A PHP Error was encountered
Severity: Warning
Message: Parameter 1 to Wyvern_video_ext::sessions_end() expected to be a reference, value given
Filename: libraries/Extensions.php
Line Number: 241
No issues on site 1 frontend. Thoughts?
BoldMinded (Brian)
Oct 03, 2012
In the sessions_end function remove the &, e.g.
BoldMinded (Brian)
Oct 03, 2012
Confirmed, removing & fixes the issue. In the official 1.2.4 release I’m removing the sessions_end hook altogether, its not being used.