Database errors

Sheila Anderson asked 4 months ago

Hi,I downloaded and installed your child theme for Fortuna. There are a few bothersome things to it right not (maybe due to age?) and one database error. Thought you might want to update your child theme?The error in the debug log says this:WordPress database error Table \’skybridg_ccc.wp_childthemewp\’ doesn\’t exist for query SHOW FULL COLUMNS FROM wp_childthemewp made by require_once(\’wp-admin/admin.php\’), require_once(\’wp-admin/admin-header.php\’), do_action(\’admin_notices\’), WP_Hook->do_action, WP_Hook->apply_filters, display_admin_noticeThen there\’s the link asking me in the Dashboard if the child theme works. I can\’t tell you how many times I clicked YES. But the link remains which is entirely bothersome to the site owner.And there\’s this notice – not sure if it\’s related to the theme or not:[18-Oct-2019 19:15:22 UTC] PHP Notice: register_sidebar was called incorrectly. No id was set in the arguments array for the \”\” sidebar. Defaulting to \”\”. Manually set the id to \”\” to silence this notice and keep existing sidebar content. Please see <a href=\”Debugging”>https://codex.wordpress.org/Debugging_in_WordPress\”>Debugging in WordPress for more information. (This message was added in version 4.2.0.) in /home/skybridg/public_html/carastraining.com/wp-includes/functions.php on line 4778Any chance you\’ve got a fix for the error, if nothing else?Thanks,Sheila

1 Answers
Ben Staff answered 3 months ago

Hi,

It looks like there’s an issue with your hosting provider and the permissions with your database. Your the first one to report the issue…

Solution:

You can replace our functions.php code in your child theme with this:

Make sure to put it below < ? php [no spaces in this tag]

//Child Theme Functions File
add_action( ‘wp_enqueue_scripts’, ‘enqueue_wp_child_theme’ );
function enqueue_wp_child_theme()
{
//This is your parent stylesheet you can choose to include or exclude this by going to your Child Theme Settings under the “Settings” in your WP Dashboard
wp_enqueue_style(‘parent-css’, get_template_directory_uri().’/style.css’ );

//This is your child theme stylesheet = style.css
wp_enqueue_style(‘child-css’, get_stylesheet_uri());

//This is your child theme js file = js/script.js
wp_enqueue_script(‘child-js’, get_stylesheet_directory_uri() . ‘/js/script.js’, array( ‘jquery’ ), ‘1.0’, true );
}

Comments