wp_booster error: The category **** template doesn't exist

Posted in: Newsmag
Post count: 16

Hello,

I have updated to the re-uploaded latest version of Newsmag today, and now I am getting an error message on the frontend when logged in as administrator:

wp_booster error:
The category template td_category_template_1 doesn’t exist. Did you disable a tagDiv plugin?

The cause for this error message seem to be my custom plugin that uses tagDiv API, namely this part:


/**
* Update the Style 1 instead of adding a new one, so that we can display the text description for categories while hiding the top menu
*/
td_api_category_template::update('td_category_template_1',
array (
'file' => $this->plugin_path . '/templates/td_category_template_custom_1.php',
'img' => TDC_URL_LEGACY . '/assets/images/panel/category_templates/icon-category-1.png',
'text' => 'Style 1 - Modified',
'group' => '' // '' - main theme, 'mob' - mobile theme, 'woo' - woo theme
)
);

The code actually seems to work fine and my custom template is actually being used, so it’s just the error message.

Am I doing something wrong?

Update:
I also tried to re-write the code by replacing the update() with add() and changing to a custom id, but the same error appeared, with the new id 🙂 And again, the category template works, but just the weird error message appearing on the frontend (only when logged in).

Notes:
There is no error message for my other uses of tagDiv API, which includes:

td_api_top_bar_template::add(...)
td_api_header_style::add(...)
td_api_footer_template::add(...)

So for me the error only appears when I am using td_api_category_template::add() or td_api_category_template::update()

Viewing 1 post (of 1 total)
The forum ‘Newsmag’ is closed to new topics and replies.