Advertisement:

Author Topic: Erros on installation  (Read 607 times)

marcello

  • Newbie
  • *
  • Posts: 1
Erros on installation
« on: January 27, 2014, 03:12:17 am »
Hello! I'm trying to do an installation, and is giving the following error:

PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'E:\home\MYSITE\Web\teste/config.php' (include_path='E:\home\MYSITE\Web\teste\oc-includes\htmlpurifier;.;c:\php5\includes') in E:\home\MYSITE\Web\teste\oc-includes\osclass\install-functions.php on line 298

What should I do to correct this error and complete my installation?

Warm regards
Marcello

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Erros on installation
« Reply #1 on: January 27, 2014, 01:26:12 pm »
Hi,

Seems you're using Windows with WAMP, there is a slash here that I think should be a backslash in your case:

Quote
E:\home\MYSITE\Web\teste/config.php

Try changing this line in index.php (root folder):

Code: [Select]
define('ABS_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . '/');
with

Code: [Select]
define('ABS_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . '\');
and see if you may do the installation. Remember to restore the original line when you're working on a Linux hosting server.

Regards