• Theme Twenty Seventeen main page gets Uncaught TypeError: this.resetImgSrc is not a function errors shown in the java console. Some thumbnail images fail to load.
    The individual pages function normally.

    The individual pages loaded as expected, the Twenty Seventeen home page which displays several pages gets these error messages

    Woocomerce option for NextGen is enabled.
    however image resizing on upload. (Other Options) was disabled.
    Enabling this option corrected the front page errors.

    HOWEVER…. This situation should be handled better by the code!
    There was no error indication to the user except for the console messages.
    Images were already “uploaded” so it is not clear how this option is related to the home page display. Some thumbnail images loaded others did not, even after clearing the browser cache and CDN copies.

    From the console: (same message repeated 13 times)

    query-migrate.min.js?ver=3.3.2:2 JQMIGRATE: Migrate is installed, version 3.3.2
    justified-gallery-3.8.1-modded.js?ver=3.8.1:225 Uncaught TypeError: this.resetImgSrc is not a function
    at HTMLImageElement.<anonymous> (justified-gallery-3.8.1-modded.js?ver=3.8.1:225)
    at HTMLImageElement.i (jquery.min.js?ver=3.5.1:2)
    at HTMLImageElement.dispatch (jquery.min.js?ver=3.5.1:2)
    at HTMLImageElement.v.handle (jquery.min.js?ver=3.5.1:2)

    ### wp-core ###
    version: 5.6
    ### wp-active-theme ###
    name: Twenty Seventeen (twentyseventeen)
    version: 2.5
    ### wp-plugins-active (21) ###
    NextGEN Gallery: version: 3.5.0, author: Imagely, Auto-updates enabled
    NextGEN Pro: version: 3.1.2, author: Imagely, Auto-updates enabled
    ### wp-server ###
    server_architecture: Linux 4.9.0-13-amd64 x86_64
    httpd_software: Apache/2.4.25 (Debian)
    php_version: 7.4.13 64bit
    php_sapi: fpm-fcgi

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Benjamin

    (@benjaminowens)

    Just so I understand you correctly: the JS error was fixed by enabling the “Resize images at upload” option in NextGEN? Thanks,

    Thread Starter Henry Sautter (Hank)

    (@hlsautter)

    Yes, that is correct. Why this was the cause is not clear to me.
    I appears to be related to the “home Page sections” feature of the Twenty Seventeen theme.

    Benjamin

    (@benjaminowens)

    That is strange, the two aren’t at all related. I only see NGG & NGG Pro in your plugins list, is there any chance you have a Pro Tile display on a page and there’s another plugin that uses Justified-Gallery.js enqueued?

    Thread Starter Henry Sautter (Hank)

    (@hlsautter)

    I do have the Woo Commerce plugin installed, which is why I turned the option back on. The error only occurred on the Home Page. Displaying the individual pages did not have this issue.

    The following are required only for AUTOMATED PRINT FULFILLMENT.

    Done Have active NextGEN Pro License. Login to Imagely to renew
    Done Have credit card on file (it will charged to cover wholesale cost from print lab). Ecommerce Options
    Done Add Print Lab items to a Pricelist. Manage Pricelists
    Done Enabled image resizing on upload. Other Options

    Benjamin

    (@benjaminowens)

    Thanks for the report! That’s pretty strange, I don’t think I can imagine the cause of the problem without seeing it myself to debug, sorry.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Uncaught TypeError: this.resetImgSrc is not a function’ is closed to new replies.