X-menu.js error - Updated Thread Please

Hi,

I read the thread about the menu page in wordpress not loading when Pro is active. I have the same issue and it’s not memory related, nor do I have the same load time you listed in the thread. Mine is 84.1kb transferred and my header is very simple.

Can you please let me know what the issue is. It seems directly related to Pro as it does not happen using another theme. I’ve even tried deactivating all plugins and it does not solve anything.

Thanks,
Jonathan

Hello Jonathan,

Thanks for writing in!

Before you activate Pro theme, please make sure that you have meet the necessary requirements:

Please go to Pro > Status. Copy the results and paste it in your nest reply.

Best Regards.

Hi RueNel,

Thanks for getting back to me. Here is the information from the Status page:

Site

Site URL - https://processgroup.local
Home URL - https://processgroup.local

WordPress Environment

Version - 5.3.2
Debug is on - No
Language - en_US
Is Multisite - No
Memory Limit - 256M

Web Server Configuration

Software - nginx/1.16.0
PHP Version - 7.3.5
MySQL Version - 8.0.16

PHP Configuration

Post Max Size - 1000M
Time Limit - 1200s
Max Upload Size - 300M

Active Theme

Name - Pro – Child Theme
Version - 3.1.2
Folder - //Users/jonathan/Pruven Digital Marketing/_Pruven Digital Marketing/Services/Website Design/Local Development/Process Group/app/public/wp-content/themes/pro-child/
Parent Theme Name - Pro
Parent Theme Version - 3.1.2
Parent Theme Folder - /Users/jonathan/Pruven Digital Marketing/_Pruven Digital Marketing/Services/Website Design/Local Development/Process Group/app/public/wp-content/themes/pro

Active Plugins

  • Gravity Forms 2.1.1
  • Invisible reCaptcha 1.2.3
  • HubSpot All-In-One Marketing - Forms, Popups, Live Chat 7.18.81
  • Slider Revolution 6.1.7
  • Content Dock 2.0.4
  • Custom 404 2.0.4
  • Email Forms 2.0.4
  • Terms of Use 2.0.3
  • White Label 2.0.3
  • SEOPress PRO 3.7.8
  • SEOPress 3.7.8
  • WPS Hide Login 1.5.5

CDN

Click this button to check what CDN this site is using. - Check CDN

Hi Jonathan,

Based on the specs of your setup, there should be no issue running Pro.

It could be something else that is causing the issue. Please provide us with the admin and access to your site in a Secure Note so that we can check it:

Hi Jade,

Information has been provided in a secure note above.

Thanks,
Jonathan

Hello Jonathan,

Please double check credentials. It is not working.

Hi Lely,

I updated the secure note, please check and retry. Should be good to go now.

Thanks,
Jonathan

Hello Jonathan,

You are having the JS error because you have inserting these codes in Pro > Theme Options > Custom JS:



<script src='https://www.google.com/recaptcha/api.js'></script>
<script src="https://www.google.com/recaptcha/api.js?render=reCAPTCHA_site_key"></script>
  <script>
  grecaptcha.ready(function() {
      grecaptcha.execute('reCAPTCHA_site_key', {action: 'homepage'}).then(function(token) {
         ...
      });
  });
  </script>


<!-- Start of HubSpot Embed Code -->
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/6659068.js"></script>
<!-- End of HubSpot Embed Code -->


<!-- Facebook Pixel Code -->
<script>
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '338635593536996');
  fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
  src="https://www.facebook.com/tr?id=338635593536996&ev=PageView&noscript=1"
/></noscript>
<!-- End Facebook Pixel Code -->

<!-- LinkedIn Ad Tracking -->
<script type="text/javascript">
_linkedin_partner_id = "1152490";
window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];
window._linkedin_data_partner_ids.push(_linkedin_partner_id);
</script><script type="text/javascript">
(function(){var s = document.getElementsByTagName("script")[0];
var b = document.createElement("script");
b.type = "text/javascript";b.async = true;
b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js";
s.parentNode.insertBefore(b, s);})();
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=1152490&fmt=gif" />
</noscript>

<!-- Google Authentication Code -->
<meta name="google-site-verification" content="TM8-RowRzqQK89Ym8EmxKfIyemgjUBfKikt-3GanxG4" />

<!-- Bing Authentication Code -->
<meta name="msvalidate.01" content="21CE10E0B1164F6A92DC98CC00B84E96" />

<!-- Header Tag Information -->
<script type="application/ld+json">
{
   "@context": "http:\/\/schema.org",
   "@type": "LocalBusiness",
"url": "https://www.pruvenmarketing.com/",
   "name": "Pruven Digital Marketing",
"description":"Pruven Digital Marketing is a Canadian B2B Digital Marketing Agency in Kitchener-Waterloo. We offer a wide range of digital marketing services which include: Marketing Automation, Social Media Marketing, Lead Generation, Search Engine Optimization, Email Marketing, Content Creation, and Website Design.",
   "logo": "https://www.pruvenmarketing.com/wp-content/uploads/pd-logo-header.png",
   "image": [
   {
   "@type": "imageObject",
   "url": "https://www.pruvenmarketing.com/wp-content/uploads/pd-logo-header.png"
    }
    ],
   "email": "info@pruvenmarketing.com",
   "telephone": "+1 519-589-7486",
"aggregateRating": {
  "@type":"AggregateRating",
  "ratingValue":"5",
  "ratingCount":"10"
   },
   "address": {
       "@type": "PostalAddress",
       "streetAddress": "871 Victoria St N, Suite 220",
       "addressLocality": "Kitchener",
       "postalCode": " N2B 3S4",
       "addressCountry": "Canada",
       "addressRegion": "ON"
   },
   "hasMap": "https://goo.gl/maps/deEAhKzicRm",
  "geo": {
       "@type": "GeoCoordinates",
       "latitude": "43.449790",
       "longitude": "-80.489090"
   },
   "openingHours": [
       "Mo-Fr 09:00-18:00"
   ],
   "priceRange": "$"
   
}

</script>

<!-- GEO Tag Information -->
<meta name="DC.title" content=", b2b digital marketing agency, digital marketing agency, digital marketing kitchener, digital marketing company, digital marketing services, seo kitchener, marketing automation" />
<meta name="geo.region" content="CA-ON" />
<meta name="geo.placename" content="Kitchener" />
<meta name="geo.position" content="43.463115;-80.465635" />
<meta name="ICBM" content="43.463115, -80.465635" />

I went ahead and resolved your issue. I have installed “Insert Headers and Footers” plugin instead.

Please check your site now.

Hi RueNel,

This is still happening, The Menu page loads and then chrome pops up the message that the page is not responding. I don’t think the code you mentioned is the culprit here. I say this because I have another site running Pro and it has no code at all in the JS editor and it does the same thing.

If I change over to the Divi theme, then everything works fine. Thoughts?

Thanks,
Jonathan

Hi Jonathan,

I just check your site on Chrome and I did not encounter the issue. It could be a caching or browser add-ons or browser settings of your Chrome.

Please try viewing your site on Incognito mode where there is no caching and browser add-ons involve. Browser add-ons can cause conflict with websites too.

How do I set my browser to Incognito or private mode?
Reset Chrome settings to default

Yes, maybe the issue has nothing to do with your JS scripts, but you should not include scripts with <script> tags in there because that will cause a markup conflict on the frontend. The script on that area will automatically wrap in <script> and </script>, so that would make it a nested <script> tag if you include it. In this case, the “Insert Headers and Footers” plugin is the way to go.

Thanks,

Hi Friech,

Good call on the extensions for chrome. I have narrowed it down to being the McAfee True Key app. This is used to track passwords. As soon as it is disabled, the menu page stops working and freezes up chrome. Disable it and it works like gold.

Even better news, this also worked on the local dev site in Local Lightening even with the code you removed from the JS editor into the other plugin you put in.

Thanks so much for you help everyone! Stellar support as usual, you all ROCK!!!

Cheers,
Jonathan

Glad to hear that, and thank you for the information that it was the McAfee True Key app causing the issue. We’re happy to assist you with this.

Have a nice weekend,
Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.