Simius Posted June 9, 2006 Posted June 9, 2006 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
Simius Posted June 9, 2006 Author Posted June 9, 2006 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.