Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Language & Currency not defined


zdat

Recommended Posts

>_<

 

I can have the shop running perfectly, do something stupid, run a DB backup restore through admin, and the site breaks with the same errors. I have searched endlessly for these errors, I've tried various fixes found in the forums, but nothing seems to apply directly.

 

Notably, I get this if I open the shop itself:

Warning: require(includes/languages//index.php) [function.require]: failed to open stream: No such file or directory in /...catalog/index.php on line 33

Fatal error: require() [function.require]: Failed opening required 'includes/languages//index.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /...catalog/index.php on line 33

 

This is line 33 from cat/index.php:

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);

 

 

This is what I get at top of page when I open the admin area:

 

ERROR_NO_DEFAULT_CURRENCY_DEFINED

ERROR_NO_DEFAULT_LANGUAGE_DEFINED

 

I also see this in the admin pages:

Warning: Division by zero in /catalog/admin/includes/classes/split_page_results.php on line 33

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-0, MAX_DISPLAY_SEARCH_RESULTS' at line 1

 

select languages_id, name, code, image, directory, sort_order from languages order by sort_order limit -0, MAX_DISPLAY_SEARCH_RESULTS

 

I'm using: EP vers: 2.76g-MS2 , osCommerce 2.2-MS2, UltraPics. I had it all working fine (backed up the DB daily when shop was working), needed to restore an earlier DB version, then splat.

 

 

Please point me in the right direction. Thx.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...