Support » Plugin: WordPress.org Plugin/Theme Information Embed » Not working on multisite

Viewing 5 replies - 1 through 5 (of 5 total)
  • First observation while debugging: On sub-network-sites the entries in e.g. wp_10_postmeta have “{{unknown}}” as a value and there are no _oembed_time_* entries from this plugin

    Update 2:
    I echoed the variable $oembed_url in both cased and put it into my address bar

    On the primary site the it returns “Octocat is lost, and afraid”, because I didn’t provide parameters

    On the sub-sites the simply returns the normal website

    Plugin Author Lee Willis

    (@leewillis77)

    Do both URLs contain the same value for the wpdotorg_oembed parameter? or different?

    If they’re the same – does it match the value of the wpdotorg_oembed_key entry in the _options database table for the main network, or the subsite?

    If they’re different do they match the value of wpdotorg_oembed_key entry in the _options database table for the relevant site?

    Do both URLs contain the same value for the wpdotorg_oembed parameter? or different?

    Different

    If they’re different do they match the value of wpdotorg_oembed_key entry in the _options database table for the relevant site?

    No, in both cases not… Maybe because I’m deleting meta_key all the time?

    I think I’ve got problem: Here are var_dumps of $_GET for both cases:
    http://example.com/?github_oembed=xxxxxxxx
    array(1) { [“github_oembed”]=> string(32) “xxxxxxxxxx” }

    http://example.com/subsite/?github_oembed=xxxxxxxxx
    array(0) {}

    I really don’t know why, but on the sub-site $_GET is empty, not matter what parameters I put behind the url. This leads to maybe_handle_oembed() returning false, so there is no oembend endpoint and nothings happens 🙁

    Maybe you have to add your variable to WP_Query via https://codex.wordpress.org/Function_Reference/get_query_var ?

    Yep, this seems to be the problem. Have a look here: http://stackoverflow.com/questions/1018935/get-and-wordpress

    (Look at the answer with the most votes, not the one marked as right)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Not working on multisite’ is closed to new replies.