• Resolved cloudcity4glow

    (@cloudcity4glow)


    I have reviewed the existing posts that seemed related to this but haven’t found a resolution.

    When I go in to create a New Blog post, the Chrome Console shows an error “Cannot read property ‘length’ of undefined “, and the “Add Media” and “Insert Gallery” buttons are visible but clicking on them has no effect.

    I’ve tried the suggestions of disabling all plug-ins and reverting to to a vanilla template. Neither of those had any effect.

    Another post suggested that Bulletproof was an issue, but we aren’t running that.

    The timing of this ceasing to work appears to be related to the upgrade to 3.5.2.

    I’d appreciate any suggestions you can give me.

    Thanks for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Is that the only error that is showing on the Chrome Console or are there others? Could you provide us with the URL of your site?

    Thread Starter cloudcity4glow

    (@cloudcity4glow)

    Thread Starter cloudcity4glow

    (@cloudcity4glow)

    Also, I see that if I resize the Chrome Inspector window (dragging the window divider up or down), in addition to the initial error, the console starts showing “Uncaught SyntaxError: Unexpected identifier” errors each time I change the size.

    These errors (both the initial error and the ‘sizing’ related ones) only happen in the Add New Post and Edit an existing post windows.

    I checked older posts that already have images inserted, and the errors happen there if I try to edit one of those posts.

    Thread Starter cloudcity4glow

    (@cloudcity4glow)

    Some updated information.

    I switched away from our custom Theme (tried this earlier but I guess I didn’t do it correctly.) Using the TwentyTwelve Theme, the error doesn’t happen. So I now know it is in the Custom Theme.

    Turned on debugging and now am seeing PHP Notices that wp_register_script was called incorrectly. Trying to track that down now.

    Anyone have any experience / suggestions on this?

    install “use google libraries” from plugins , everything ll be fine

    Thread Starter cloudcity4glow

    (@cloudcity4glow)

    Our custom theme (pretty old) was calling get_theme_data() which is apparently no longer available. I changed these calls to wp_get_theme(), which is the new equivalent function, and we are back to working.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Add Media button stopped working’ is closed to new replies.