Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error on line 285


Infenstein

Recommended Posts

I have just made a new fresh install but after a succesful installation when I push the CATALOG button I get this:

 

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

 

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

 

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

 

Any sugestions?

Link to comment
Share on other sites

It looks like your default language is not set to english (or whatever)

 

It should be looking for file includes/laguages/english.php not

includes/languages/.php

 

I believe this is based off of your web browers settings

 

Look for HTTP_ACCEPT_LANGUAGE when you run php.php

Link to comment
Share on other sites

I guess you probably want the other half of this.

 

Also look in your admin section under localization

and make sure you have something in languages.

 

:-D

Link to comment
Share on other sites

It looks like your default language is not set to english (or whatever)

 

It should be looking for file includes/laguages/english.php not

includes/languages/.php

 

I believe this is based off of your web browers settings

 

Look for HTTP_ACCEPT_LANGUAGE when you run php.php

 

I have the same problem as Infenstein. Going mental over it. Could you please specfy what you mean by "Look for HTTP_ACCEPT_LANGUAGE when you run php.php

" ?

 

Thanks ever so much

Link to comment
Share on other sites

Hi Frederico,

 

First, see my other post regarding setup in the admin section.

(apparently, i didn't get enough sleep last night)

 

PHP.php contains a call to phpinfo() which tells you about the

current state of your php setup.

 

I'm not sure it is installed as part of osCommerce or not.

YOu can see info about it at www.php.net/phpinfo

Link to comment
Share on other sites

Nick,

 

thanks for the help. :) Am not much further though. I checked the phpinfo and the line you are referring to shows:

 

_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us, en; q=0.5

 

This seems correct, doesn't it?

 

I get the same error messages when trying to reach the admin or the catalog pages:

 

Warning: main(includes/languages/.php) [function.main]: failed to create stream: No such file or directory in /srv/www/web1/html/catalog/admin/includes/application_top.php on line 130

 

Fatal error: main() [function.main]: Failed opening required 'includes/languages/.php' (include_path='.') in /srv/www/web1/html/catalog/admin/includes/application_top.php on line 130

 

Even more weird is that it works in one out of ten times but always goes back to the error immediately.

 

I am completely lost. It is not the first time I installed OSC but as Infenstein above it was a complete reinstall. I set register_globals to on and even tried to fix the inlude_path in php.ini. Whatever I did same result.

 

It seems to me that the language variable is somehow not set in application_top but why is beyond me. Could be a session problem.

 

Thanks if you have any kind of hint or advice

 

Federico

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...