• Good day. I have wordpress, with woocommerce and a theme installed,
    When i go to the widget page only the left side of the page is shown (there is no place to “activate” the widgets) and an error is shown in the chrome inspector:
    Uncaught TypeError: Cannot read property ‘send’ of undefined

    and this is the line that’s cause the error:
    var _custom_media = true, _orig_send_attachment = wp.media.editor.send.attachment;

    it is line 2741 of widget.php

    any clues?

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s saying that the Javascript for the WP Media editor hasn’t loaded. Disable your plugins one by one and test the widget page again after each one.

    Thread Starter peorthyr

    (@peorthyr)

    I have followed your suggestion, but any luck, what I’ve done so far:

    disabled plugin one by one.
    reinstalled wordpress (via the update page)
    reinstalled the theme (overwriting the files)
    anything changed, I’ll try to reinstall woocommerce as well, because after installation I had to overwrite some of the files of the theme in order to make them compliant with woocommerce.
    any help or further suggestions are really apreciated.

    I looked a little closer at the JS in WordPress and I can’t find that line anywhere, so my best guess is that it’s in Woocommerce and it’s overwriting the wp.media.editor object.

    I would post this on the Woocommerce support forums, they will be able to give you a quicker answer.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘error in widget.php, widget page displayed oddly’ is closed to new replies.