View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006065 | OXID eShop (all versions) | 4.07. Source code, Test | public | 2015-03-03 12:05 | 2024-01-17 13:57 |
Reporter | s.krenz | Assigned To | |||
Priority | low | Severity | minor | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Product Version | 4.8.1 / 5.1.1 | ||||
Fixed in Version | 6.0.0-beta.1 | ||||
Summary | 0006065: Method excepts a String as first argument, but gets an array. | ||||
Description | I used Xdebug with and activated the "scream" configuration. If the Smarty modifier "oxaddparams" is used warnings will be generated. This prevents the frames from being loaded correctly. I spent some time to find out what's going wrong. The configuration variables "aLanguageURLs" and "aLanguageSSLURLs" are sent to the method oxUtilsUrl::_addHosts(). These variables are arrays NOT strings, as expected from "_addHosts". Further "_addHosts" does NOT check if it gets a string in the "sUrl" argument, it simply suppresses ANY warnings. | ||||
Additional Information | Code snippets where this bug occur: core/oxutilsurl.php (inside method _getHosts) 293: // language url 294: $this->_addHost( $oConfig->getConfigParam( 'aLanguageURLs' ), $this->_aHosts ); 295: $this->_addHost( $oConfig->getConfigParam( 'aLanguageSSLURLs' ), $this->_aHosts ); core/oxutilsurl.php (inside method _addHost) 271: if ( $sUrl && ( $sHost = @parse_url( $sUrl, PHP_URL_HOST ) ) ) { // <-- PHP warning will be generated if "xdebug.scream = 1" (or something similar) and "$sUrl" is an array! | ||||
Tags | No tags attached. | ||||
Theme | All | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
related to | 0005905 | resolved | vilma_liorensaityte | Missing checks for SSL, mallshop and language-hosts |