• Hi, I try to export-import the parent theme settings to child theme but it throws a Notice (if DEBUG_LOG set to DISPLAY):

    Notice: Trying to access array offset on value of type bool in …/wwwroot/dew/wp-content/plugins/ocean-extra/includes/panel/import-export.php on line 181

    i checked, this is that 181 line:
    // Import data
    self::import_data( $data[‘mods’] );

    and here is the .dat file (how does this syntax officially called? i can’t find info on it, so i couldn’t even prettify it..) Is that a specific form of json?

    a:3:{s:4:"mods";a:20:{i:0;b:0;s:18:"nav_menu_locations";a:4:{s:9:"main_menu";i:2;s:11:"topbar_menu";N;s:11:"footer_menu";i:28;s:11:"mobile_menu";i:2;}s:18:"custom_css_post_id";i:-1;s:16:"header_textcolor";s:5:"blank";s:19:"ocean_primary_color";s:7:"#5fc3c6";s:22:"ocean_background_color";s:7:"#1e1e1e";s:17:"ocean_links_color";s:7:"#5fc3c6";s:25:"ocean_hover_primary_color";s:7:"#f40e6a";s:23:"ocean_links_color_hover";s:7:"#00c0c6";s:22:"ocean_scroll_top_arrow";s:16:"double_arrows_up";s:30:"ocean_has_header_border_bottom";b:0;s:23:"ocean_header_background";s:19:"rgba(255,255,255,0)";s:13:"ocean_top_bar";b:0;s:11:"custom_logo";i:884;s:30:"ocean_dropdown_menu_background";s:7:"#2d2d2d";s:28:"ocean_page_header_visibility";s:11:"all-devices";s:23:"ocean_page_header_style";s:6:"hidden";s:16:"sidebars_widgets";a:2:{s:4:"time";i:1648911422;s:4:"data";a:9:{s:19:"wp_inactive_widgets";a:2:{i:0;s:6:"text-2";i:1;s:6:"text-3";}s:11:"woo_sidebar";a:6:{i:0;s:8:"search-2";i:1;s:14:"recent-posts-2";i:2;s:17:"recent-comments-2";i:3;s:10:"archives-2";i:4;s:12:"categories-2";i:5;s:6:"meta-2";}s:7:"sidebar";a:1:{i:0;s:13:"custom_html-2";}s:9:"sidebar-2";a:0:{}s:14:"search_sidebar";a:0:{}s:10:"footer-one";a:0:{}s:10:"footer-two";a:0:{}s:12:"footer-three";a:0:{}s:11:"footer-four";a:0:{}}}s:24:"ocean_page_single_layout";s:10:"full-width";s:19:"ocean_search_layout";s:10:"full-width";}s:7:"options";a:19:{i:0;b:0;s:18:"nav_menu_locations";a:4:{s:9:"main_menu";i:2;s:11:"topbar_menu";N;s:11:"footer_menu";i:28;s:11:"mobile_menu";i:2;}s:18:"custom_css_post_id";i:-1;s:16:"header_textcolor";s:5:"blank";s:19:"ocean_primary_color";s:7:"#5fc3c6";s:22:"ocean_background_color";s:7:"#1e1e1e";s:17:"ocean_links_color";s:7:"#5fc3c6";s:25:"ocean_hover_primary_color";s:7:"#f40e6a";s:23:"ocean_links_color_hover";s:7:"#00c0c6";s:22:"ocean_scroll_top_arrow";s:16:"double_arrows_up";s:30:"ocean_has_header_border_bottom";b:0;s:23:"ocean_header_background";s:19:"rgba(255,255,255,0)";s:13:"ocean_top_bar";b:0;s:11:"custom_logo";i:884;s:30:"ocean_dropdown_menu_background";s:7:"#2d2d2d";s:28:"ocean_page_header_visibility";s:11:"all-devices";s:23:"ocean_page_header_style";s:6:"hidden";s:24:"ocean_page_single_layout";s:10:"full-width";s:19:"ocean_search_layout";s:10:"full-width";}s:6:"wp_css";s:0:"";}

    What is the problem? Any idea?
    Thank you!

    • This topic was modified 2 years, 11 months ago by iwanwilaga.
    • This topic was modified 2 years, 11 months ago by iwanwilaga.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @iwanwilaga,

    Actually, it’s just a warning, and it does not hurt your website, but thank you for your report. This topic has been forwarded to the developer team to fix in the next updates. You can turn off your WordPress debugger to hide it: https://www.ads-software.com/support/article/debugging-in-wordpress/#wp_debug.

    Note: The .dat file is precisely a JSON, but in custom format (data file), you do not need to prettify it, but if you want to know, you can use online services to achieve it.

    Best Regards

    Thread Starter iwanwilaga

    (@iwanwilaga)

    Hey @skalanter, thx for help! Although i need to mention that the import process is not working on the site actually. Besides the Notice. That was my main concern (i forgot to mention it apparently.. ehheh..)
    So besides the error Notice, i needed to reapply all theme changes manually to the child theme. It seems the import process didn’t make it to the database..

    Any further idea or details on this?
    Is this an edge-case? I tried it on troubleshooting mode, without other plugins, etc.

    Best,
    W

    • This reply was modified 2 years, 11 months ago by iwanwilaga.

    Hello @iwanwilaga,

    I fully examined the issue you have raised on this topic and could not see it on my end. How can we replicate your steps to arrive at the issue on a fresh WordPress installation?

    Best Regards

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Theme customizer settings export/import error’ is closed to new replies.