Osclass Documentation
Download OslcassCodeIssuesSupport Forum
v3.9.0
v3.9.0
  • Osclass
  • Beginners
    • Install
    • Updating Osclass
    • Osclass Cron
  • Configuring Osclass
    • Mail Server
    • Installing Locations
    • Increase PHP memory limit
    • Improving Search
    • Configure Cache
  • Developers
    • Basic Osclass
      • Contribute to Osclass
      • Coding Style
      • Debug PHP Errors
      • Debug SQL Queries
      • How to write a bug report
      • Database model and diagram
    • Plugins and Themes
      • Auto-update themes and plugins
      • Administrator Menus
      • Admin Toolbar
      • Style and scripts enqueue functions
      • Routes
  • Legacy Installations Pre 3.8.0
    • Introduction
    • Remove calls to Osclass
      • Delete featured products from Admin.
      • Stop auto upgrading.
      • Stop checking for updates from Osclass.
      • Disable Upgrade page
    • Remove Market from admin frontend
      • Delete Market from Admin menu.
      • Delete Market from Plugins.
      • Delete Market from Appearance (themes).
      • Delete Connect Market from Admin toolbar.
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Legacy Installations Pre 3.8.0
  2. Remove calls to Osclass

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:

if(osc_market_external_sources())

Replace it with this code:

if(osc_market_external_sources() && strpos($update_uri, 'osclass.org') === false)

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

Locate this code:

if(!osc_market_external_sources()

Replace it with this code:

if(!osc_market_external_sources() || strpos($update_uri, 'osclass.org') !== false)

​

Open the following file:

Locate this code:

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

Replace it with this code:

echo json_encode(array('error' => 3, 'error_msg' => __('Market updating not available.')));

Locate this code:

$data = osc_file_get_contents('https://osclass.org/latest_version_v1.php?callback=?');

Replace it with this code:

echo json_encode(array('error' => 1, 'msg' => __('Version could not be checked')));
PreviousStop auto upgrading.NextDisable Upgrade page

Last updated 5 years ago

Was this helpful?