Opened 18 years ago
Closed 18 years ago
#4504 closed defect (bug) (fixed)
Do widget registeration in 'init' action will cause DB error during the installation process
Reported by: | Kirin_Lin | Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | General | Keywords: | install widget |
Focuses: | 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?
Note: See
TracTickets for help on using
tickets.
(In [5747]) Don't init widgets if the blog isn't installed yet. fixes #4504