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, 2012

Hello

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.

#1

BoldMinded (Brian)

what version of php is running on your server?

#2

Wojtek Dziejma

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?

#3

BoldMinded (Brian)

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.

#4

BoldMinded (Brian)

Note to self: http://www.boutell.com/scripts/jsonwrapper.html

#5

BoldMinded (Brian)

New build emailed.

#6

Chip Lay

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!

#7

Chip Lay

False alarm - just had to set and save module settings first.

#8

Chip Lay

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?

#9

BoldMinded (Brian)

In the sessions_end function remove the &, e.g.

sessions_end($session)
#10

BoldMinded (Brian)

Confirmed, removing & fixes the issue. In the official 1.2.4 release I’m removing the sessions_end hook altogether, its not being used.

Login to reply