Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

S.O.S.


Proximo

Recommended Posts

Posted

After running through some of the scripts and translating most of the stuff to Icelandic, I get the following error when trying to access the admin feature:

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in c:\web\admin\includes\application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.;c:\php4\pear') in c:\web\admin\includes\application_top.php on line 130

 

line no.130 in the file application_top.php reads:

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

 

I?m guessing this has to do with language settings but all I did was edit the english ones and I believe my default is still set to english..

 

Any help would be greatly appreciated

Posted

Andri,

 

Did any of the text strings have apostrophes like "Don't"? The apostrophe messes up the strings. If you have them, you need to escape them.

"Don't" should be: "Don\'t"

 

ed

Posted

I have the same problem :(

 

Warning: main(includes/languages/dansk.php): failed to open stream: No such file or directory in /home/virtual/localhost/public_html/catalog/admin/includes/application_top.php on line 130

 

Fatal error: main(): Failed opening required 'includes/languages/dansk.php' (include_path='.:/usr/local/lib/php') in /home/virtual/localhos/public_html/catalog/admin/includes/application_top.php on line 130

 

The worst thing is this happens out of nowhere. YEsterday before I went to bed - I tried to acces the admin, without problems.

 

First thing this morning and it doesn't work?

Cache? MysQL server probs?

If I do a reinstall it will work instantly - but will also loose all mods I have made :(

Any ideas to our problem?

Thanks.

Dedicated OsCommerce user. 2011 will be the return of OsC

Posted

BTW: I think it has to do with the default language not beeing saved somehow.

But where can I correct this in a php file, so that I can get back in the admin module?

 

Thanks.

Dedicated OsCommerce user. 2011 will be the return of OsC

Posted

SOLUTION FOUND!!

 

You have to copy your specific language.php file from the

/catalog/includes/language/ directory

to

/catalog/admin/includes/languages/ directory.

(You will see that the 3 standard language.php files are ther, but YOURS is missing.)

 

After that - away you go ;)

 

Michael.

Dedicated OsCommerce user. 2011 will be the return of OsC

Posted

Another thing :D

 

After you have done the above you will notice that all tha icons have disappeared from the admin.

 

To solve this you have to copy all the button (*.gif) from the

admin/includes/languages/english/images/buttons

to

admin/includes/languages/YOUR LANGUAGE/buttons

 

BEWARE BEWARE BEWARE:

ONLY copy the files that are NOT allready in the destination dir.

 

Cheers.

Michael

Dedicated OsCommerce user. 2011 will be the return of OsC

Posted

problem solved.

Thanks for the feedback guys.

 

know what I did?... nothing!

maybe rebooting the machine did the trick, I don?t know..

 

spooky stuff.. :blink:

Posted

I too have the same problem...

 

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/httpd/vhosts/sycentrum.se/httpsdocs/shop/includes/application_top.php on line 290

Warning: main(includes/languages/.php): failed to open stream: No such file or directory in /home/httpd/vhosts/sycentrum.se/httpsdocs/shop/includes/application_top.php on line 290

Fatal error: main(): Failed opening required 'includes/languages/.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/sycentrum.se/httpsdocs/shop/includes/application_top.php on line 290

 

But now I have it on all my pages, not just the admin part. :(

 

I can access the first page on both the catalog site and the admin site, but when I try to click on a link I get the error.

 

And as many other have said before "I didnt do anything", everything worked fine and the next day nothing works.

 

I am running osCommerce 2.2-MS2 on a FC1 Linux with Apache 2.0.50-1.0,

php 4.3.8-1.1, mysql 3.23.58-4 with a Plesk system.

Archived

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

×
×
  • Create New...