dimsemenov / Touchfolio

Free responsive portfolio WordPress theme with touch navigation
GNU General Public License v3.0
329 stars 112 forks source link

Galleries/Images not showing in any page #76

Open arnaldoroman opened 3 years ago

arnaldoroman commented 3 years ago

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 commented 3 years ago

I had the same issue and my solution was this pull request: https://github.com/dimsemenov/Touchfolio/pull/72/commits/57fe214de77e1ac3f6d3a6dbe5f5ed37813643df $browser variable was removed from jQuery. This came to Wordpress with a recent update.

arnaldoroman commented 3 years ago

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 commented 3 years ago

@arnaldoroman which file did you add this too?

arnaldoroman commented 3 years ago

@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 commented 1 year ago

@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 commented 1 year ago

Thank You! I can fix my page and then probably remove all the old content and do something fun.Sent from my iPhoneOn Nov 21, 2022, at 12:03 PM, Bryce Wilson @.***> wrote:

@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.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>