• Resolved thorri

    (@thorri)


    I’m using “Executable PHP widget” with mush success on my website. I’ve also implemented extra sidebars to put widgets where I want them to be. Alls good, except for one thing.

    In one instance of “Executable PHP widget” I’ve used bad php code, resulting in that widget’s instance being broken. Normally one would just “Edit” and “Remove” it, but unfortunately neither is available in that certain witgdet (it’s very broken).

    I don’t expect to be able to fix it from the backend for that reason. For all-inclusiveness, here’s the code that appears instead of a healthy widget in the back-end:

    %BEG_OF_TITLE%Nyleg sv?r%END_OF_TITLE%

    Fatal error: Only variables can be passed by reference in /home/hringbro/public_html/wordpress-vk/wp-content/plugins/php-code-widget/execphp.php(37) : eval()’d code on line 1

    Am I able to delete “Sidebar 3″‘s contents from the database?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Hmmm.. I can’t think of what could be put into the widget that would actually break the widgets screen itself. Nevertheless, if you can access the database via phpMyAdmin or something, then you can clear out the php code widget contents like so:

    Look in the wp_options table. Find the row with the key of “widget_execphp”. If you delete that row, then ALL the php code widgets will be totally cleared, but if you just edit that row directly, you can remove the problem code from it (that’s where your text is stored) and then be able to fix whatever issues you had in the editor.

    Thread Starter thorri

    (@thorri)

    Thank you very much ??

    I tried to delete with precicion, but missed. So I cut everything out and pasted into TextEdit. Then I just copied everything back in via the Admin in WP. No biggie.

    Thank’s again!

    I’ve got a way easier way to deal with this. After messing around without any idea on how to set up a phpMyAdmin, I gave up but the problem had already fixed itself.

    Here’s what I did:

    – deactivate Executable PHP widget
    – wait 12 hours
    – remove all other widgets from the sidebar and save
    – reactivate Executable PHP widget

    You should now have a clean slate to rebuild your sidebar. Is the database entry purged??? I don’t know, but this is way easier than mucking about the database to delete one line of code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I delete a dynamic sidebar (or it’s corrupt content)?’ is closed to new replies.