WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#10574 closed defect (bug) (invalid)

Widgets - text block not working

Reported by: serbanghita Owned by: azaozz
Milestone: Priority: normal
Severity: normal Version: 2.8.3
Component: Widgets Keywords: reporter-feedback
Focuses: Cc:

Description

Hello,

I manually upgraded a blog from WordPress 2.7.1 to 2.8.3, overwriting
/wp-admin/
/wp-includes/
/*.php excluding the config file

Previously i had a Text block added in my theme (modern-wordpad) from the Widget section and had some HTML code in it and a custom title. Now in the newer version it has dissapeared from the admin and website.

Also accesing http://www.myblog.com/wp-includes/default-widgets.php being logged in as an admin throws the following error: Fatal error: Class 'WP_Widget' not found in /usr/local/www/wp-includes/default-widgets.php on line 15

I attached some screenshots to make it a lot clear.

Attachments (3)

bug-wordpress1.jpg (55.7 KB) - added by serbanghita 5 years ago.
How 'Admin -> Widgets' looked in 2.7.1
bug-wordpress2.jpg (46.5 KB) - added by serbanghita 5 years ago.
How 'Admin -> Widgets' looks in 2.8.3
bug-wordpress3.jpg (141.9 KB) - added by serbanghita 5 years ago.
My actual Widget screen after upgrade

Download all attachments as: .zip

Change History (8)

serbanghita5 years ago

How 'Admin -> Widgets' looked in 2.7.1

serbanghita5 years ago

How 'Admin -> Widgets' looks in 2.8.3

comment:1 dd325 years ago

  • Keywords reporter-feedback added; html block removed

Re-upload the files, Sounds like you've missed one or one is corrupt.

comment:2 dd325 years ago

Re-upload the files, Sounds like you've missed one or one is corrupt.

Actualy.. Cancel that..

You shouldnt be directly accessing wp-includes/default-widgets.php at all.

The reason the widget content is not there, Is most likely due to the theme not being compatible with WordPress 2.8.. you might want to check for an update to it, It looks like it may use a custom Text widget, and not the default one which shipped with WordPress(WordPress upgraded the core widgets, but the themes widget may not've been included in that)

serbanghita5 years ago

My actual Widget screen after upgrade

comment:3 serbanghita5 years ago

My current widget screen: bug-wordpress3.jpg (in attach) shows a 'text' option but as you see in bug-wordpress2.jpg i have no text box to update it.

Does this mean that the current active Wordpress theme is not compatible with 2.8.3 ?

PS: i only have 1 plugin active (Akismet)

comment:4 dd325 years ago

  • Milestone Unassigned deleted
  • Resolution set to invalid
  • Status changed from new to closed

I would say its your theme, As the Text widget which ships with WordPress has the title "Text" and a description of "Arbitrary text or HTML", yours shows "text" and "text" meaning that something has replaced it. Since you've only got the theme active, it points to that.

You'll need to bug the Theme author to make the theme compatible.

I've just looked up the theme, and it indeed does replace the default text widget, and doesnt provide a interface to modify it, It seems a fluke that it worked under WordPress 2.7.. relying upon the inherited forms rather than defining its own.

You could try removing the line register_sidebar_widget(__('text'), 'widget_aoe_text'); from the themes functions.php file, but no guarantee's it'll work.

invalid: Its not a WordPress core issue

comment:5 serbanghita5 years ago

Agree. Thanks for the quick response!

Note: See TracTickets for help on using tickets.