View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006011 | OXID eShop (all versions) | 1.01. Products (product, categories, manufacturer, promotions etc.) | public | 2015-01-07 09:44 | 2016-09-14 10:54 |
Reporter | d3 | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.9.2 / 5.2.2 | ||||
Fixed in Version | 6.0.0-beta.1 | ||||
Summary | 0006011: Function 'getFileUrl' does not exist or is not accessible! | ||||
Description | The file "EXCEPTION_LOG.txt" recorded the following message, each time the details page is loaded: Function 'getFileUrl' does not exist or is not accessible! This method (in class: oxarticle) was deprecated in version 4.8.x and was removed in version 4.9.x. In the template file: application\views\azure\tpl\page\details\inc\media.tpl this method is still used ($oDetailsProduct->getFileUrl()). | ||||
Tags | Solution Provided | ||||
Theme | Azure | ||||
Browser | All | ||||
PHP Version | Not defined | ||||
Database Version | Not defined | ||||
has duplicate | 0006331 | closed | with an defined File (products -> extended) product details can not be displayed (frontend) |
|
http://wiki.oxidforge.org/Tutorials/Removed_deprecated_source#Removed says: "oxArticle::getFileUrl() - Article file is duplicate of media. Use oxArticle::getMediaUrls() instead for file media." |
|
just in case someone want a quick fix for your shop: https://github.com/vanilla-thunder/fix-fileurl |
|
Bug still alive in 4.9.7 (azure) This is not a peace of cake: details page is not loading! Sorry martinwegele: you are wrong. There are 2 different types of media files: first the list of media files. here you can use getMediaFiles() (or getMediaUrls()) as it is done in azure. Second is the property of oxartice "oxfile". And the missing function getFileUrl() does nothing else then get the actual upload path. So vanilla is absolutly right with his fix. And oxid should fix this. |
|
As netfeld said, there are two different types of media files. The old type "oxfile" will should not be used anymore. Please use the new type "MediaURLs". https://github.com/OXID-eSales/oxideshop_ce/commit/984c6e89d4207469f8b6ec046e74fd8a7e779f69 |