Ticket #4504 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Do widget registeration in 'init' action will cause DB error during the installation process

Reported by: Kirin_Lin Assigned to: anonymous
Priority: normal Milestone: 2.3
Component: General Version: 2.3
Severity: normal Keywords: install widget
Cc:

Description

As title, the error is following:

WordPress database error: [Table 'trunk.wp_options' doesn't exist]
INSERT INTO wp_options (option_name, option_value, option_description, autoload) VALUES ('widget_categories', 'a:2:{s:6:\"number\";i:1;i:1;b:0;}', '', 'yes')

The problem is from line 1117~1120 (trunk rev.5717).

	wp_widget_categories_register();
	wp_widget_text_register();
	wp_widget_rss_register();
	wp_widget_recent_comments_register();

Can we provide an option to active the widget function after installation?

Change History

06/23/07 05:32:16 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

(In [5747]) Don't init widgets if the blog isn't installed yet. fixes #4504