• Resolved Tim Thee

    (@timotheebesse)


    Hello,

    I upgraded the plugin last week and now I see that my graphs don’t show and the datatables fuctions (eg horizontal slider) don’t work anymore on tables displayed.

    Instead of the graphs, I get an empty <div …></div>

    Example on this page : <div id="igsv-1-Columnchart-1tatc0EBIpXgBzEFwakzqYCcbO7d6v0r7K9Cua2KVYek" class="igsv-chart" title="" data-chart-type="Column" data-datasource-href="https://docs.google.com/spreadsheets/d/1tatc0EBIpXgBzEFwakzqYCcbO7d6v0r7K9Cua2KVYek/gviz/tq?tqx=out:csv&tq=Select%20B%2CF%20WHERE%20A%20%3D%27Ch%C3%A2tellerault%27%20AND%20E%20%3D%201%20ORDER%20BY%20B%20asc&chart=true" data-chart-colors="#173957" data-chart-legend="{&quot;position&quot;:&quot;top&quot;}" data-chart-v-axis="{&quot;title&quot;:&quot;Effectif&quot;}"></div>

    I get this error : Uncaught TypeError: Cannot read property 'defaults' of undefined(anonymous function) @ igsv-datatables.js:11ab.Callbacks.k @ jquery.js:24ab.Callbacks.l.fireWith @ jquery.js:24ab.extend.ready @ jquery.js:24g @ jquery.js:14

    I get this error on one website and not on another one but disabling plugins didn’t help.

    Do you understand what whent wrong ?

    Thanks !

    https://www.ads-software.com/plugins/inline-google-spreadsheet-viewer/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Meitar

    (@meitar)

    It seems that on your page, the DataTables library (jquery.dataTables.min.js) is never loaded. I don’t know why that is, because that’s not happening anywhere else I know about. It’s possible there’s a conflict with some other plugin which is overwriting or removing the enqueued script for jquery-datables. I don’t have any suggestions beyond the basics for any problem: use a default theme, deactivate other plugins, etc., and see if a change of that sort resolves the issue.

    Sorry I can’t be of more help. The fact that DataTables is never loaded is obviously the problem (it explains why jQuery.fn.dataTable is undefined), but I can’t explain why that’s the case on your install. I haven’t removed the library from the plugin, of course.

    The call to the library is there in the source code, but my browsers Net console shows that cdn.datatbles.net never returns an HTTP response, so the browser never loads the needed JS library. I can’t explain why that’s happening only on your site, though.

    Good luck.

    Thread Starter Tim Thee

    (@timotheebesse)

    Hi,

    Thanks for your response.

    I don’t understand either why the DataTables library wouldn’t load, because it worked before and I only updated this plugin. Deactivating the others plugins did’nt work.

    I wonder if it’s not linked with the new “defaut” option, as the error says : “Cannot read property ‘defaults’ of undefined(anonymous function)”

    I could restore the 0.9.1.3 version of igsv and it works again ! I’ll stay with that for the moment, unless you can see where it fails or upload another update.

    Thanks anyway for this great plugin !

    Plugin Author Meitar

    (@meitar)

    Strange. Did you try temporarily changing back to the default Twenty Fifteen theme, too?

    I haven’t had time to look into this properly but I’m having something similar, the styling just went on my website. See here: https://www.london-premier-league.co.uk/all-time-stats/

    I haven’t had time to look into this properly but I’m having something similar, the styling just went on my website. See here: https://www.london-premier-league.co.uk/all-time-stats/

    Plugin Author Meitar

    (@meitar)

    Tim, for what it’s worth, I noticed that your theme is loading two copies of jQuery, of different versions. I don’t know why, it’s something you might want to ask your theme developer about. It could be causing the issue you’re experiencing.

    For other readers of this thread, the issue Kings Road is experiencing has been resolved here and was due to the theme Kings Road was using loading its own outdated jQuery, rather than using WordPress’s built-in default.

    Thread Starter Tim Thee

    (@timotheebesse)

    Thanks a lot,

    You were right of course

    I eventually found this in the theme header :
    <script type="text/javascript" src="<?php echo get_site_url(); ?>/wp-includes/js/jquery/jquery.js?ver=2.6.13">

    I deactivated it and everything works again.

    Sorry for the inconvenience !

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display broken after last week update’ is closed to new replies.