Stop checking for updates from Osclass.

Updated 16/09/2019 to fix auto update for older plugins (Google Maps and Google Analytics).

Scroll down to see updated part (between warning messages).

Open the following file:

oc-includes/osclass/utils.php

Locate this code:

$uri = osc_market_url($type, $update_uri);

Replace it with this code:

Locate this code:

$url = osc_market_url($section, $element);$data = json_decode(osc_file_get_contents($url, array('api_key' => osc_market_api_connect())), true);

Replace it with this code:

Locate this code:

$download_post_data = array('api_key' => osc_market_api_connect());

Replace it with this code:

$download_post_data = array();

Locate this code:

$url = osc_market_url($section, $code);$data = osc_file_get_contents($url, array('api_key' => osc_market_api_connect()));$data = json_decode(osc_file_get_contents($url, array('api_key' => osc_market_api_connect())), true);

Replace it with this code:

return array('error' => 2, 'message' => __('Market updating not available.'), 'data' => $data);

Locate this code:

Replace it with this code:

Note! The upper replacement must be done on all occurrences of the code (it appears 2 times).

Locate this code:

Replace it with this code:

Open the following file:

Locate this code:

Replace it with this code:

Locate this code:

Replace it with this code:

Last updated

Was this helpful?