Has any one experienced the following issue?
Warning: json_encode() expects exactly 1 parameter, 2 given in /home/xxxxxxx/public_html/Cache/Cookie.php on line 47
This error appears in the main desktop website. The following WURFL script is placed in the header. The error is on http://www.visioninwhite.com.au
Code: Select all
<?php
// Include the WURFL Cloud Client
// You'll need to edit this path
require_once '././Client/Client.php';
// Create a configuration object
$config = new WurflCloud_Client_Config();
// Set your WURFL Cloud API Key
$config->api_key = 'xxxxxx:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
// Create the WURFL Cloud Client
$client = new WurflCloud_Client_Client($config);
// Detect your device
$client->detectDevice();
// Use the capabilities
if ($client->getDeviceCapability('is_wireless_device')) {
header("Location: http://m.visioninwhite.com.au/");
}
?>
Cheers,
Paul