Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

Galleries/Images not showing in any page #76

Open
arnaldoroman opened this issue Jan 19, 2021 · 6 comments
Open

Galleries/Images not showing in any page #76

arnaldoroman opened this issue Jan 19, 2021 · 6 comments

Comments

@arnaldoroman
Copy link

arnaldoroman commented Jan 19, 2021

I have a site created in 2018. At some point in the past few weeks all the images in the website have stopped loading.

The errors that the browser is giving me are:

JQMIGRATE: Migrate is installed with logging active, version 3.3.2
main.js?ver=dad7e176bfcff53a06943a066a76475d:241 Uncaught TypeError: Cannot read property 'msie' of undefined
at main.js?ver=dad7e176bfcff53a06943a066a76475d:241
at main.js?ver=dad7e176bfcff53a06943a066a76475d:241
at main.js?ver=dad7e176bfcff53a06943a066a76475d:241
jquery.min.js?ver=3.5.1:2 jQuery.Deferred exception: Cannot read property 'msie' of undefined TypeError: Cannot read property 'msie' of undefined
at /wp-content/themes/touchfolio/js/main.js?ver=dad7e176bfcff53a06943a066a76475d:12:25
at HTMLDocument. (/wp-content/themes/touchfolio/js/main.js?ver=dad7e176bfcff53a06943a066a76475d:153:4)
at e (/wp-includes/js/jquery/jquery.min.js?ver=3.5.1:2:30005)
at t (/wp-includes/js/jquery/jquery.min.js?ver=3.5.1:2:30307) undefined
S.Deferred.exceptionHook @ jquery.min.js?ver=3.5.1:2
jquery.min.js?ver=3.5.1:2 Uncaught TypeError: Cannot read property 'msie' of undefined
at main.js?ver=dad7e176bfcff53a06943a066a76475d:12
at HTMLDocument. (main.js?ver=dad7e176bfcff53a06943a066a76475d:153)
at e (jquery.min.js?ver=3.5.1:2)
at t (jquery.min.js?ver=3.5.1:2)
(index):116 Uncaught TypeError: Cannot read property '1' of null
at window.onerror ((index):116)

@dev4223
Copy link

dev4223 commented Jan 19, 2021

I had the same issue and my solution was this pull request: 57fe214
$browser variable was removed from jQuery. This came to Wordpress with a recent update.

@arnaldoroman
Copy link
Author

In my case i added this:

<script type="text/javascript"> jQuery.browser = {}; (function () { jQuery.browser.msie = false; jQuery.browser.version = 0; if (navigator.userAgent.match(/MSIE ([0-9]+)\./)) { jQuery.browser.msie = true; jQuery.browser.version = RegExp.$1; } })(); </script>

@hellocatfood
Copy link
Contributor

@arnaldoroman which file did you add this too?

@arnaldoroman
Copy link
Author

@arnaldoroman which file did you add this too?

I add this to header.php just before the closing head tag It doesn't work in footer.php

@brycewilsonau
Copy link

@arnaldoroman which file did you add this too?

I add this to header.php just before the closing head tag It doesn't work in footer.php

Sorry to revive a very old thread, and I know this repo is pretty quiet, but wanted to thank you for this. Fix works. Had some issue where Wordpress stopped displaying Gallery styled content on the Home page of the theme. Adding this before the closing tag of header.php via the Theme Editor worked.

@amcmasters
Copy link

amcmasters commented Nov 22, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants