Advertisement:

Author Topic: Cannot get Next revo template to work with Osclass 3.5.2  (Read 837 times)

venus

  • Newbie
  • *
  • Posts: 23
Cannot get Next revo template to work with Osclass 3.5.2
« on: April 15, 2015, 06:11:10 am »
 I purchased Next revo template the other day.
 I cannot get it to run with Osclass 3.5.2. I get the error:

Maximum execution time of 30 seconds exceeded in Maximum execution time of 30 seconds exceeded in /home3/ikpoho/public_html/mortgagefreeads.com/oc-includes/php-gettext/streams.php

All the free templates work with Osclass 3.5.2. seamlessly without error (I have gone back to the bender theme).

I am still working with support to get this to work.

I've been to these web sites. Cannot make head or tail of what they are saying

http://forums.osclass.org/development/bug-osc-engine-bug/
https://github.com/osclass/Osclass/issues/1862

The 2 sites above suggest that the code snippet below be modified. Can someone check this out for me?
Change the code below to exactly what?

 function read($bytes) {
    if ($bytes) {
      fseek($this->_fd, $this->_pos);

      // PHP 5.1.1 does not read more than 8192 bytes in one fread()
      // the discussions at PHP Bugs suggest it's the intended behaviour
      $data = '';
      while ($bytes > 0) {
        $chunk  = fread($this->_fd, $bytes);
        $data  .= $chunk;
        $bytes -= strlen($chunk);
      }
      $this->_pos = ftell($this->_fd);

      return $data;
    } else return '';
  }


« Last Edit: April 15, 2015, 06:14:41 am by venus »

frosticek

  • Hero Member
  • *****
  • Posts: 3948
Re: Cannot get Next revo template to work with Osclass 3.5.2
« Reply #1 on: April 15, 2015, 12:46:18 pm »
@venus
1) why you do not contact theme author?
2) increase maximum execution time to 120seconds in your PHP settings, this should not cause problems anymore

venus

  • Newbie
  • *
  • Posts: 23
[SOLVED]Re: Cannot get Next revo template to work with Osclass 3.5.2
« Reply #2 on: April 15, 2015, 08:55:45 pm »
While tranfering the files to my server I used ASCII mode instead of Auto. That triggered the deceptive error message  Maximum "execution time of 30 seconds exceeded in .........."
I tranferred files again using Auto mode and everything worked like a charm. Error looks unrelated