Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin page has no language variable


thetawaverider

Recommended Posts

Hello,

 

I'm installing an OSCommerce which got handed to me almost completed. Upon trying to access the admin/index.php file, I get the following:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in D:\inetpub\ekosmet\admin\includes\application_top.php on line 135

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in D:\inetpub\ekosmet\admin\includes\application_top.php on line 135

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.;c:\php4\pear') in D:\inetpub\ekosmet\admin\includes\application_top.php on line 135

 

Basically, it appears that the language variable is not being set. It looks like it's supposed to be set in a GET statement. Am I correct in assuming this? If so, why would it require this in the page when there is no 'language' in the query string? If fact, there is no query string at all. I'm just browsing to /admin/

 

If anyone can steer me in the right direction, I'd be most grateful.

 

Thanks,

TWR

Link to comment
Share on other sites

You have no languages in your language table (no idea how that has happened)

 

In the admin->localisation->languages, set:

 

Name: English

Code: en

Image: icon.gif

Directory: english (lower case!!!!)

Sort order: 1

 

and set as default!

Link to comment
Share on other sites

Have you checked that the files are in the language folder and that they are correct?

 

Have you set the right folder permissions? (755 I think)

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

You can search for "Warning: main(includes/languages/.php" in the forum

 

Will probably get you the same answers and also "change to a Linux webserver"

 

Could be something there that can help you though

 

Lucky Searching

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

Back to the orignal question....

 

In the admin application_top.php file, a language is apparently set based upon a 'language' variable passed with the Get method. After all, following test occurs to decide what to set the language to:

 

isset($HTTP_GET_VARS['language'])

 

Since I am starting on the home page, and there is no form submission, and I don't see any 'language' variable attached to Get, from where is this 'language' variable supposed to originate?

 

Thanks,

TWR

Link to comment
Share on other sites

Look at this post or this post

 

Don't know if it helps..

Forum search

Contributions search

Documentation search (note: docs being adapted for MS3, may be different for MS2)

3 tips for better forum searching

 

Want to post? Read this first:

osCommerce for dummies

Topic name etiquette

 

Basics:

Basics for design

Right syntax to use near '-20, 20'

Cannot re-assign $this

Parse error

Link to comment
Share on other sites

Okay, I narrowed down the problem, and it is strange.

 

For testing purposes, I've set the contents of my admin/index.php file to be only the first part of the includes/application_top.php page (up to the point where languages are mentioned). All I am doing in the page is echoing the language returned by get_browser_language();

 

This page can be viewed at http://209.200.107.21/admin/index.php. First try viewing it using IE6. Then try the same page using Firefox. Notice the difference? Why would the environmental variable HTTP_ACCEPT_LANGUAGE (which is the language echoed) not show up in Firefox?

 

One more thing. When viewing the page in IE6, refresh the page. The error that is viewable in Firefox shows up. This is not my cache, as I've completely cleared it before doing this.

 

What is going on here?

 

Thanks,

TWR

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...