Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New Installation Failure: Warning: require(includes/languages/en.php)


scrfix

Recommended Posts

Somebody please help.

I cannot seem to get past this error. I have attempted to try to resolve this myself. I was able to find a work-a-round however I am looking for a repair, not a work around.

 

Please visit:

http://67.191.62.141/catalog/

 

If you actually see a website then click a link within the shopping cart. You should get the following error messages:

 

Warning: require(includes/languages/en.php) [function.require]: failed to open stream: No such file or directory in D:\Inetpub\scrfix\catalog\includes\application_top.php on line 288

Warning: require(includes/languages/en.php) [function.require]: failed to open stream: No such file or directory in D:\Inetpub\scrfix\catalog\includes\application_top.php on line 288

Fatal error: require() [function.require]: Failed opening required 'includes/languages/en.php' (include_path='.;c:\php5') in D:\Inetpub\scrfix\catalog\includes\application_top.php on line 288

 

I know where the error is supposed to be.

I know a supposed work-a-round for just using the english language only is.

I just don't know why the reason for the error or how to repair the error.

Can someone please help?

 

Here is what I do know.

1. This error is from the following line in the code in configure.php: Line 18; define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

2. I can work-a-round this by utilizing define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'english.php');

3. I believe the error is caused because there is a null value in the variable $language in the index.php file but am unsure.

 

Some extra knowledge that might be necessary

I have modified some of the database files however I have tested this even without modifications and still get the same error messages.

Since I utilize the database for multiple items, it is a requirement that I have a prefix before every database entry. OSCommerce does not come with prefixes or allow you to set one up during installation so I changed those files to accommodate a prefix within the database during installation

 

The files that I modified for the installation are:

1. oscommerce.sql file located in the install directory

2. Both of the database_tables.php files within the includes and admin includes directory

3. database.php file within the install/includes/functions directory.

4. I have added my own include("../my.php") file as well for head and footer encapsulates however I still receive this error with or without my code in the file.

 

Also, this is a Windows Installation not a Linux or Unix.

 

Thanks for any insight.

 

Wayne

Link to comment
Share on other sites

There is an error above howver I can no longer edit this.

Above I stated the error was in:

1. This error is from the following line in the code in configure.php: Line 18; define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

2. I can work-a-round this by utilizing define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'english.php');

 

That is incorrect. The error is with the following line:

1. Application_top.php in the includes directory line:288 require(DIR_WS_LANGUAGES . $language . '.php');

2. A work-a-round for this is by putting require(DIR_WS_LANGUAGES . 'english.php');

 

I am looking for a repair, not a work a round. I want to be able to utilize the other languages, not just english.

 

I also gave you an incorrect URL. Since I cannot edit, please go to http://67.199.62.141/catalog/

 

Wayne

Link to comment
Share on other sites

At the bottom of your site is the error message

 

0 -

 

select startdate, counter from TABLE_COUNTER

 

 

Looks like your 2 configuration files are not set up to connect to your db with the correct credentials, just an assumption cos if one is wrong it is likely the other is too :-)

 

Fix that first then work on the language.

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 ======>>>>>.

Link to comment
Share on other sites

Where did you see that at? I don't see that. Can you be more specific as to what exact page you saw this one?

 

I am able to get into the admin with no problems. I was messing around with the files. Perhaps you saw the cart while I was attempting to debug this and get more information.

 

http://67.199.62.141/catalog/admin/login.php

 

Immediately after the installation I can see the cart. It is when I click on any link within the shopping cart that I get the above errors. I can navigate through the admin with no problems whatsoever.

 

I have added a bunch of notes onto the page as well:

http://67.199.62.141/catalog/index.php

 

Wayne

 

 

At the bottom of your site is the error message

 

0 -

 

select startdate, counter from TABLE_COUNTER

 

 

Looks like your 2 configuration files are not set up to connect to your db with the correct credentials, just an assumption cos if one is wrong it is likely the other is too :-)

 

Fix that first then work on the language.

Link to comment
Share on other sites

Okay,

 

I see that error now. If it wasn't connecting with the database however, it would't show anything. This shows images and the error seems to reset itself with the sessions. If I leave the websitet for 20 minutes and come back, I see the page you are talking about.

 

When I try to go anywhere, I get the above error.

 

Wayne

Link to comment
Share on other sites

I am a new user and I had a problem during the instalation of oscommerce.

 

This is the warning message at the 4th step of installation:

Warning: fopen() [function.fopen]: Unable to access /includes/configure.php in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 116

 

Warning: fopen(/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 116

 

Warning: fputs(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 117

 

Warning: fclose(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 118

 

Warning: fopen() [function.fopen]: Unable to access /admin/includes/configure.php in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 152

 

Warning: fopen(/admin/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 152

 

Warning: fputs(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 153

 

Warning: fclose(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 154

 

 

 

After that I cannot enter to administration tool or catalog.

Please if you have any information give it simply because i am not an excelent user.

 

Thanks

Link to comment
Share on other sites

sxint,

 

You will have to reinstall OSCommerce. I ran into that too. Call your hosting company and have them make writeable the following files in the following directories:

 

/catalog/includes/configure.php

/catalog/admin/includes/configure.php

 

With that being said, I have been having major issues with this installation. I am a little resistant to install a product that hasn't been updated in over 3 years and they have no plans of updating. I have run into issues where I had to rewrite code to make it work with PHP5 because of lack of updates. I did happen to find another website where the guy does have OSCommerce rewritten and updates all of the time. He doesn't appear to charge for the shopping cart however he does charge for the templates (quite expensive at that compared to other websites) but he adds and updates the shopping cart all of the time. I am going to test that out vs. trying to piece this together in hopes that someone will possibly help me out here and not knowing if this is going to break on me again when PHP 6 comes out.

 

http://www.oscmax.com

 

Wayne

 

I am a new user and I had a problem during the instalation of oscommerce.

 

This is the warning message at the 4th step of installation:

Warning: fopen() [function.fopen]: Unable to access /includes/configure.php in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 116

 

Warning: fopen(/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 116

 

Warning: fputs(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 117

 

Warning: fclose(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 118

 

Warning: fopen() [function.fopen]: Unable to access /admin/includes/configure.php in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 152

 

Warning: fopen(/admin/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 152

 

Warning: fputs(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 153

 

Warning: fclose(): supplied argument is not a valid stream resource in E:\WWWData\SiteData\Domains\seeaak.gr\ROOT\Inetpub\wwwroot\catalog\install\templates\pages\install_4.php on line 154

 

 

 

After that I cannot enter to administration tool or catalog.

Please if you have any information give it simply because i am not an excelent user.

 

Thanks

Link to comment
Share on other sites

With that being said, I have been having major issues with this installation. I am a little resistant to install a product that hasn't been updated in over 3 years and they have no plans of updating. I have run into issues where I had to rewrite code to make it work with PHP5 because of lack of updates. Wayne

 

The latest version is compatible with php5, so why not install it. Oh, and oscommerce has been updated 3 times in the last 3 years.

 

Otherwise, good luck with your other option.

Link to comment
Share on other sites

I went to OSCommerce and downloaded the latest version. The last update says 2005. Where can you get the latest version from? According to that I am having major issues with the installation and I have had to find fixes for having PHP5 where the sessions weren't working correctly. Perhaps I am not in the latest version V2.2?

 

Wayne

 

The latest version is compatible with php5, so why not install it. Oh, and oscommerce has been updated 3 times in the last 3 years.

 

Otherwise, good luck with your other option.

Link to comment
Share on other sites

oscommerce rc2 is the latest version.

 

default language needs to be defined as english and not en.

 

chek Your db

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

the values should be euivalent to this.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

I don't believe I have RC2. I believe I have 2.2. Where can I download RC2?

Those values are in the database satish.

 

Wayne

 

oscommerce rc2 is the latest version.

 

default language needs to be defined as english and not en.

 

chek Your db

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

the values should be euivalent to this.

 

Satish

Link to comment
Share on other sites

Have you tried searching or looking around the site??

 

Download Latest Here http://www.oscommerce.com/solutions/downloads

 

Read the Docs http://www.oscommerce.info/kb/osCommerce

 

Search for contribs with google, put site:http://addons.oscommerce.com/ then query

 

Search the forum with google by putting site:http://www.oscommerce.com/forums then query.

 

 

:rolleyes:

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

I do have the latest version 2.2rc2a.

 

I did attempt to use OSCMax as well and after waiting forever for the upload process, I went to the install and found out that you have to have register_globals on within the PHP.ini. Well, since I am not on a dedicated server and setting that leaves open some security vulnerabilities, that is no longer an option.

 

Wayne

Link to comment
Share on other sites

Why don't you look at the file structure of what you`ve installed, then you would note that there are no files called en.php sort of tells you where your error is. Install things properly & they work, funny that!

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Sam,

 

I mentioned that there is no en.php however how does that tell me where the problem is? As I mentioned eariler, I know WHAT the problem is. I just don't know how to repair it.

 

Keep in mind that I DID install this correctly where I didn't change anything and it still didn't work with the same error. Now what?

 

Wayne

 

Why don't you look at the file structure of what you`ve installed, then you would note that there are no files called en.php sort of tells you where your error is. Install things properly & they work, funny that!
Link to comment
Share on other sites

Sam,

 

I mentioned that there is no en.php however how does that tell me where the problem is? As I mentioned eariler, I know WHAT the problem is. I just don't know how to repair it.

 

Keep in mind that I DID install this correctly where I didn't change anything and it still didn't work with the same error. Now what?

 

Wayne

 

But you did change things, and thats what created your error. Think back to exactly what you changed & you`ll be there.

 

Or you could run install again, as I said.

 

Hint ADMIN

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

if (!tep_session_is_registered('language')) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

include(DIR_WS_CLASSES . 'language.php');

$lng = new language();

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

$lng->get_browser_language();

}

 

$language = $lng->language['directory'];

$languages_id = $lng->language['id'];

}

 

// include the language translations

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

 

in application_top.php takes the value of $language as en.

so chek:

$lng->language['directory'];

$lng->set_language($HTTP_GET_VARS['language']);

Your browser language.

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...