Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #53352


Ignore:
Timestamp:
11/19/2021 01:14:46 AM (2 years ago)
Author:
sabernhardt
Comment:

@karenaug Hi and welcome to Trac!

Your site still uses Twenty Twenty-One, and the custom CSS is included properly now. Were you able to fix it somehow?

I received similar errors with Twenty Twenty (and possibly Twenty Nineteen as well) around the time you opened the support topic and this ticket. I think the errors occurred immediately after activating a plugin, though you said that was not the case when you had trouble. (Because my site was a local development site, on WP5.8-alpha, I replaced it entirely.)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #53352

    • Property Summary changed from Bug in theme Twenty One to Twenty Twenty-One: PHP warning: Illegal string offset 'custom_css_post_id'
  • Ticket #53352 – Description

    initial v3  
    22
    33When I open my blog, I get the following error message:
    4 Warning: Illegal string offset 'custom_css_post_id' in /home/customer/www/marie-louisa.com/public_html/wp-includes/theme.php on line 1063
     4{{{
     5Warning: Illegal string offset 'custom_css_post_id' in /.../wp-includes/theme.php on line 1063
     6}}}
    57
    68In the dashboard I see the following message:
    7 ng offset 'nav_menu_locations' in /home/customer/www/marie-louisa.com/public_html/wp-includes/theme.php on line 1063
     9{{{
     10...ng offset 'nav_menu_locations' in /.../wp-includes/theme.php on line 1063
    811
    9 Warning: Cannot modify header information - headers already sent by (output started at /home/customer/www/marie-louisa.com/public_html/wp-includes/theme.php:1063) in /home/customer/www/marie-louisa.com/public_html/wp-includes/functions.php on line 6362
    1012
    11 Line 1063 is $mods[ $name ] = apply_filters( “pre_set_theme_mod_{$name}”, $value, $old_value );
     13Warning: Cannot modify header information - headers already sent by (output started at /.../wp-includes/theme.php:1063) in /.../wp-includes/functions.php on line 6362
     14}}}
     15
     16Line 1063 is `$mods[ $name ] = apply_filters( "pre_set_theme_mod_{$name}", $value, $old_value );`
    1217
    1318I have tried: uploading wordpress again with ftp, clearing caches, reinstalling the twenty twenty one theme, deactivated plugins, uploading the theme.php file again.