Posted on

magento 2.3.4 cannot call methods on tabs prior to initialization; attempted to call method ‘activate’

In Magento 2.3.4 product page when click review text or reviews and not going to review form or Customer review

Before it’s working fine in Magento 2.2.4

and it’s an error coming from the below core file in this function


$(function () {
$(‘.product-info-main .reviews-actions a’).click(function (event) {
var anchor, addReviewBlock;

anchor = $(this).attr(‘href’).replace(/^.*?(#|$)/, ”);
addReviewBlock = $(‘#’ + anchor);

if (addReviewBlock.length) {
$(‘ [data-role=”content”]’).each(function (index) { //eslint-disable-line
if ( == ‘reviews’) { //eslint-disable-line eqeqeq
$(‘’).tabs(‘activate’, index);
$(‘html, body’).animate({
scrollTop: addReviewBlock.offset().top – 50
}, 300);


I checked but I can’t find proper solution
Does anyone know about this issue?

Any help would be appreciated.


Leave a Reply

Your email address will not be published. Required fields are marked *