• Resolved Caroww18

    (@caroww18)


    Hello, since the last WP update Collapse-o-Matic seems broken on my whole site. The [expand] code remains in place in the HTML but all the supposedly hidden texts appear as plain text, as if something is blocking the plugin. I can’t find out where this could be. (I’m using the classic editor as I like code!)
    All my collapse codes are highlanders: [expand title=”About this book” rel=”Sabl-highlander”]…text…[/expand].
    Tried de-activating and re-activating the plugin, but that didn’t work either. Have I missed something on the settings page?
    I’ve tried finding answers to my problem in the FAQ and other forum questions but without success, so hope someone can help on this! Many thanks.
    Caroline

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

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author twinpictures

    (@twinpictures)

    Hello.
    There is some old jQuery that is no longer supported being used on your site. The strange thing is, it’s not coming from a file that is located in the plugin or theme folder, but rather a folder called buchkunst in your root WordPress directory.

    The offending code is as follows:

    jQuery('#nav-slider a').live('click', function(e){
    

    jQuery .live function has been removed since version 1.9, so this old code is breaking all your other jQuery functionality.

    You will want to reach out to the web developer that added this slider function to your site for further assistance.

    Thread Starter Caroww18

    (@caroww18)

    Thanks for that…I thought it must be the js. But now I’m at a loss because I can’t find the folder in my root directory at all. (The subtitle of the entire site is “Werkstatt fuer Buchkunst”; were you referring to that?)
    What I did just now is test the website on validator.w3.org and having looked at the code it came up with, I searched for the offending code without success. Found plenty of errors, not all of them mine; there’s a lot of dirty code out there in WordPress!
    I made the site quite a while ago and had also forgotten that I copied an old version of Collapse-o-Matic into my theme. This I’ve now deleted.
    But having done all that, my texts still stay expanded. Now what?
    Thanks…

    Thread Starter Caroww18

    (@caroww18)

    OK — I’ve now found the code. It’s in the parent theme that I’ve adjusted to my child theme, and nested in the functions.php file of that theme.
    To change it, what can I best do: edit the functions.php in my child theme, or change the code of the original? And how can I do that safely? Thanks!

    • This reply was modified 4 years, 3 months ago by Caroww18.
    • This reply was modified 4 years, 3 months ago by Caroww18.
    Plugin Author twinpictures

    (@twinpictures)

    Hello. First, check if there is an update to the parent theme.
    If the theme is actively developed, this should have been resolved long ago.

    If not, then you will need to dequeue the offending .js file from the parent theme and then copy the .js file, fix update it, place it in your child theme folder and finally wp_enqueue_script back in the fixed .js file.

    Thread Starter Caroww18

    (@caroww18)

    Thanks for that. You supposed right, the parent theme has not been touched for over 4 years.
    It is not a separate .js file that needs editing, but the parent theme’s functions.php file. Do I need to dequeue and enqueue that, or can I just substitute a corrected file by uploading it to my database?

    Plugin Author twinpictures

    (@twinpictures)

    ah, ok! so the javascript is not in it’s own file!
    yeah, then just update the parent theme’s function.php and you should be golden.

    Thread Starter Caroww18

    (@caroww18)

    Well, I’ve just done that, and the website hasn’t done anything nasty, but the plugin still doesn’t work. All the texts are still stuck in expanded mode. I emptied the browser cache as well, just in case that might make a difference.

    Thanks for your patience…

    Plugin Author twinpictures

    (@twinpictures)

    Step-by-step…
    You have removed one problem, and now you have another one that is popping up in the colorbox.js file:

    Uncaught TypeError: Cannot read property 'msie' of undefined
    Uncaught TypeError: jQuery(...).colorbox is not a function
    

    https://hirundo.eu/wp-content/themes/minimatica/scripts/colorbox.js?ver=1.3.16

    Thread Starter Caroww18

    (@caroww18)

    Ok, I thought I might be breaking something else by changing the code… So I need a bit of help here: how do I get out of this one?

    Plugin Author twinpictures

    (@twinpictures)

    if you get a cookie for persistence, you might look into starting a cookie store.

    for a helping hand, reach out to: info [at] twinpictures [punkt] de and we can sort this out together, if you like. please be sure to include a link to this thread so your request is fast-tracked.

    this thread is closed (for now) as it’s not really an issue related to our plugin. cool? cool.

    Thread Starter Caroww18

    (@caroww18)

    You’re so kind, thanks. ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Collapse-o-matic not working after latest WP update’ is closed to new replies.