Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

failed to open stream in admin (language problem)


Simius

Recommended Posts

Posted

Hi all, by moving the website on a new server that use php5, i'm getting this errors:

 

Warning: main(includes/languages/italian/) [function.main]: failed to open stream: Success in /var/www/vhosts/xxxxxxx.com/httpdocs/admin/includes/application_top.php on line 134

 

Warning: main(includes/languages/italian/) [function.main]: failed to open stream: Success in /var/www/vhosts/xxxxxxx.com/httpdocs/admin/includes/application_top.php on line 134

 

Warning: main() [function.include]: Failed opening 'includes/languages/italian/' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/xxxxxxx.com/httpdocs/admin/includes/application_top.php on line 134

 

The error in application_top.php is at lines:

$current_page = basename($PHP_SELF);

if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {

include(DIR_WS_LANGUAGES . $language . '/' . $current_page);

}

 

The admin appear as half translated, some fields are showed as BOX_ENTRY_SUPPORT_FORUMS, BOX_ENTRY_MAILING_LISTS...and so on.

 

Any ideas?

Thank you so much

Posted

Hope can help somebody with this php5 twick, i solved by changing

 

$current_page = basename($PHP_SELF);

to

$current_page = basename($_SERVER['PHP_SELF']);

 

in admin/includes/application_top.php

Archived

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

×
×
  • Create New...