Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wp-smush.../vendor/mixpanel/mixpanel.../examples
File: custom_consumer.php
<?php
[0] Fix | Delete
require_once("../lib/Mixpanel.php"); // import the Mixpanel class
[1] Fix | Delete
require_once("consumers/ObConsumer.php"); // import the custom consumer
[2] Fix | Delete
[3] Fix | Delete
$mp = new Mixpanel("MIXPANEL_PROJECT_TOKEN", array(
[4] Fix | Delete
"debug" => true,
[5] Fix | Delete
"max_batch_size" => 1,
[6] Fix | Delete
"consumers" => array("ob" => "ObConsumer"),
[7] Fix | Delete
"consumer" => "ob"
[8] Fix | Delete
));
[9] Fix | Delete
[10] Fix | Delete
$mp->track("test_event", array("color" => "blue"));
[11] Fix | Delete
$mp->track("test_event", array("color" => "red"));
[12] Fix | Delete
[13] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function