ISSUE SUMMARY: Undefined Error when Uploading Video
STEPS TO REPLICATE:
1. Upload video.
2. Get Undefined Error popup before upload completes.
3
4
5
RESULT: Get Undefined Error popup before upload completes.
EXPECTED RESULT: Upload completes successful
BROWSER: Chrome
Support,
I am using JomSocial 4.1 and I can't upgrade due to custom plugins and modules I had developed. Can you send me over the code edits that you used to solve this issue in newer versions of JomSocial so that my developer can install them and resolve this issue?
I will appreciate any and all assistance you can provide.
Blessings,
Steven
HI, Steven.
Thank you for contacting us.
Please, edit your first post here and provide working site backend credentials.
We need to login to admin dashboard in order to investigate this issue.
Michal,
Thank you for the reply.
I have updated the the login information, to a clone of my production site, for development purposes.
If you can update me on any changes that you make, it will be appreciated. Because, I will need to apply the updated files to my production site.
I appreciate all of your assistance.
Blessings,
Steven Dunn
Hi, Steven.
Please, could you check those credentials?
I still can't login...
HI, Steven.
I noticed that you use outdated and unsupported version of JomSocial -> 4.1
Could you upgrade to latest version -> 4.2.5?
Michal,
Thank you for the reply.
No, I can't upgrade because I had custom extensions developed that are not compatible with the newer versions of JomSocial.
I would greatly appreciate it if you could provide the fix for this JomSocial bug, where it could be applied manually without having to upgrade JomSocial.
Thank you for your continued assistance.
Blessings,
Steven Dunn
HI, Steven.
Please, consider to do a test site and upgrade JomSocial there.
It may be that upgrade already fix that issue.
As you use older version that was discontinued - we can't provide fixes for it if they are provided by newer version.
Please, just do a test. If test will be negative, then I will mean that issue is not related with version and I'll assign developer to investigate it in your current system.
Michal,
Thank you for the reply.
I am unable to perform an upgrade due system changes that were made that break the custom extensions I have had developed. This is the only bug in JomSocial that is causing me a problem. Since you can't work on previous versions, could you send me your internal developer change logs (regarding the original video upload fix) so that I could hire a developer resolve the issue?
I appreciate your continued assistance.
Blessings,
Steven Dunn
HI, Steven.
Before I do that, I assign our developer to take a look at this issue as well.
Hi Steven,
This issue is coming from your custom code I think, because on ajax response I find this code, which this is not coming from our code :
<script type="text/javascript" charset="utf-8" async defer>
function getEmbedcode(pid,acttype)
{
var aht = jQuery('.joms-js--stream-'+pid).outerHeight( true );
if(jQuery('.joms-js--stream-'+pid).find('.joms-media--video').length)
{
aht = parseInt(aht) + parseInt(210);
}
var sendInfo = {
activityid: pid,
activitytype: acttype,
actheight: aht
};
var popupbox = '<div class="mfp-bg mfp-ready"></div><div class="mfp-wrap mfp-close-btn-in mfp-auto-cursor mfp-ready" tabindex="-1" style="overflow-x: hidden; overflow-y: auto;"><div class="mfp-container mfp-inline-holder joms-popup__wrapper mfp-s-ready"><div class="mfp-content"></div><div class="mfp-preloader">Loading...</div></div></div>';
jQuery(popupbox).prependTo('body');
jQuery.ajax({
url: "index.php?option=com_community&task=ajaxGetembedcode",
data : sendInfo ,
type:"POST",
dataType: "json",
success: function(result){
if(result.success)
{
jQuery('.mfp-content').html(result.popupdata);
}
},
error: function() {
alert('Error occured');
jQuery('.mfp-bg').remove();
jQuery('.mfp-preloader').remove();
jQuery('.mfp-wrap').remove();
}
});
}
function closeEmbed()
{
jQuery('.mfp-bg').remove();
jQuery('.mfp-preloader').remove();
jQuery('.mfp-wrap').remove();
}
function show_e_preview(thiselem,actid)
{
var tog = jQuery(thiselem).attr('data-toggle');
if(tog == 'show_embed')
{
var getacthtml = jQuery('.joms-js--stream-'+actid).html();
jQuery('.e_preview').html(getacthtml);
jQuery('.e_preview .joms-comment__reply').remove();
jQuery('.e_preview .joms-list__options').remove();
jQuery(thiselem).attr('data-toggle','hide_embed');
jQuery(thiselem).html('Hide Preview');
}
else
{
jQuery('.e_preview').html('');
jQuery(thiselem).attr('data-toggle','show_embed');
jQuery(thiselem).html('Show Preview');
}
}
</script>
Dimas,
Thank you for the detailed reply.
I have forwarded the information to the developer who created the custom software. He is working on the issue now.
I greatly appreciate your assistance with this issue.
Have a Blessed day,
Steven Dunn