Support » Plugins » PHP errors in ExecPHP Widget – how to start again

  • I messed up some php coding in an ExecPHP widget and got the usual error of all widgets following the code were disappearing. Only way to get things moving again was to deactivate the plugin.

    Wondering how to proceed from here – had lots of good code running in other widgets and I need to restore them.

    The code for all the widgets is still sitting in the wp_options table – is there a way to edit that and remove offending code, and then reactivate the plugin?

Viewing 1 replies (of 1 total)
  • I tried saving a copy of everything in the widget_execphp database entry, carefully removing the php code and not disturbing coding like this: a:3:{i:393953001;a:2:{s:5:”title”;s:21:”

    I put everything back into the row, but I’m still getting the error:

    Warning: array_keys() [function.array-keys]: The first argument should be an array

    I then tried deleting the row entirely along with deactivating the ExecPHP Widget plugin, but the Widget admin page still says I have 4 widgets – when I looked at the sidebars_widgets row, I could see that it was still referencing the code I had deleted, so the system thinks the widgets are still there…

    Am I safe simply to erase the content of sidebars_widgets and will that allow me to start again from scratch?

Viewing 1 replies (of 1 total)
  • The topic ‘PHP errors in ExecPHP Widget – how to start again’ is closed to new replies.