wp_booster error CPT

Posted in: Newspaper
Post count: 36

Hey,

I found this error while setting up a CPT, while loading the next piece of PHP, the website outputs an error on the front-end:
<?php echo $td_mod_single->get_content();?>
Error:

wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: tdb_template_27 is not set.
[*public_html directory*]/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

Display backtrace

wp_booster error:
td_api_base::get_key : a component with the ID: tdb_template_27 Key: exclude_ad_content_top is not set.
[*public_html directory*]/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

Display backtrace

Why does this error appear because the content is loaded but it outputs an error.

  • This topic was modified 7 years by StefvE.
Post count: 8

I am getting this error after latest upgrade on some of my pages at http://www.the-blockchain.com with or withouth the booster plugin activated or note.
wp_booster error:
td_api_base::mark_used_on_page : a component with the ID: 2 is not set.
/nas/content/live/blockchainnews/wp-content/themes/Newspaper/includes/wp_booster/td_api.php

  • This reply was modified 7 years by expathos. Reason: add email replies
Post count: 35449

Hi @StefvE,

Seems to refer to a cloud template. Please check if the cloud library plugin is active. If it’s not activate from the theme plugins panel
https://www.screencast.com/t/jkiSSjvsdX
Let us know if this solves the problem.


@expathos
please make sure that all previous plugins are activate a tagDiv Composer too.

Thanks

Post count: 36

The cloud library plugin is still activated. I removed this code:

<?php echo $td_mod_single->get_content();?>

And replaced it with:


$my_postid = get_the_ID();
$content_post = get_post($my_postid);
$content = $content_post->post_content;
$content = apply_filters('the_content', $content);
$content = str_replace(']]>', ']]>', $content);
echo $content;

And it works… So something in your get_content function is malfunctioning

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.