Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Error after server upgrade


FunkyM

Recommended Posts

Posted

Hi all

 

my server recently got replaced with a new one and as usual there were problems. Most of them have been sorted but I have noticed that all of my OSCommerce are throwing errors in the admin sections. see below

 

I would dare say that the server would have installed that latest version of PHP and MYSQL. All of my OSC's are based on version 2.2 and have all had major modifications applied. To many to mention. But they are all throwing exactly the same errors

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home/httpd/vhosts/mydomain.com/httpdocs/admin/includes/application_top.php on line 133

 

Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /home/httpd/vhosts/mydomain.com/httpdocs/admin/includes/application_top.php on line 133

 

Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /home/httpd/vhosts/mydomain.com/httpdocs/admin/includes/application_top.php on line 133

 

These errors have caused failure in the backend. It seems like it can't access the english.php file for some reason. The main menu links on the left work but I can't access anything else. Can't access orders or anything.

 

Generally I can fix most issues but I really do need some help on this one.

 

I hope someone is the OSC community might have an answer.

 

Cheers to all FunkyM

Posted
I would dare say that the server would have installed that latest version of PHP and MYSQL

 

Well you need to know create a file called phpsettings.php containing just ..

 

<?php
phpinfo();
?>

 

Browse to it and see your settings.

 

Looks to me like the server has long predefined arrays turned off.

 

In .htaccess try ..

 

php_flag register_long_arrays  on

Posted
Well you need to know create a file called phpsettings.php containing just ..

 

<?php
phpinfo();
?>

 

Browse to it and see your settings.

 

Looks to me like the server has long predefined arrays turned off.

 

In .htaccess try ..

 

php_flag register_long_arrays  on

 

Hi I did what you said and the PHP Version is 5.2.4 and register_long_arrays is ON

 

Funkym

Posted
Hi I did what you said and the PHP Version is 5.2.4 and register_long_arrays is ON

 

Funkym

 

Well the error doesn't make sense with correct osc code, it looks like you are running MS2.2 and the lines in question are ..

 

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

 

This cannot produce an error as it tested for existence before inclusion.

 

I suppose you could try the following ..

 

Find ..

 

// set php_self in the local scope

$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);

 

Replace with ..

 

// set php_self in the local scope
 //$PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']);
 $PHP_SELF = $_SERVER['SCRIPT_NAME'];

Posted

Thanks for the comments.

 

I contacted the server at it seems that register_long_arrays was OFF at the time of the errors but they had switched it to on again which fixed all the problems.

 

Thanks a million for your held

 

Regards

 

Funkym

Archived

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

×
×
  • Create New...