Advertisement:

Author Topic: How to increase osclass memory limit 3.7.1  (Read 825 times)

developersend

  • Newbie
  • *
  • Posts: 30
How to increase osclass memory limit 3.7.1
« on: March 22, 2017, 11:10:04 pm »
I'm using OSCLASS 3.7.1 bender theme but page loading is very slow. How Increasing memory limit. I am can't find php.ini file in my shared hosting and can't find define('OSC_MEMORY_LIMIT', '128M') in config.php.
Please help me.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: How to increase osclass memory limit 3.7.1
« Reply #1 on: March 22, 2017, 11:33:44 pm »
If you are in a shared hosting you probably can not change your memory limit

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: How to increase osclass memory limit 3.7.1
« Reply #2 on: March 23, 2017, 03:26:09 am »
Actually, many shared hosting companies (the good ones, at least) allow you to raise the limit through different methods. Ask your hosting support how to do it, and here's one common way: put this inside your php file (for example, oc_load.php after the first <?php line):

Code: [Select]
ini_set('memory_limit', '256M');
Then check with phpinfo() or ini_get() to see if it has any effect. There are other ways, server- and hosting- specific, so better ask them to know for sure what and if will work in your case.

Regards

developersend

  • Newbie
  • *
  • Posts: 30
Re: How to increase osclass memory limit 3.7.1
« Reply #3 on: March 23, 2017, 10:46:12 pm »
I'm writing code oc_load.php but don't effect.

Please see this

http://sellbuybazar.com/a.php

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: How to increase osclass memory limit 3.7.1
« Reply #4 on: March 23, 2017, 10:51:47 pm »
Your limit is set to 1 GB RAM (1024M), which is more than enough for most installations.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4689
Re: How to increase osclass memory limit 3.7.1
« Reply #5 on: March 24, 2017, 09:45:04 am »
You are trying to downgrade your memory limit and having LESS limit than before?