Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Setting errors..


noa

Recommended Posts

Posted

Well, when i started with ocCommerce i found many errors ...

Many errors in language, in the part of Account.

I had to edit all php files this:

 

require (DIR_WS_LANGUAGES. $ language. '/'. FILENAME_ACCOUNT)

 

to

 

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

 

or

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

 

A lot of work ... also every time i edited something, something would disappear ... u_u'

This needs serious adjustments ... and if i correct it promises to bring something to the community :)

 

Greetings and see you soon.

Posted

There's nothing wrong with the base osC. You're screwing it up somewhere with your changes. The fixes you give are wrong, anyway.

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

requires that $language be defined (e.g., "english"), as well as DIR_WS_LANGUAGES from configure.php and FILENAME_ACCOUNT ("account.php") from filenames.php. Obviously, you either have a damaged/incomplete filenames.php, or it's not being included/required for some reason, or $language isn't being defined due to broken code somewhere. You should be getting

require ('includes/languages/english/account.php');

as the end result.

 

if i correct it promises to bring something to the community :)

How about fresh baked chocolate chip cookies?

Posted

Hmmmm okok, i do understand that file is broken. but this is the solution i found ...

 

This fix works good for all languages of website:

require (DIR_WS_LANGUAGES. $ language. '/'. FILENAME_ACCOUNT)

to

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

 

 

i'm going to cook the cookies n_n

Archived

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

×
×
  • Create New...