• After installing the latest Photos Demo Site, there is an error in the customizer: Under Blog/Blog Entries, none of the meta controls (Author, Date, etc.) are shown under the Meta category. The only thing that appears is the heading, “Meta”.

    This is due to a data error in the database, specifically the row containing theme mods in the wp_options table. The incorrect data in the value for this row is ‘s:21:”ocean_blog_entry_meta”;s:0:””;’. This is invalid and causes no meta controls to appear. The code expects an array, not a string.

    Here is a SQL statement to correct the error, for the case where no child theme is used:

    UPDATE wp_options
    SET option_value =
    REPLACE(option_value,
    ‘s:21:”ocean_blog_entry_meta”;s:0:””;’,’
    ‘s:21:”ocean_blog_entry_meta”;a:2:{i:0;s:6:”author”;i:1;s:4:”date”;}’)
    WHERE option_name = ‘theme_mods_oceanwp’;

    (NOTE: If a child theme is used, then use the child theme name instead of “oceanwp” in the WHERE clause, replacing any hyphens with underscores.)

    The above SQL allows all the meta controls to appear in the customizer, and sets Author and Date to appear on blog entries.

    Just before posting this, I imported the Photos demo site to verify that the error is still there. I have no idea how the data row was set incorrectly.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Meta Settings Error in Photos Demo Site (with SQL Fix)’ is closed to new replies.