• Hi looking very useful your plugin. Thanks for sharing it.
    Small thing FYI really, as its not currently affecting me particularly at the moment.
    However whilst output on my rendered target page is fine, in the editor above the page containing [do_widget id=taxonomy-drill-down-2 ] style of shortcode, debug output is being rendered with Error: your requested widget is not in the widgets for shortcodes sidebar.

    But the page is infact being rendered correctly on the website.

    https://wordpress.org/plugins/amr-shortcode-any-widget/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author anmari

    (@anmari)

    Hi Andy, puzzling…..

    do you have a [do_widget] before the id one with nothing in it ?
    Looking at the code, the error message should have the widget name.

    what happens if you use the name instead of the id? ie something like
    [do_widget “taxonomy drill down”]

    is taxonomy-drill-down-2 definitely in the widgets for shortcode sidebar ? or is it coming from some other sidebar?

    Do you have another page somewhere that has a [do_widget] in it too ?

    Does this still happen in a default wordpress theme?

    Thread Starter CallMeAndy

    (@callmeandy)

    All that is in the editor is this:
    [do_widget id=taxonomy-drill-down-2 ]
    [do_widget id=sticky-posts-2 ]

    but the same applied on a single shortcode.

    If I change name instead of Id the rendered page output fails as well giving the “Error: YOur requested widget nnnnnnnn is not in the widget list” this also applies if I just use [do_widget]

    taxonomy-drill-down-2 is definitely in the widgets for shortcode sidebar

    Other pages with [do_widget id=…] yes, with the same problem.

    As for default theme, not able to test that without to much effort as the taxonomies are all shot, and need handlers adding. Sorry if its asking more questions than it answers, but hope it might help.

    Plugin Author anmari

    (@anmari)

    Andy,

    when you change to name
    1) did you spell it right ? [do_widget “Taxonomy Drill-down”]. if you got that message, then the name did not match what is in the shortcodes sidebar. Name must be same as the widget name in the widget settings.

    Did you get a “try debug” message? did you click on it? It will then list the widgets that are in the shortcode sidebar with their id’s.

    Before you just mentioned taxo widget and saying there is a message. Now you say in the editor you have two do_widgets?
    Probably the message relates to the second do widget? Error messages are generated before the page content it returned to the screen.
    Use ?do_widget_debug=1 to doublecheck the ids and make sure your ids are correct.

    Else try using
    [do_widget_area]
    it will just do all the widgets in the shortcodes sidebar.

    See instructions here http://wordpress.org/plugins/amr-shortcode-any-widget/

    Thread Starter CallMeAndy

    (@callmeandy)

    1) Actually maybe not, perhaps capitalization error or missing hyphon. However whilst the output is rendered correctly the editor window is redirecting to here – http://adventurebod.com/wp-admin/post.php from http://adventurebod.com/wp-admin/post.php?post=5&action=edit after pressing the update button. That page displays empty with the exception of your debug output which shows two lines with exclamation marks and the “Try Debug” line, and this for each widget. (note those links are may not be accessible for you, I only gave you them in full so that you can see how the URL is restructured)

    Yes I tried the Try Debug but that redirects back to the All Posts admin window. I obtained the id’s by using the Inspect Element function in Firefox on the widgets window in admin.

    >>Before you just mentioned taxo widget and saying there is a message. Now you say in the editor you have two do_widgets?
    That’s correct. This doesn’t mean my reporting is inaccurate but that the situation has changed. The output is as it should be, so why would I wait for a resolution before I move on. Simply I tried to offer you some feedback because I thought it might be helpful to you, in that you had kindly shared your plugin.

    The error message doesn’t relate to the second do_widget, as it is there if I remove the second do_widget and as I mentioned above the debug output relates to both.

    The id’s I am using are correct as I said the rendered page output is fine, using the id, only the editor windows are affected.

    do_widget_area is not usable for me as I need to use some of the widgets for certain pages, and others for other distinct pages. This has not affected the rendered website output.

    The fact that there is filtered output on separate pages is not a factor as I found these issues before adding the additional widgets to the sidebar. However as I said because the output on the website is OK and so I have moved on.

    Hope this is useful.

    Plugin Author anmari

    (@anmari)

    Hi Andy,
    I don’t have that redirection stuff happening in my sites – maybe it is something on your site causing it?

    Glad to hear you’re ok otherwise.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Editor on page displaying debug output’ is closed to new replies.