Support » Fixing WordPress » Widget Errors from Uninitialized Options

  • AJStacy


    I have been teaching myself how to code custom widgets in wordpress and I have most of it figured out except how I initialize my widget options. Currently, when you first activate my events list widget, php gives me errors because it can’t find the options in the table, but if I click “save” once, it creates the options and I no longer have a problem.

    My Question is: How do I get them into the options DB beforehand to avoid the error?

    [119 lines of code moderated as per the Forum Rules. Please use the pastebin]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Widget Errors from Uninitialized Options’ is closed to new replies.