Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I think I removed the default language!


Demitra

Recommended Posts

Posted

Hello,

I was in admin renaming my languages to be called 1 & 2 instead of what I had before (en and de) I am using both german and english language but now I think I removed the default language because now I am getting these errors:

 

 

Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /includes/application_top.php on line 311

 

Warning: main(includes/languages/.php) [function.main]: failed to open stream: No such file or directory in /includes/application_top.php on line 311

 

Fatal error: main() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php') in /includes/application_top.php on line 311

 

 

Problem now is I cannot even access my admin anymore to change it back to what it originally was. Can anyone point me in the right direction as to where i can change the hardcoding (I am assuming???) so that I can get my website and admin back!

 

Many thanks!

Posted

If you have removed the languages then you will need to recreate the recordes in the languages table in your database

 

Use php my admin to edit it directly or here is some sql that could be edited as required.

 

-- phpMyAdmin SQL Dump

-- version 2.7.0-pl1

-- http://www.phpmyadmin.net

--

-- Host: localhost

-- Generation Time: Nov 01, 2007 at 08:37 PM

-- Server version: 5.0.18

-- PHP Version: 5.1.1

--

-- Database: `oscommerce`

--

 

-- --------------------------------------------------------

 

--

-- Table structure for table `languages`

--

 

CREATE TABLE `languages` (

`languages_id` int(11) NOT NULL auto_increment,

`name` varchar(32) collate latin1_general_ci NOT NULL,

`code` char(2) collate latin1_general_ci NOT NULL,

`image` varchar(64) collate latin1_general_ci default NULL,

`directory` varchar(32) collate latin1_general_ci default NULL,

`sort_order` int(3) default NULL,

PRIMARY KEY (`languages_id`),

KEY `IDX_LANGUAGES_NAME` (`name`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=4 ;

 

--

-- Dumping data for table `languages`

--

 

INSERT INTO `languages` VALUES (1, 'English', 'en', 'icon.gif', 'english', 1);

 

or do you have a backup?

 

Enjoy

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Sorry I guess I didnt mean I removed the languages, I renamed them in admin so now when the site searches for the default language, it cannot find anything anymore. So my question is where in the files can I go to put them back to their original codes since I cannot access admin anymore due to fatal errors. Or do I still need to add the languages again from scratch as stated below?

Archived

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

×
×
  • Create New...