WordPress.org

Forums

WP Changes Tracker
[resolved] activating the plugin breaks javascript in the backend for me (17 posts)

  1. Ovidiu
    Member
    Posted 2 years ago #

    latest version of this plugin in use.

    JS as in the dashboard widgets aren't drag and droppable anymore, and I can't open widgets to access their settings anymore if they are collapsed.

    nothing in my error logs though...

    http://wordpress.org/extend/plugins/wp-changes-tracker/

  2. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    can you look at your javascript console? The cause might be coming from another javascript file containing errors: that will break all further javascript code down the road.

  3. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    I found a way to replicate the issue. Please try the new update (1.1.2). It should fix the issue. Please let me know if it fixes it for you.

  4. Ovidiu
    Member
    Posted 2 years ago #

    1.1.2 seems to work just fine.
    Thanks!

  5. leanderbraunschweig
    Member
    Posted 2 years ago #

    Same issue here with the most recent plugin version.

    The backend "breaks", menu-items are non-accessable. How to debug? Any other plugins known to be interferring?

    Would love to use your plugin...

  6. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    Open the javascript console, reload the page, let me know if it prints any javascript error message, and what it is.

  7. leanderbraunschweig
    Member
    Posted 2 years ago #

    The following are the two errors it generates, the second one is probably insignificant.

    Fehler: TypeError: table.dataTable is not a function
    Quelldatei: http://www.er-distanziert-sich.info/wp-content/plugins/wp-changes-tracker/js/datatables.js?ver=3.4.2
    Zeile: 26

    Fehler: TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_DATA_MS" was already initialized
    Quelldatei: resource://gre/modules/TelemetryStopwatch.jsm
    Zeile: 53

  8. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    Looks like you are missing the jquery dataTables.js script.

    Just noticed i may have been too hasty in my coding, since i link directly to the plugin's hosting (http://datatables.net/download/build/jquery.dataTables.min.js) .

    i'll keep a local js in the next version.

  9. leanderbraunschweig
    Member
    Posted 2 years ago #

    So what do I have to change in order to get things up & running? When is the next plugin-release scheduled?

  10. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    can you do a search in the page html sourcecode for "dataTables" and see if the script is included?

  11. leanderbraunschweig
    Member
    Posted 2 years ago #

    Not included. Add manually via

    <script type='text/javascript' src='http://datatables.net/download/build/jquery.dataTables.min.js'></script>

    ?

  12. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    Ok, i've updated the plugin to 2.0.3 which should fix the problem. Let me know...

  13. leanderbraunschweig
    Member
    Posted 2 years ago #

    No, unfortunately the error remains although the script is implemented locally:

    [09:39:36.321] TypeError: table.dataTable is not a function @ http://www.er-distanziert-sich.info/wp-content/plugins/wp-changes-tracker/js/datatables.js?ver=3.4.2:26

    The backend menu items (left sidebar) are not 'hovering'.

  14. leanderbraunschweig
    Member
    Posted 2 years ago #

  15. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    Yes it is implemented locally: look more closely: the plugin javascript code is inside the datatables.js.

    make sure to empty your browser cache. It solved the issue for me.

  16. leanderbraunschweig
    Member
    Posted 2 years ago #

    You're right, I misjudged because the .js was still present in the cache.

    Everything's working smoothly now, thanks a lot!

  17. pixeline
    Member
    Plugin Author

    Posted 2 years ago #

    Cool, glad to know it's solved for you too °-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.