Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR language urgent


innovcom

Recommended Posts

Posted

Our server was updated. php.ini, permissions and sessions have changed.

 

All of the bugs are worked out except one.

 

I now get the following error:

 

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

 

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

 

line 285 is as follows:

 

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

 

I've read somewhere else to change this to my desired language - english.php

 

This does not work.

 

Also, the default language is selected in admin.

 

Please help. I have multiple unfunctioning OSCommerce installations right now. I've been tapdancing in a minefield all day.

 

Your help is greatly appreciated.

  • 2 weeks later...
Posted

I've found the solution.

 

The fix is actually very simple. If you've applied mods to your code in an effort to fix the phpsuexec problem, undo them. Phpsuexec was recently initiated on my server. That's what caused it.

 

As I said, undo anything you may have done. Then, the solution is simple. Rename the .htaccess file in your catalog/includes folder to php.ini. If you have "Use Search Engine Friendly URLs" selected in the configuration section of the backend, deselect it. That's it.

Archived

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

×
×
  • Create New...