Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in application_top.php


DnJ

Recommended Posts

Posted

I am getting this error when I try and access my website, I have no idea how to proceed to fix this or what it even refers too!

 

Anyone have any ideas?

 

Thanks for having a look at this.

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home2/dnj/public_html/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 /home2/dnj/public_html/includes/application_top.php on line 285

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

Thanks for having a look at this url ?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Well since no one has answered for some time and I have nothing better to do but go to sleep, I will take a stab at your problem.

 

I did a little troubleshooting and I don't think my local server has errors turned on because I don't get any errors and I also have only one language loaded but...

 

First check in admin| Localization | Languages and on the right it shows you the directory path of the selected language. Something similar to this:

 

/test/ms2mod/includes/languages/english

 

The code in application_top.php around line 285 is dealing with choosing the language for the browser so I deleted catalog/includes/languages/english.php and got no errors but a blank page appeared. The same thing with deleting the entire language folder.

 

So I am guessing your problem may lie within an improperly configured catalog/includes/configure.php or a missing language file in catalog/includes/languages/

 

Is the setting shown correct?

 

public_html/includes/application_top.php

 

or should it be:

 

public_html/catalog/includes/application_top.php

 

That's the best I can do off the top of my head. I hope it may lead you in the right direction.

 

Tim

How do you know when you know what you want to do for the rest of your life?

Posted

check your configure.php files for a wrong path or post them

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
Here is a copy of my catalog configure.php

 

[COLOR=blue]// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://naughtypleasuresclub.com'); // 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', 'http://naughtypleasuresclub.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/http://naughtypleasuresclub.com/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_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', '/');
 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', 'xxx');
 define('DB_SERVER_PASSWORD', 'xxx');
 define('DB_DATABASE', 'xxxxx');
 define('USE_PCONNECT', 'true'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'[/COLOR]

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

Right here:

 

define('DIR_FS_CATALOG', '/');

 

This can't be right.

 

Either get this info from your server control panel or drop a little file named phpinfo.php into your root folder.

 

This little file has only only these three lines in it:

 

<?
phpinfo();
?>

 

Let us know when you've done this. You can type in http://naughtypleasuresclub.com/phpinfo.php to find the FS path (and lots more).

 

Also:

 

this:

 

define('HTTP_COOKIE_PATH', '/http://naughtypleasuresclub.com/');

 

should be:

 

define('HTTP_COOKIE_PATH', '/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://naughtypleasuresclub.com'); // 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', 'naughtypleasuresclub.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_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', '/home2/dnj/public_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 empty for productive servers
define('DB_SERVER_USERNAME', 'xxx');
define('DB_SERVER_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'true'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

you will probably have similar issues with the FS paths in admin needing to be

define('DIR_FS_DOCUMENT_ROOT', '/home2/dnj/public_html');
 define('DIR_FS_ADMIN', '/home2/dnj/public_html/admin/');
 define('DIR_FS_CATALOG', '/home2/dnj/public_html/');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Alan,

 

Thanks I have dropped this little file into the root directory and it does supply a table of information.

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

Steve,

 

Thanks I tried the corrected settings and still got the same error.

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

can you post the two configure.php files as they are at present taken from the server.

 

did you make sure that the files were write enabled prior to the change otherwise they will not take

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
public_html configure.php

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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://naughtypleasuresclub.com'); // 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', 'naughtypleasuresclub.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_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', '/home2/dnj/public_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 empty for productive servers
 define('DB_SERVER_USERNAME', 'xxx');
 define('DB_SERVER_PASSWORD', 'xxx');
 define('DB_DATABASE', 'xxxxx');
 define('USE_PCONNECT', 'true'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

 

admin configure.php

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 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.naughtypleasuresclub.com/'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', 'http://www.naughtypleasuresclub.com/');
 define('HTTPS_CATALOG_SERVER', '');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'http://www.naughtypleasuresclub.com/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', 'http://www.naughtypleasuresclub.com/admin/'); // absolute path required
 define('DIR_FS_ADMIN', 'http://www.naughtypleasuresclub.com/admin/'); // absolute pate required
 define('DIR_WS_CATALOG', 'http://www.naughtypleasuresclub.com/'); // absolute path required
 define('DIR_FS_CATALOG', 'http://www.naughtypleasuresclub.com/'); // 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', 'xxx');
 define('DB_SERVER_PASSWORD', 'xxx');
 define('DB_DATABASE', 'xxxxx');
 define('USE_PCONNECT', 'true'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

Well here r my observations about this error .... my admin section run correctly and have no problem with it but my "Online Catalog" (named as cart) not run properly... when I 1stly go to my cart page it gives me error :

Fatal error: Call to undefined function: tep_not_null() in /home/fme/public_html/cart/includes/classes/language.php on line 74

 

and when I refresh it, gives me error:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/fme/public_html/cart/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/fme/public_html/cart/includes/application_top.php on line 285

 

and when I check 285 line of application_top.php, it shows me code:

// include the language translations

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

 

and here is my configur.php code:

<?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.fm-ent.com'); // eg, http://localhost - should not be empty for productive servers

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

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

  define('HTTP_COOKIE_DOMAIN', 'www.fm-ent.com');

  define('HTTPS_COOKIE_DOMAIN', 'www.fm-ent.com');

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

  define('HTTPS_COOKIE_PATH', '/cart/');

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

  define('DIR_WS_HTTPS_CATALOG', '/cart/');

  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/fme/public_html/cart/');

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

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

 

// define our database connection

  define('DB_SERVER', .....

?>

Posted

includes/configure.php

 

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 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.naughtypleasuresclub.com'); // 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.naughtypleasuresclub.com');
define('HTTPS_COOKIE_DOMAIN', '');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_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', '/home2/dnj/public_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 empty for productive servers
define('DB_SERVER_USERNAME', 'xxx');
define('DB_SERVER_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

admin/includes/configure.php

 

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 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.naughtypleasuresclub.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.naughtypleasuresclub.com');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home2/dnj/public_html'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home2/dnj/public_html/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/'); // absolute path required
define('DIR_FS_CATALOG', '/home2/dnj/public_html/'); // 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', 'xxx');
define('DB_SERVER_PASSWORD', 'xxx');
define('DB_DATABASE', 'xxxxx');
define('USE_PCONNECT', 'false'); // use persisstent connections?
define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Steve,

 

Thank you very much, still receiving errors on both sides

 

on public_html side

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home2/dnj/public_html/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 /home2/dnj/public_html/includes/application_top.php on line 285

 

 

 

on admin side

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home2/dnj/public_html/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 /home2/dnj/public_html/admin/includes/application_top.php on line 130

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

No worries lets just do a check the languages filea are present in the languages folder languages/english.php and languages/english/ and the permissions are correct for these

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

Yes the language files are present

 

/catalog/includes/languages/english.php

 

and

 

/catalog/includes/languages/english/

 

chmod 777
for both catalog and admin

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

check your database that the languages exist and that a default language of english has been selected as language cannot be null

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
MySQL Account Maintenance

 

 

 

Checking Database

dnj_npc2004 is now being checked.

dnj_npc2004.address_book                          OK

dnj_npc2004.address_format                        OK

dnj_npc2004.banners                                OK

dnj_npc2004.banners_history                        OK

dnj_npc2004.categories                            OK

dnj_npc2004.categories_description                OK

dnj_npc2004.configuration                          OK

dnj_npc2004.configuration_group                    OK

dnj_npc2004.counter                                OK

dnj_npc2004.counter_history                        OK

dnj_npc2004.countries                              OK

dnj_npc2004.currencies                            OK

dnj_npc2004.customers                              OK

dnj_npc2004.customers_basket                      OK

dnj_npc2004.customers_basket_attributes            OK

dnj_npc2004.customers_info                        OK

dnj_npc2004.geo_zones                              OK

dnj_npc2004.languages                              OK

dnj_npc2004.manufacturers                          OK

dnj_npc2004.manufacturers_info                    OK

dnj_npc2004.newsletters                            OK

dnj_npc2004.orders                                OK

dnj_npc2004.orders_products                        OK

dnj_npc2004.orders_products_attributes            OK

dnj_npc2004.orders_products_download              OK

dnj_npc2004.orders_status                          OK

dnj_npc2004.orders_status_history                  OK

dnj_npc2004.orders_total                          OK

dnj_npc2004.products                              OK

dnj_npc2004.products_attributes                    OK

dnj_npc2004.products_attributes_download          OK

dnj_npc2004.products_description                  OK

dnj_npc2004.products_notifications                OK

dnj_npc2004.products_options                      OK

dnj_npc2004.products_options_values                OK

dnj_npc2004.products_options_values_to_products_options OK

dnj_npc2004.products_to_categories                OK

dnj_npc2004.reviews                                OK

dnj_npc2004.reviews_description                    OK

dnj_npc2004.sessions                              OK

dnj_npc2004.specials                              OK

dnj_npc2004.tax_class                              OK

dnj_npc2004.tax_rates                              OK

dnj_npc2004.whos_online                            OK

dnj_npc2004.zones                                  OK

dnj_npc2004.zones_to_geo_zones                    OK

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

let me back my self up here you posted

catalog/includes/languages/english.php

 

and

 

/catalog/includes/languages/english/

 

are you saying that the path is catalog/includes/languages/english.php instead of includes/languages/english.php as your config settings are for the root and not a catalog directory

 

 

is the path public_html/catalog/includes/languages/english.php or public_html/includes/languages/english.php

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted
Field                  Type          Attributes      Null  Default  Extra     

languages_id      int(11)                          No                auto_increment             

name                  varchar(32)                  No                 

code                    char(2)                        No                 

image                  varchar(64)                  Yes    NULL               

directory              varchar(32)                  Yes    NULL               

sort_order            int(3)                          Yes    NULL

 

Keyname                          Type        Cardinality        Field

PRIMARY                            PRIMARY        0                languages_id 

IDX_LANGUAGES_NAME      INDEX            None            name

 

Run SQL query/queries on database dnj_npc2004 contains this query:

SELECT * FROM `languages` WHERE 1

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

Steve,

 

My mistake

 

Sorry - the catalog files reside in the root directory (public_html) not in the catalog folder

 

should have read

 

/includes/languages/english.php

 

and

 

includes/languages/english/

 

the admin files reside in

 

/admin/includes/languages/english.php

 

and

 

/admin/includes/languages/english/

"One Of Life's Greatest Pleasures Is Doing What Others Say You Can't"

Posted

you are showing primary 0

 

browse the languages table you should have the three standard languages

 

1 English

2 Deutsch

3 Espanol

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Posted

It looks like you have no languages in the database run this sql query

 

INSERT INTO `languages` VALUES (1, 'English', 'en', 'icon.gif', 'english', 1);
INSERT INTO `languages` VALUES (2, 'Deutsch', 'de', 'icon.gif', 'german', 2);
INSERT INTO `languages` VALUES (3, 'Espa?ol', 'es', 'icon.gif', 'espanol', 3);

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Archived

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

×
×
  • Create New...