Okay
  Public Ticket #2562001
Javascript problem
Closed

Comments

  • David L McCreary started the conversation

    GLAD TO PAY FOR HELP. Got this in Chrome dev tools on page URL noted above. There is a single Unite Gallery on the page, spinning wheel, nothing but first image displayed, no nav/progress buttons shown

    Problematic gallery item found:
    unitegallery.min.js?ver=5.5.1:3 n.fn.init(1)
    unitegallery.min.js?ver=5.5.1:3 Please look for some third party js script that could add this item to the gallery
    unitegallery.min.js?ver=5.5.1:3 Uncaught Error: The item should not be image type
        at fillItemByChild (unitegallery.min.js?ver=5.5.1:3)
        at fillItemsArray (unitegallery.min.js?ver=5.5.1:3)
        at runGallery (unitegallery.min.js?ver=5.5.1:3)
        at UniteGalleryMain.run (unitegallery.min.js?ver=5.5.1:3)
        at n.fn.init.jQuery.fn.unitegallery (unitegallery.min.js?ver=5.5.1:3)
        at HTMLDocument.<anonymous> ((index):1809)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
        at Function.ready (jquery.js?ver=1.12.4-wp:2)
        at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)
        

    Wordpress 5.5.1. Using imagify and Cloudflare. None of the galleries are loading. To use webp and not have safari issues, I had to set Imagify to use picture tag. I excluded the following from minification in Cloudflare after seeing the error. What else can I do here? 

    (.*)/wp-content/plugins/unitegallery/unitegallery-plugin/js/unitegallery.min.js
    (.*)/wp-content/plugins/unitegallery/unitegallery-plugin/js/unitegallery.js

    I think I saw a contribute button somewhere, glad to. Just bought another license for full version. Running plugin latest 1.7.53 


  •   Max replied privately
  • David L McCreary replied

    Hi Max

    Please I insist on paying for a bit of help. I have more money than time and this is a well funded commercial project. Invoice me at paypal: [email protected]

    re: conflict with Unite Gallery and Imagify. I solved this by turning off WebP creation by Imagify, instead relying on Polish in Cloudflare. That solved the problem of the Unite Gallery not showing up/working for Chrome and Firefox. 

    however... there is a problem with Safari.

    See https://www.speedonthewater.com/hull-and-deck-together-for-outerlimits-sc-37-catamaran/

    In Chrome, second image down is Unite Gallery slideshow. Works fine. This is on Chrome in multiple machines and devices. 

    however, in Safari on desktop Mac or iPad... it's invisible. Source code has very weird code. Attached is the source code for Chrome (looks normal works fine) and from Safari (all f'd up).I had to zip it up to be able to send. 

    How to I fix this?


  • David L McCreary replied

    I've eliminated any settings in Cloudflare as the culprit. the problem is WP Rocket Lazy Load. I'd love to have it turned on but then i get the bad IMG code that will not render in Safari or Firefox. I solved the issue for Chrome / Unite Gallery with lazy loading ON by adding this to WP Rocket > File Optimization - Excluded Javascript Files

    (.*)/wp-content/plugins/unitegallery/unitegallery-plugin/js/(.*).js

    But to get Unite Gallery to show up at all in Safari and Firefox i have to disable WP Rocket Lazy Load entirely. 

    Is there a way to COMPLETELY exclude Unite Gallery, all of them (we have hundreds) from WP Rocket Lazy Load so I can turn it back on? I'd' expect this odd behavior from Safari, I was suprised to see it in Firefox as well. 

    I'd be OK relying on WP 5.5 Lazy Loading, but it is not applied to Unite Gallery as image height and width are not included in slide code. So I have no clue how Unite / WP 5.5 would behave with lazy loading. 

  •  82
    Max replied

    HI. unite don't like the lazy loading at allsmile.png please disable the lazy loading for unite gallery.


  • David L McCreary replied

    Returning again to this issue... I want Lazy Loading on the site. Unite won't work with it turned on in WP Rocket. but WP Rocket does allow one to exclude JS and CSS files (and presumably PHP). Can i please pay you to send me a list of ALL the files I would need to write specific exclusions for so that WP Rocket will not attempt to lazy load any Unite Gallery but will do so for others on site? 

  •   Max replied privately