News:

Looking for documentation? Take a look on our wiki

Main Menu

mediahandler bug in Administrator area + solution

Started by profyart, April 12, 2017, 14:25:22 PM

Previous topic - Next topic

profyart

joomla 3.6.5
Virtumart 3.2.1

Issue:
Administrator area -> Virtuemart -> Products (or Categories) -> Editing product page, images tab
buttons [-16] [+16] (last used images) does not work.

Javascript console error:
QuoteUncaught ReferenceError: medialink is not defined
    at HTMLAnchorElement.<anonymous> (mediahandler.js?vmver=2f2167a9:34)
    at HTMLAnchorElement.dispatch (jquery.min.js:3)
    at HTMLAnchorElement.r.handle (jquery.min.js:3)​

Cause and solution:
file /components/com_virtuemart/assets/js/mediahandler.js
line 34:
QuotesearchMedia.autocomplete( 'option' , 'source' , medialink+'&start='+media.start

Shold be
QuotesearchMedia.autocomplete( 'option' , 'source' , Virtuemart.medialink+'&start='+media.start




jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

profyart

Quote from: jenkinhill on April 12, 2017, 15:20:51 PM
Thx, was already fixed in SVN rel#9497

Hi! Please, recheck it, cause "Uncaught ReferenceError: medialink is not defined" is still there.

And line 34 of mediaandler.js still has ... medialink+'&start.... instead of Virtuemart.medialink
This was not changed in 9497 as I can see in developer branch.
Thx!

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jenkinhill

Thanks Max, I had got lost in the latest revisions - and now testing with J3.7RC2
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum