Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

errors after installation


Guest

Recommended Posts

I followed the installation guide and all went well. When I click on the catalog button on the final install page, I see the store. When I initially go to /admin after the install I see the blue panel. However if I try to refresh or navigate away I get the following messages. This is then all I get from any page:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/includes/application_top.php on line 285

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/includes/application_top.php on line 285

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/catalog/includes/application_top.php on line 285

 

 

I've no idea what to do from here.

Link to comment
Share on other sites

I followed the installation guide and all went well. When I click on the catalog button on the final install page, I see the store. When I initially go to /admin after the install I see the blue panel. However if I try to refresh or navigate away I get the following messages. This is then all I get from any page:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/includes/application_top.php on line 285

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/includes/application_top.php on line 285

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/catalog/includes/application_top.php on line 285

I've no idea what to do from here.

 

 

Okay on MS2.2 line 284 & 285 should look like this

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

 

check to make sure you have the language files installed properly

 

look under

 

catalog/includes/languages/

 

for

 

english.php

 

or

 

yourlanguagehere.php

 

make sure it is present

 

if it is

 

then it not getting passed to $language variable

 

try looking over your classes/language.php and make sure it installed correctly

Link to comment
Share on other sites

english.php is present and lines 284 and 285 appear to be correct.

 

what am I looking for in classes/language/php and how will I know it's installed correctly?

Link to comment
Share on other sites

I reuploaded language.php

 

and now I get this error:

 

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/admin/includes/application_top.php on line 130

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/admin/includes/application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/domain/public_html/catalog/admin/includes/application_top.php on line 130

 

 

 

line 130 is a blank line

Link to comment
Share on other sites

It looks as if the installation did not write all of the data to your admin/includes/configure.php file.

 

Compare it against your includes/configure.php file and make sure that things like the http_server and http_catalog_server are filled in correctly.

 

Vger

Link to comment
Share on other sites

OK, this is what I have in the configure.php:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 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.domain.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.domain.co.uk');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '');

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

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

define('DIR_WS_INCLUDES', 'includes/');

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', 'pub/');

define('DIR_FS_CATALOG', '/home/domain/public_html/catalog/');

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 empty for productive servers

define('DB_SERVER_USERNAME', 'user');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'database');

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

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

 

 

 

 

and this is what is in the admin/configure.php:

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 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.domain.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://www.domain.co.uk');

define('HTTPS_CATALOG_SERVER', '');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', '/home/domain/public_html/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', '/home/domain/public_html/catalog/admin/'); // absolute pate required

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

define('DIR_FS_CATALOG', '/home/domain/public_html/catalog/'); // absolute path required

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

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

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

define('DIR_WS_INCLUDES', 'includes/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

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

define('DB_SERVER_USERNAME', 'user');

define('DB_SERVER_PASSWORD', 'password');

define('DB_DATABASE', 'database');

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

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

?>

Link to comment
Share on other sites

I would say the temporary fix is to hardcode the language so you can get your store up and running. You can manually include the language file of your choice.

 

Replace the following line (in application_top.php) :

 

require(DIR_WS_LANGUAGES . $language . '.php');

 

With

 

require(DIR_WS_LANGUAGES . 'english.php');

 

 

Similarly, if you want a language other than english, then just replace english with spanish etc.

 

 

This will get you over this hump. Let me know if you do not know how to edit files.

Amit

Link to comment
Share on other sites

OK, I have done that - I got another error page instead of the storefront, but I could at least access the admin area to start my set up, so thank you!

 

I've come across another problem now however - in the modules set up section I get the following error for each php file:

 

Warning: main(/home/domain/public_html/catalog/includes/languages//modules/payment/authorizenet.php): failed to open stream: No such file or directory in /home/domain/public_html/catalog/admin/modules.php on line 12

 

 

I installed oscommerce a few months ago and didn't have these problems. I uninstalled it though, because it wasn't what I needed at the time. Now it seems I'm getting errors at every turn, and am feeling out of my depth to fix them.

 

 

Can anyone tell me how to sort this latest problem?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...