• Resolved MilosTVP

    (@milostvp)


    Hello!

    Ever since WP 4.0 my Add media button does not work, and clicking it only adds dash to the URL. I’ve disabled all my plugins but nope, that did not help.

    When I renamed my theme’s folder, WP was forced to switch to its default theme and add media button worked!

    So, my culprit here is my custom child theme. It is a child of BlankSlate theme by TidyThemes. I’ve also tried replacing parent BlankSlate folder with my backup from few months ago, just in case they released some naughty update but nope, nothing changed.

    So my question is, what should I try with my child theme, where to look first? Is there some known problematic hook which is deprecated since WP major update?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi, creator of BlankSlate here.

    We haven’t added anything “naughty”, in fact BlankSlate is so clean and simple, even without further investigation I’m 99% sure that this issue likely has nothing to do with BlankSlate.

    I would recommend deactivating all plugins first to check for conflicts.

    If you think it is theme related or otherwise need our help, you’re welcome to post in the official support forum:

    https://tidythemes.com/forum/

    Thank you.

    Activate one of the standard themes with all your current plugins, if the media button starts to work there could be a conflict with the theme but as the creator mentioned above, most likely a plugin conflict.

    Thread Starter MilosTVP

    (@milostvp)

    TidyThemes, I never said that I think problem is within your theme – problem is in my custom child theme but I don’t think that I could find rationale that could justify my posting at your forum, because you cannot be aware of all possible horrible coding mistakes I’ve made in my child theme ??

    When I turn off all plugins, I actually get white screen of doom so I need to execute this routine: rename theme folder so that WP switches to another theme (I only have two themes installed – BlankSlate and my child theme) and then admin panel works again, so I turn plugins back on, rename my theme folder to normal… I think site crashes when I turn off QTRANSLATE plugin so it must be active all the time.

    With all my plugins turned ON, and while my theme turned off, ADD MEDIA BUTTON WORKS. So it is not about plugins unfortunately.

    My question here is rather are there some most common mistakes I could look at in my functions.php or in my template files maybe? I don’t know where to start in debugging my theme…

    Have you set WP_DEBUG to true in your wp-config.php file? That is always a good start to any fun debug situation.

    Thread Starter MilosTVP

    (@milostvp)

    WOW I get a whole bunch of complaints from PHP interpreter and WP, for example:

    Strict Standards: Declaration of c2c_AutoHyperlinkURLs::options_page_description() should be compatible with C2C_Plugin_025::options_page_description($localized_heading_text = ”) in …./wp-content/plugins/auto-hyperlink-urls/autohyperlink-urls.php on line 48

    Strict Standards: Non-static method ccf_utils::load_module() should not be called statically in….

    Notice: Undefined index: language in …/wp-content/plugins/qtranslate/qtranslate_hooks.php on line 109

    and so on…
    Qtranslate generates almost all of the notices…

    @milostvp – No worries, just the fact that you’re using BlankSlate means we would support you with just about any help you needed regarding your website.

    As long as the site you’re working on is built with one of our tools, regardless of whether one of our tools is the culprit or not, we try and answer any questions and help out as best we can.

    Feel free to stop by anytime.

    Thank you.

    Thread Starter MilosTVP

    (@milostvp)

    @tidythemes well this is pretty cool of you, thank you!

    Anyways I have found a solution:
    https://www.ads-software.com/support/topic/not-compatible-with-wordpress-40-41?replies=7

    // Deregister editor-expand as it breaks CKEditor integration
    function custom_deregister_editor_expand() {
      wp_deregister_script('editor-expand');
    }
    add_action( 'admin_init', 'custom_deregister_editor_expand' );

    I’ve googled for error message from firebug “TypeError: c.parent(…).offset(…) is undefined” and found piece of code I need to insert into my functions.php. I don’t know what it does, but it solved my problem!!!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Add media button not working since WP 4.0 update’ is closed to new replies.