Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

language error with every link?


treelo

Recommended Posts

Posted

my config looks like:

 

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'languages/');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'languages/');

 

but im getting permanent language errors along the lines of:

 

Fatal error: Failed opening required 'includes/languages/.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\catalog\includes\application_top.php on line 285

 

now the file in question isnt even that big/long so im not sure exactly what has gone wrong

 

when i change the config to:

 

  define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/english');

  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'languages/english');

  define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'languages/english');

 

the admin panel works to a degree but the rest of the site still brings up this error:

 

Fatal error: Failed opening required 'includes/languages/.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\catalog\includes\application_top.php on line 285

 

anyone shed any light or help me out?

Posted

Hi treelo,

 

Your configure.php settings look ok to me (they're the same as mine, which works), but this:

 

Fatal error: Failed opening required 'includes/languages/.php'

 

suggests osC doesn't know which language to look for because the language filename is null.

 

Do you have a default language selected in the Localization/Languages section in your store admin?

 

Cheers,

Ellie

Posted

it wont let into the admin part because of the language error

 

whenever i click a link on the main site im getting:

Fatal error: Failed opening required 'includes/languages/.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\catalog\includes\application_top.php on line 285

 

admin is just showing:

Fatal error: Failed opening required 'includes/languages/.php' (include_path='.;C:/phpdev/php/includes;C:/phpdev/php/class') in c:\phpdev\www\catalog\admin\includes\application_top.php on line 130

 

im pretty good at php but have no idea whats gone wrong here

 

as far as i can see there is no default file for the language settings

  • 3 weeks later...
  • 1 year later...
Posted

bump!! Not sure if it's specific to phpdev installations or what, and I sorted it out before but I can't remember how now, think it was something to do with a typo in the script, a space where there shouldn't be one in a language define but I can't find it. Sods law that I re-installed it for no good reason either, doh!

Posted
bump!! Not sure if it's specific to phpdev installations or what, and I sorted it out before but I can't remember how now, think it was something to do with a typo in the script, a space where there shouldn't be one in a language define but I can't find it. Sods law that I re-installed it for no good reason either, doh!

 

Interesting, I was using phpdev before, switched to xampp with php4 and it's fine, though I did create the database before installing instead of allowing the install program to create the database.

Archived

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

×
×
  • Create New...