Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Failed opening required 'includes/languages/.php'


rj45

Recommended Posts

Hi,

 

am running SUSE 10.1 Firefox, MySQL 5.x, PHP5.

 

Right after installation, with adeguate changes to php.ini for globals and longs, I manage to get a sucessful installation, but when I try to browse the localhost/config I get the following errors:

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

 

Warning: session_start() [function.session-start]: open(SESSION_WRITE_DIRECTORY/sess_3asmrvkkps25moq07ld8mt2a21, O_RDWR) failed: No such file or directory (2) in /srv/www/htdocs/catalog/includes/functions/sessions.php on line 97

 

Warning: require(includes/languages/.php) [function.require]: failed to open stream: No such file or directory in /srv/www/htdocs/catalog/includes/application_top.php on line 285

 

Fatal error: require() [function.require]: Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/htdocs/catalog/includes/application_top.php on line 285

 

Warning: Unknown: open(SESSION_WRITE_DIRECTORY/sess_3asmrvkkps25moq07ld8mt2a21, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

 

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (SESSION_WRITE_DIRECTORY) in Unknown on line 0

 

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

am afraid there is something wrong... <_<

 

Any hit for that?

 

Thanks in advance for any help.

Link to comment
Share on other sites

Thank you Vger,

 

thank was a quick and effective one! :)

yes, storing in the DB works better.

 

But I am still puzzling for the language Error - see above on my log - which in the end break the php execution. :(

 

Any hint for that one?

 

rj45

Link to comment
Share on other sites

I ran into this problem as well.. For a quick fix I just added

?language=en

to my osCommerce URL

 

example:

 

oscommwebsite.com/dir/?language=en

 

I does this because a different language is stored in your browser cache somewhere, so clearing the cookies, and cache, etc, will do the trick, as well.

Link to comment
Share on other sites

thank you both of you.

Unfortunately both clearing cookies and using the extended URL with /?language=en did not change the situazio. :wacko:

 

Would you have any other idea let me know.

 

regards,

rj45

Link to comment
Share on other sites

thank you both of you.

Unfortunately both clearing cookies and using the extended URL with /?language=en did not change the situazio. :wacko:

 

Would you have any other idea let me know.

 

regards,

rj45

 

 

I had the same problem....if you ONLY work with english language, my solution was to change the following line

 

from:

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

 

TO:

require(DIR_WS_LANGUAGES . 'english.php');

Link to comment
Share on other sites

  • 3 weeks later...

Thank you arrannen.

Forcing the language to any available it works quite well as a workaround.

 

Nonetheless I have traced back the problem which was the following:

despite a successful installation as promped at the end of the installation, the database was not initialised.

I presume this was due to the fact that the DB user was missing some priviledges.

 

A re-installation from scratch worked fine. :thumbsup:

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...
  • 1 year later...

Archived

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

×
×
  • Create New...