Since upgrading our Magento 1.8.0.0 to 1.9.2.1 I have noticed that we're getting hundreds of errors in the log file:
2015-11-11T16:20:01+00:00 ERR (3): Warning: strpos(): Empty needle in home/directory/public_html/lib/Zend/Controller/Request/Http.php on line 508
Having had a look at the file, I can see:
if (0 === strpos($requestUri, $baseUrl)) {
// full $baseUrl matches
$this->_baseUrl = $baseUrl;
return $this;
}
if (0 === strpos($requestUri, dirname($baseUrl))) {
// directory portion of $baseUrl matches
$this->_baseUrl = rtrim(dirname($baseUrl), '/');
return $this;
}
The last thing I want to do is edit this core file to make a cheap fix. Does anybody know what could be the cause of this problem? My base URL is obviously set do I don't understand what could be causing the issue!
2015-11-12T15:40:01+00:00 ERR (3): Warning: strpos(): Empty needle in /home/directory/public_html/lib/Zend/Controller/Request/Http.php on line 508 2015-11-12T15:40:01+00:00
.