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|
|Product Version||4.9.2 / 5.2.2|
|Target Version||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()).
|PHP Version||Not defined|
|Database Version||Not defined|
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:
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".