Copy link to clipboard
Copied
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?
1 Correct answer
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,
...Copy link to clipboard
Copied
Copy link to clipboard
Copied
I understood nothing on that post.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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 rec... and let us know if that helps.
Thanks,
Harshika
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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

