Advertisement:

Author Topic: osclass need internet access ?  (Read 598 times)

chapy23

  • Newbie
  • *
  • Posts: 2
osclass need internet access ?
« on: February 27, 2017, 09:27:46 pm »
hi there,

I just install the version 3.7.1 on a server in my virtual infrastructur.
The problem is that none of my server as normal access (directly) to the internet.

The old version 3.5.2 seem to work correctly in my environnement. But now with 3.7.1 that need internet acces, i can't really navigate in the web "oc-admin" interface, all seem to "lag" and finish after 10 minutes  internet error 500

I use Debian 8.7 and Apache with php5-fpm

any help how to desactivate that internet access ?

chapy23

  • Newbie
  • *
  • Posts: 2
Re: osclass need internet access ?
« Reply #1 on: February 27, 2017, 10:57:43 pm »
Hi,

After working pretty hard here with my collegue webmaster, here's the fix:

oc-includes\osclass\helpers\hPreference.php
osc_last_version_check()
osc_themes_last_version_check()
osc_plugins_last_version_check()
osc_languages_last_version_check()

change: return (getPreference('last_version_check'));
for:  return time();

it will stop the site to try connecting to the internet

happy os-classing  :-)


Shafi

  • Newbie
  • *
  • Posts: 38
  • shoot only if you can kill.
Re: osclass need internet access ?
« Reply #2 on: March 28, 2017, 12:10:19 pm »
thanks for the input. If fixed. Kindly [close] the thread