( In OC V4.1.0.3 )
I had some malformed URL to my site which lead to an error message, recorded in the log file.
Trying to access array offset on value of type null in .../catalog/controller/common/language.php on line 53
I think instead it should redirect to the default language.
Here one sample of malformed request :
/index.php?route=product/product&language=../&manufacturer_id=11&product_id=183&page=7
I updated code like this :
after this code - Near line 35 /catalog/controller/common/language.php
Code: Select all
$code = $data['code'];
Code: Select all
// If the code not in array we fallback to default language
if (!isset($data['languages'][$code]['code'])) {
$code = $this->config->get('config_language');
}