Project

General

Profile

Actions

Support #23785

closed

experimenting with plug-ins

Added by Marilyn Weber about 1 month ago. Updated about 1 month ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2025-10-24
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

Via Keeping

I was experimenting with plug-ins on my course site (https://undersideofschooling.commons.gc.cuny.edu/wp-admin/,the site I am using for my course this Fall 2025 semester) and I got a critical error message and cannot even visit my site anymore.

Angela Dunne

Doctoral Candidate, Urban Education

The Graduate Center, City University of New York

365 Fifth Avenue, Room 4202

Actions #1

Updated by Marilyn Weber about 1 month ago

I've replied "Please tell me more about what plugins you activated."

Actions #2

Updated by Boone Gorges about 1 month ago

  • Assignee set to Raymond Hoh

The problem is with the cac-creative-commons plugin, and some weirdness with the way the 'sidebars_widgets' option is populated on this site.

Ray, I've put a temporary fix in place on the site (wp-content/plugins/cac-creative-commons/includes/widget-inject.php) where I ensure that the $sidebar_widgets will be an array. For some reason it's a string. I'm not sure how you want to handle this longterm, so for now I've just left the dirty index in place.

Actions #3

Updated by Raymond Hoh about 1 month ago

  • Category name set to WordPress Plugins
  • Status changed from New to Staged for Production Release
  • Target version set to 2.5.17

Fix looks good, Boone. I've added it in https://github.com/cuny-academic-commons/cac/commit/3456087828.

Do you think it would be better to switch from the manual call of get_option( 'sidebars_widgets' ) to wp_get_sidebars_widgets()?

Actions #4

Updated by Boone Gorges about 1 month ago

Yeah, I wondered about that myself. It doesn't look like wp_get_sidebars_widgets() protects against a string value being stored in 'sidebars_widgets' either. But it does access the global-state cached value, and it uses the filters. I don't see a reason why it shouldn't be used in cac-creative-commons.

Actions #5

Updated by Boone Gorges about 1 month ago

  • Status changed from Staged for Production Release to Resolved
Actions

Also available in: Atom PDF