Skip to main content
Inspiring
April 19, 2019
Answered

Error Message: Unchecked runtime.lastError

  • April 19, 2019
  • 3 replies
  • 9484 views

When I right click my homepage and select Inspect and select the Console tab on top, I get this error message:

index.php:1 Unchecked runtime.lastError: The message port closed before a response was received.

Any ideas?

www.winvoices.com

This topic has been closed for replies.
Correct answer Nancy OShea

You have duplicate references to different jQuery libraries.  On line 30, you have called jquery 3.4.  On line 34 you are calling jQuery 1.10 from a fancybox folder.    For best results, use only one version of jQuery per document.

<script src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous">

</script>


<script type="text/javascript" src="fancybox/jquery-1.10.2.min.js"></script>

If you're not sure which one to use, look at your plugin's latest documentation.  Some older plugins were built to work with older jQuery.  If the plugin is more than 5 years old, it's probably time to replace it with a more modern one.   I recommend Fancybox 3 as it's a big improvement for mobile device users. 

fancybox - Touch enabled, responsive and fully customizable jQuery lightbox script

3 replies

Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
April 22, 2019

You have duplicate references to different jQuery libraries.  On line 30, you have called jquery 3.4.  On line 34 you are calling jQuery 1.10 from a fancybox folder.    For best results, use only one version of jQuery per document.

<script src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous">

</script>


<script type="text/javascript" src="fancybox/jquery-1.10.2.min.js"></script>

If you're not sure which one to use, look at your plugin's latest documentation.  Some older plugins were built to work with older jQuery.  If the plugin is more than 5 years old, it's probably time to replace it with a more modern one.   I recommend Fancybox 3 as it's a big improvement for mobile device users. 

fancybox - Touch enabled, responsive and fully customizable jQuery lightbox script

Nancy O'Shea— Product User & Community Expert
HARSHIKA_VERMA
Community Manager
Community Manager
April 22, 2019

Hi Sneedbreedley,

We are sorry for the frustration caused due to "Unchecked runtime.lastError" error message. In addition to what Ben has suggested, would you mind sharing some information like which browser you are using? I am assuming you are using google chrome? If yes, please check this link laravel - How to fix 'Unchecked runtime.lastError: The message port closed before a response was received' chrome issue?…  and let us know if that helps.

Thanks,

Harshika

Inspiring
April 22, 2019

OK, I turned off each extension and only one absolutely affects the runtime error. It is Ptotopage Start Page. That's what I just started using for my home page when I open Chrome!

HARSHIKA_VERMA
Community Manager
Community Manager
April 22, 2019

Hi Sneedbreedley,

Thank you for trying these steps, would you mind trying on any other browsers except chrome and check if it's working fine? In case, it didn't work on other browsers as well, please check the contents of the page. It would be great if you could also help us with the screenshot of the error message.

If it worked fine on other browsers, could you please try to open the chrome in incognito mode, where extensions are disabled and see if that's indeed the problem.

Regards,

Harshika

BenPleysier
Community Expert
Community Expert
April 20, 2019
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Inspiring
April 20, 2019

I understood nothing on that post.

BenPleysier
Community Expert
Community Expert
April 20, 2019

Try using a local source for your jQuery library, so instead of

<script src="https://code.jquery.com/jquery-3.4.0.min.js" integrity="sha256-BJeo0qm959uMBGb65z40ejJYGSgR7REI4+CW1fNKwOg=" crossorigin="anonymous">

have something like

<script src="js/jquery-3.4.0.min.js">

where the file is in a local folder.

Then see if you still get the error message.

Googling the subject may help you to understand better.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!