Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

error message! - what to do to fix it??


Guest

Recommended Posts

Posted

Hi

 

I've uploaded the shop to my webspace but it don't work and i got this message:

 

Warning: main() [function.main]: open_basedir restriction in effect. File(/usr/share/php/includes/languages/.php) is not within the allowed path(s): (/home/www/web631/) in /home/www/web631/html/shop/includes/application_top.php on line 252

 

Warning: main(includes/languages/.php) [function.main]: failed to create stream: Operation not permitted in /home/www/web631/html/shop/includes/application_top.php on line 252

 

Fatal error: main() [function.main]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php') in /home/www/web631/html/shop/includes/application_top.php on line 252

 

can anyone please tell me what i made wrong?

thanks

andreas

Posted

You have wrong path's in config files.

There is always more than one way to do it.

And always Keep It Simple, Stupid.

Posted

but do could you tell me what paths could be wrong?

 

i've the shop running on a domain and downloaded all the files with ftp from this webspace and then uploaded them to the new domain and changed the config.php file from the running shop with the details of the other account with the same scheme but it doesent work. any clue what line of my config file could be wrong?

 

thanks

andreas

Posted

Post your /includes/configure.php

There is always more than one way to do it.

And always Keep It Simple, Stupid.

Posted

Here it is:

 

<?php

/*

 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

 define('HTTP_SERVER', 'http://www.majah-flavah.com'); // eg, http://localhost - should not be NULL for productive servers

 define('HTTPS_SERVER', 'https://www.majah-flavah.com'); // eg, https://localhost - should not be NULL for productive servers

 define('ENABLE_SSL', false); // secure webserver for checkout procedure?

 define('DIR_WS_CATALOG', '/'); // absolute path required

 define('DIR_WS_IMAGES', 'images/');

 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

 define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');



 define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');

 define('DIR_FS_DOCUMENT_ROOT', '/home/www/web631/html/');

 define('DIR_FS_CATALOG', '/home/www/web631/html/');

 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');



// define our database connection

 define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers

 define('DB_SERVER_USERNAME', 'web631');

 define('DB_SERVER_PASSWORD', '********');

 define('DB_DATABASE', 'usr_web631_1');

 define('USE_PCONNECT', 'false'); // use persistent connections?

 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

do you see the error?

Posted

If error still when you adding ?language parameter that reason not that default lang is not set.

There is always more than one way to do it.

And always Keep It Simple, Stupid.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...