lidija.cvetkovic
asked 8 months ago

I am trying to install the free version of the plugin on the website, but it shows me an error when I try to activate it. Can you please let me know what should I do? Thanks!
This is the error I see: 
Fatal error: Uncaught Error: Undefined constant “DWKB_CAT_THUMB” in /home/204910.cloudwaysapps.com/pubcxcuedd/public_html/wp-content/plugins/dw-knowledge-base/templates/admin/settings.php:118 Stack trace: #0 /home/204910.cloudwaysapps.com/pubcxcuedd/public_html/wp-content/plugins/dw-knowledge-base/dw-knowledgebase.php(26): require_once() #1 /home/204910.cloudwaysapps.com/pubcxcuedd/public_html/wp-admin/includes/plugin.php(2314): include_once(‘/home/204910.cl…’) #2 /home/204910.cloudwaysapps.com/pubcxcuedd/public_html/wp-admin/plugins.php(192): plugin_sandbox_scrape() #3 {main} thrown in /home/204910.cloudwaysapps.com/pubcxcuedd/public_html/wp-content/plugins/dw-knowledge-base/templates/admin/settings.php on line 118

1 Answers
DominicStaff
answered 8 months ago

Hi,
You can open the settings.php file and replace this code with the following code: 

define('DWKB_CAT_THUMB', 'on'); // Define the constant with a valid value
if ('on' == DWKB_CAT_THUMB) {
    if (!file_exists(DWKB_DIR . '/inc/cmb2-taxonomy/init.php')) {
        exit;
    }
    require_once DWKB_DIR . '/inc/cmb2-taxonomy/init.php';
    add_filter('cmb2-taxonomy_meta_boxes', 'cmb2_dwkb_taxonomy_metaboxes');
}
Powered by DW Question & Answer Pro